docbook-apps

  • 1.  Cannot get titlepage image to be full page width/height

    Posted 08-26-2019 19:27
    Hello!

    I am trying to create a PDF file of an article with an image as the title
    page, but I keep getting a compilation error "[error] no space for an
    element, trying to recover" and it omits the title page completely.

    This is how I've set my prn-titlepage.xml file:

    <t:titlepage-content t:side="recto"
    start-indent="0pt"
    text-align="center"
    margin-top="0in"
    margin-left="0in"
    margin-right="0in"
    margin-bottom="0in">

    <mediaobject/>
    ...

    Also, using width="100%" and scalefit="1" with the imagedata fileref tag
    does nothing.

    I can only get it to work if I scale the image down to 6.5 in (keeping the
    same aspect ratio).

    Is it possible to include full page graphics for the titlepage?

    Thanks!
    Gabriela

    --
    *Gabriela Simonka*
    Technical Writer, INRO
    +1 514.369.2023

    <https://www.youtube.com/channel/UClamXSG_7kTnzH3GApqqqGQ>



  • 2.  Re: [docbook-apps] Cannot get titlepage image to be full page width/height

    Posted 08-27-2019 17:36
    Hi,

    I think the problem is that the page margins are still set, leaving you
    only 6.5 inches width in the body area. The margins in the spec file are
    relative to the body area and don't affect the page margins.  You can
    try setting negative margins in the spec file, the negative of what your
    page margins are.  I didn't test that, so let us know if it works.

    Bob Stayton
    bobs@sagehill.net

    On 8/26/2019 12:26 PM, Gabriela Simonka wrote:
    > Hello!
    >
    > I am trying to create a PDF file of an article with an image as the
    > title page, but I keep getting a compilation error "[error] no space
    > for an element, trying to recover" and it omits the title page completely.
    >
    > This is how I've set my prn-titlepage.xml file:
    >
    > <t:titlepage-content t:side="recto"
    >              start-indent="0pt"
    >              text-align="center"
    >              margin-top="0in"
    >              margin-left="0in"
    >              margin-right="0in"
    >              margin-bottom="0in">
    >
    >     <mediaobject/>
    > ...
    >
    > Also, using width="100%" and scalefit="1" with the imagedata fileref 
    > tag does nothing.
    >
    > I can only get it to work if I scale the image down to 6.5 in (keeping
    > the same aspect ratio).
    >
    > Is it possible to include full page graphics for the titlepage?
    >
    > Thanks!
    > Gabriela
    >
    > --
    > *Gabriela Simonka*
    > Technical Writer, INRO
    > +1 514.369.2023
    >
    > <https://www.youtube.com/channel/UClamXSG_7kTnzH3GApqqqGQ>



  • 3.  Re: [docbook-apps] Cannot get titlepage image to be full page width/height

    Posted 08-27-2019 19:48
    Hi Bob,

    Yes, setting the margins and the start-indent to negative values worked!
    Thanks for the tip!

    -Gabriela

    On Tue, Aug 27, 2019 at 1:35 PM Bob Stayton <bobs@sagehill.net> wrote:

    > Hi,
    >
    > I think the problem is that the page margins are still set, leaving you
    > only 6.5 inches width in the body area. The margins in the spec file are
    > relative to the body area and don't affect the page margins. You can try
    > setting negative margins in the spec file, the negative of what your page
    > margins are. I didn't test that, so let us know if it works.
    >
    > Bob Staytonbobs@sagehill.net
    >
    > On 8/26/2019 12:26 PM, Gabriela Simonka wrote:
    >
    > Hello!
    >
    > I am trying to create a PDF file of an article with an image as the title
    > page, but I keep getting a compilation error "[error] no space for an
    > element, trying to recover" and it omits the title page completely.
    >
    > This is how I've set my prn-titlepage.xml file:
    >
    > <t:titlepage-content t:side="recto"
    > start-indent="0pt"
    > text-align="center"
    > margin-top="0in"
    > margin-left="0in"
    > margin-right="0in"
    > margin-bottom="0in">
    >
    > <mediaobject/>
    > ...
    >
    > Also, using width="100%" and scalefit="1" with the imagedata fileref tag
    > does nothing.
    >
    > I can only get it to work if I scale the image down to 6.5 in (keeping the
    > same aspect ratio).
    >
    > Is it possible to include full page graphics for the titlepage?
    >
    > Thanks!
    > Gabriela
    >
    > --
    > *Gabriela Simonka*
    > Technical Writer, INRO
    > +1 514.369.2023
    >
    > <https://www.youtube.com/channel/UClamXSG_7kTnzH3GApqqqGQ>
    >
    >

    --
    *Gabriela Simonka*
    Technical Writer, INRO
    +1 514.369.2023

    <https://www.youtube.com/channel/UClamXSG_7kTnzH3GApqqqGQ>