chengse66 / alivepdf

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

Using writeFlashHtmlText moves next content to new page. #302

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. write text and add new line ( pdf.writeText() pdf.newLine( 15 );)
2. write flash html text and add new line ( pdf.writeFlashHtmlText() 
pdf.newLine( 15); )
3. write text ( pdf.writeText() )

What is the expected output? What do you see instead?
The text from (step #3) should come just after the html text ( step #2 ).
Instead the text from (step #3) get pushed to a new page leaving a gap between 
( step #2 & step #3 )

What version of the product are you using? On what operating system?
0.1.5 [RC]

Please provide any additional information below.
I Found a Solution to this. Dont know if it messes with other stuff but i works 
in my use-case.
About line #3043 in PDF.as ( last lines of the writeFlashHtmlText function ):
//Set current y off the page to force new page.
currentY += currentPage.h;

Comment out; currentY += currentPage.h;
// currentY += currentPage.h;

Thanks for such an awesome OS project!
Best regards
Martin Bjeld

Original issue reported on code.google.com by martinbj...@gmail.com on 14 Feb 2011 at 1:45