sivarajankumar / alivepdf

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

Corrupt PDF when using addImage with UnicodePDF and mixed characters #269

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a UnicodePDF and add text and images across a couple pages:

p = new UnicodePDF( Orientation.PORTRAIT, Unit.MM, true, Size.A4 );

p.addPage();
p.setFont(new ArialUnicodeMS(CidInfo.CHINESE_SIMPLIFIED), 14 );
p.addCell(100, 0, "算机上的",0,1,null, 0);
p.newLine(10);
p.addCell(100, 0, "asdf",0,1,null, 0);
p.newLine(10);  
p.addImage(saveButton, null, 0, 50);

p.addPage();
p.addCell(100, 0, "算机上的",0,1,null, 0);

2. Open PDF, click around on the text on both pages.

What is the expected output? What do you see instead?
Expect to see the PDF generated without issues. Instead after clicking around 
on the text, I get an "An error exists on this page." message from Acrobat.

What version of the product are you using? On what operating system?
Latest source from SVN for 1.5.0.  On Windows XP using Acrobat 8.1.3 standard.

Please provide any additional information below.
Attaching a simple test case and the resulting PDF.

Original issue reported on code.google.com by jlamo...@gmail.com on 7 Aug 2010 at 2:14

Attachments: