sivarajankumar / alivepdf

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

addPage not copying images? #153

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
HI there. I am building an application where I create two separate pdf
files at startup, and the user selects which of the two they want in the
output, and I merge the two pdf files.

I set the output pdf to equal one of the PDF’s and then use the addPage to
copy the other pages across.

var myNewPage:Page = my2ndSourcePDF.getPage(i).clone();
myOutputPDF.addPage(myNewPage);

These pages have an image created from a movieClip on them, which was added via

myPDF.addImage(image,myX,myY,myWidth, myHeight,ImageFormat.JPG,100,1)

When I load the new PDF I get the following error on Adobe:-
“Cannot find the XObject named ‘I2′”

the size of the pdf file saved shows that the images are not included in
the pdf file.

When I save the initial PDF it displays perfectly.

It would appear that adding the page is not copying the XOBjects across.

Would you be able to advise me with a fix or work around please?

thanks.

Andrew

Original issue reported on code.google.com by and...@harrisson.id.au on 3 Sep 2009 at 11:26