Skip Menu |
 

This queue is for tickets about the PDF-Template CPAN distribution.

Report information
The Basics
Id: 5383
Status: open
Priority: 0/
Queue: PDF-Template

People
Owner: RKINYON [...] cpan.org
Requestors: kai.iskratsch [...] awd.at
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.14
Fixed in: (no value)



Subject: Empty rows in loops / Data missing
Download (untitled) / with headers
text/plain 2.7k
There seems to be a problem with looping through data. allways about at the same position on the paper (not depending on page format) will the output be interrupted and 1 line will not be displayed. Then the output will continue as if nothing had happened. Maxiters seems to be not working too, Because i tried to use it as a workaround to only display the lines up to this position. And Landscape page format seems to have a problem if you do not define it in the pdftemplate statement too. This should be used to generate some reports in my company (and the xml is froma real report, only the data is some repeating data). I am using the actual version of the PDFlib Lite and perl 5.8/5.6.1 (on two different systems) on Linux based on Redhat 7.2/8.0. The XML File I am using to generate the output is: <?xml version="1.0" encoding="ISO-8859-1" ?> <pdftemplate pagesize="A4" landscape='1'> <pagedef pagesize="A4" landscape='1' margins="2c"> <font face="Times-Roman" h="8"> <header header_height="2c"> <row y="20c" h="20"> <textbox w="50%" justify="left" text="Uebersicht - Abreifende Vertraege"/> <textbox w="50%" justify="right" text="$Date"/> </row> </header> <always> <font face="Times-Bold" h="8"> <row> <textbox w="10%" justify="center">Kuendigungsfrist</textbox> <textbox w="5%" justify="center">MANR</textbox> <textbox w="15%" justify="center">Name</textbox> <textbox w="5%" justify="center">ANNR</textbox> <textbox w="15%" justify="center">Gesellschaft</textbox> <textbox w="15%" justify="center">Produkt</textbox> <textbox w="5%" justify="center">P-Nr.</textbox> <textbox w="15%" justify="center">Kunde</textbox> <textbox w="15%" justify="center">Status</textbox> </row> <hr /> </font> </always> <loop name="DATA"> <row> <textbox w="10%" justify="left" text="$Kfrist" /> <textbox w="5%" justify="left" text="$MANR" /> <textbox w="15%" justify="left" text="$Name"/> <textbox w="5%" justify="left" text="$ANNR" /> <textbox w="15%" justify="left" text="$Gesellschaft" /> <textbox w="15%" justify="left" text="$Produkt" /> <textbox w="5%" justify="left" text="$PNr" /> <textbox w="15%" justify="left" text="$Kunde" /> <textbox w="15%" justify="left" text="$Status" /> </row> <!-- <hr /> --> </loop> <footer footer_height="2c"> <row y=".5c" h="20"> <textbox w="100%" justify="right"><var name="__PAGE__"/> / <var name="__LAST_PAGE__"/></textbox> </row> </footer> </font> </pagedef> </pdftemplate>
Download Error2.pdf
application/pdf 7.5k

Message body not shown because it is not plain text.

From: kai.iskratsch [...] awd.at
Download (untitled) / with headers
text/plain 177b
I did some more testing and found out that sometimes the loop prints into footer area too, if you call the programm again without changing anything the footer is here again.
From: kai.iskratsch [...] awd.at
Download (untitled) / with headers
text/plain 177b
I did some more testing and found out that sometimes the loop prints into footer area too, if you call the programm again without changing anything the footer is here again.
Download (untitled) / with headers
text/plain 3.4k
Kai - Sorry it took me so long to respond - there were configuration issues in rt.cpan.org that kept the bug notifications from getting to me. They have been resolved now. Please let me know if this is still a problem in v0.20 and above. I made some changes to how loops handle data and they may have fixed this problem. If it is still a problem, please provide an example script that demonstrates the issue and include the version of PDFlib Lite that you are using. Thanks, Rob [guest - Thu Feb 19 10:29:56 2004]: Show quoted text
> There seems to be a problem with looping through data. > allways about at the same position on the paper (not depending on page > format) will the output be interrupted and 1 line will not be > displayed. Then the output will continue as if nothing had happened. > > Maxiters seems to be not working too, Because i tried to use it as a > workaround to only display the lines up to this position. > > And Landscape page format seems to have a problem if you do not define > it in the pdftemplate statement too. > > This should be used to generate some reports in my company (and the > xml is froma real report, only the data is some repeating data). > > I am using the actual version of the PDFlib Lite and perl 5.8/5.6.1 > (on two different systems) on Linux based on Redhat 7.2/8.0. > > The XML File I am using to generate the output is: > > <?xml version="1.0" encoding="ISO-8859-1" ?> > <pdftemplate pagesize="A4" landscape='1'> > <pagedef pagesize="A4" landscape='1' margins="2c"> > <font face="Times-Roman" h="8"> > <header header_height="2c"> > <row y="20c" h="20"> > <textbox w="50%" justify="left" text="Uebersicht - > Abreifende Vertraege"/> > <textbox w="50%" justify="right" text="$Date"/> > </row> > </header> > <always> > <font face="Times-Bold" h="8"> > <row> > <textbox w="10%" > justify="center">Kuendigungsfrist</textbox> > <textbox w="5%" justify="center">MANR</textbox> > <textbox w="15%" justify="center">Name</textbox> > <textbox w="5%" justify="center">ANNR</textbox> > <textbox w="15%" justify="center">Gesellschaft</textbox> > <textbox w="15%" justify="center">Produkt</textbox> > <textbox w="5%" justify="center">P-Nr.</textbox> > <textbox w="15%" justify="center">Kunde</textbox> > <textbox w="15%" justify="center">Status</textbox> > </row> > <hr /> > </font> > </always> > <loop name="DATA"> > <row> > <textbox w="10%" justify="left" text="$Kfrist" /> > <textbox w="5%" justify="left" text="$MANR" /> > <textbox w="15%" justify="left" text="$Name"/> > <textbox w="5%" justify="left" text="$ANNR" /> > <textbox w="15%" justify="left" text="$Gesellschaft" /> > <textbox w="15%" justify="left" text="$Produkt" /> > <textbox w="5%" justify="left" text="$PNr" /> > <textbox w="15%" justify="left" text="$Kunde" /> > <textbox w="15%" justify="left" text="$Status" /> > </row> > <!-- <hr /> --> > </loop> > > > <footer footer_height="2c"> > <row y=".5c" h="20"> > <textbox w="100%" justify="right"><var name="__PAGE__"/> / > <var name="__LAST_PAGE__"/></textbox> > </row> > </footer> > > </font> > </pagedef> > </pdftemplate>


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.