mesaglam / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Small square pages are created in a sort of random fashion. #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sometimes the pages will be little squares instead of real pages.

What version of the product are you using? On what operating system?
0.14

Please provide any additional information below.

this usually happens when I output a really long datagrid, I catch the page
break before the auto-page-break happens so I can reinsert the datagrid
header on a new page.

Original issue reported on code.google.com by maxi...@gmail.com on 24 Apr 2008 at 7:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Okay I think I put my finger on it, the problem seemed to happen usually some 
time
after I exported the same pdf multiple times during the same session.

In pdf.as

public static var references:String = new String;

This variable just keeps getting longer and longer the more you export pdfs. So
eventually the pdfs become corrupt and create the "small square pages problem"
refenreced above.

I fixed it by adding :

Page.references = "";

To the constructor of PDF.as

Original comment by maxi...@gmail.com on 9 May 2008 at 5:51