sivarajankumar / alivepdf

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

Adding text distorts layout #221

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Add images to the PDF using addImageStream
2. Add page number to the PDF using any method 
(writeFlashHtmlText,addMultiCell) or anything
3. Export PDF with and without text and the layout is different

What is the expected output? What do you see instead?
The text should not mess up with the rest

What version of the product are you using? On what operating system?
AlivePDF 0.15 on Mac OS X 10.6.3 with Flash Player 10.0.45.0 build with Flex 
SDK 3.5

Please provide any additional information below.
The images are positioned with already calculated values, adding new pages is 
controlled with 
already calculated values. Adding text can add pages (i'm still searching for a 
reason or logic this 
happens).

I've added two screenshots of Preview, both of the same PDF with the same 
elements but the first 
(..30.png) has text and therefor 2 pages extra.

Original issue reported on code.google.com by martijn....@gmail.com on 7 Apr 2010 at 7:33

Attachments:

GoogleCodeExporter commented 8 years ago
I was using 0.1.4.9 my excuses. But with 0.1.5 everything gets more distorted 
then ever. I've found one reason 
for my problem and at this point I got it working:

_PDF.setAutoPageBreak(false,0);
_PDF.setMargins(0,0,0,0);

By default AlivePDF controls the creation of pages, and I don't want that

Original comment by martijn....@gmail.com on 7 Apr 2010 at 8:27