wiln / alivepdf

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

Multicell Landscape Letter #237

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm an AlivePDF newbie so maybe I'm not using it correctly but I'm trying 
to add multicell text to landscape letter sized page and soon as I get 
near the bottom, the multicell disappears or adds a new page to the pdf. 
Any help would be appreciated...

ie.

myPDF.set(4.25,7.75);
myPDF.addMultiCell(6.15, 0.125, theNotes, 1, "J", 0);

fyi, I'm using 0.1.5RC.

Original issue reported on code.google.com by burnaby...@gmail.com on 30 Apr 2010 at 11:42

GoogleCodeExporter commented 9 years ago
This is an ammendment to my original post. I think problem is that the 
addMulticell 
method is adding a new page (page break) to the pdf when the text is forced to 
create a new line within the addMultiCell.

Original comment by burnaby...@gmail.com on 4 May 2010 at 3:58

GoogleCodeExporter commented 9 years ago
I'm having exactly the same problem (but using "AlivePDF 0.1.4.9")
Did you have any progress?
Is a interesting observation, I'll looking in addMultiCell function...

Original comment by che...@gmail.com on 19 May 2010 at 10:50

GoogleCodeExporter commented 9 years ago
I got it.
Just disable  autoPageBreak, on "pdf.as"

find: (line 4088)
setAutoPageBreak ( true, margin * 2 );

change it for:
setAutoPageBreak ( false, 0 );  

:]

Original comment by che...@gmail.com on 20 May 2010 at 3:44

GoogleCodeExporter commented 9 years ago
Hi guys,

I just committed this in the revision 269. You noz have an autoPageBreak 
parameter in the PDF, UnicodePDF and 
Invoice classes ;)

best,

Thibault 

Original comment by thibault.imbert on 25 May 2010 at 8:43