riadvice / AlivePDF

[Official AlivePDF] - AlivePDF is a client side AS3 PDF generation library for Adobe Flash, Flex and AIR
https://riadvice.github.io/AlivePDF/
32 stars 6 forks source link

footer not printing when Grid exceeds the page limit #218

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add Grid with data which exceeds the page

What is the expected output? What do you see instead?

Expected to see the footer in the first page. But I can see the footer only 
for the next page.

What version of the product are you using? On what operating system?
AlivePDF 0.1.5 RC, Windows XP.

Please provide any additional information below.

Original issue reported on code.google.com by kanfl...@gmail.com on 5 Apr 2010 at 10:05

GoogleCodeExporter commented 8 years ago
I ran into this issue without grids. The footer code in addPage() is after the 
code that actually adds that page, 
meaning when you go to print the footer for the first page you're actually on 
the second. I fixed this by 
moving the following code to the top of the addPage() method:

if( nbPages > 0 )
{
    inFooter = true;
    footer();
    inFooter = false;
    finishPage();
}

Original comment by rhysyng...@gmail.com on 29 Apr 2010 at 3:17

GoogleCodeExporter commented 8 years ago
Hi Team,

I have faced the exact same issue as described above. Is there any work around 
for the issue?

Original comment by newnavee...@gmail.com on 11 May 2011 at 8:47

GoogleCodeExporter commented 8 years ago
Same issue here. Moving the code(as suggested in Comment 1) to the top of the 
addPage() method works for me as well.

Original comment by eric.j.o...@gmail.com on 13 Dec 2011 at 3:47