Menu

Phrase rotate result in blank page

Help
shawnc
2005-04-22
2018-07-30
  • shawnc

    shawnc - 2005-04-22

    hi,

    this is the code i found another possibile bug:

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE document
        PUBLIC "-//UJAC.org//Print Document//EN"
        "http://ujac.sourceforge.net/ujac-print-document.dtd">
       
    <document size="A4" margin-left="50" margin-right="50" margin-top="70" margin-bottom="50">

        <chapter title="Summary">
            <new-page size="A4" rotate="false">
                <header rule-width="0.5" padding-bottom="20">
                    <header-part halign="left" padding-bottom="15">test</header-part>
                </header>
                <footer rule-width="0.5" padding-top="20">
                    <footer-part halign="center">Page ${pageNumber} of ${pageCount}</footer-part>
                </footer>
            </new-page>
            <paragraph halign="left"  line-spacing="1.5"  spacing-before="10">
                Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed dictum fringilla purus.
                Donec eu erat ac purus egestas porta. Mauris aliquet posuere tortor. Nunc lacinia.
            </paragraph>
        </chapter>
        <chapter title="chapter 2">
            <new-page size="A4" rotate="true" />
            <table width="90" widths="45,45" border-style="box"
                padding="5" halign="center"
                keep-together="true" cell-halign="left" cell-valign="top">
                <table-header padding-top="5" border-style="box">
                    <cell><phrase rotate="90">col 1</phrase></cell>
                    <cell>col 2</cell>
                </table-header>
                <cell halign="center">hello</cell>
                <cell>21</cell>
                <cell>21</cell>
                <cell>21</cell>
            </table>            
        </chapter>
        <chapter title="chapter 3">
            <new-page size="A4" rotate="false" />
            <paragraph halign="justified">
                Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed dictum fringilla purus.
                Donec eu erat ac purus egestas porta. Mauris aliquet posuere tortor. Nunc lacinia.
            </paragraph>
        </chapter>
    </document>

    the result pdf contains a blank page before the 'chapter 2'.  and it was because the table-header in chapter 2 contains a <phrase rotate="90">. If i removed the "rotate=90" then it works fine.

    looking forward for your reply.

    Best regards
    Shawn

     
    • Christian Lauer

      Christian Lauer - 2005-04-23

      Hi Shawn,

      i've fixed this issue, the patch is in CVS right now.

      Best regards,
      Christian

       
      • Abdul Rauf

        Abdul Rauf - 2018-07-30

        Is it resolved? I am still facing this issue with ujac 1.1.0 if I use rotate (e.g. rotate="90") with phrase or td tag. Latest version 1.1.5 is not published to maven

         

        Last edit: Abdul Rauf 2018-07-30
    • shawnc

      shawnc - 2005-04-23

      thank you very much Christian.

      keep up with the good work

      shawn

       

Log in to post a comment.