Hello,
thank you in advance for your help.
I am checking the iText library for a development, but I have found a problem, I
am trying to insert a GIF into an existing PDF form (theirs fields are filled).
I do it but the fields dissapear, and I can see only the image and the fixed
text.
I have mixed some of the examples but the results are similar. Have anyone an
idea about my problem?
Import ....
PdfReader reader1 = new PdfReader("c:\\modified.pdf");
int n = reader1.getNumberOfPages();
Document document = new Document();
PdfWriter writer =
PdfWriter.getInstance(document, new FileOutputStream("c:\\final.pdf"));
document.open();
document.newPage();
PdfContentByte cb = writer.getDirectContent();
PdfImportedPage page1 = writer.getImportedPage(reader1, 1);
Image gif = Image.getInstance("C:\\TEMP\\Fotos\\botoninicio.gif");
gif.setAbsolutePosition(60, 620);
cb.addImage(gif);
cb.addTemplate(page1,0,0);
document.close();
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions