Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

Filling pdf makes it unable to after process it 8 years 5 months ago #11425

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Hi,

We've tested your issue, and we couldn't reproduce it with the demo latest version and iText java version 5.5.9...
We cannot test it using iTextSharp

We have used your fillPdf method, and the modified pdf can be opened and modified correctly using the following iText code:
PdfReader mPdfReader = new PdfReader(pdfPath);
PdfStamper stamper = new PdfStamper(mPdfReader, new FileOutputStream("Test_filled.pdf"), '0', true);
 stamper.addSignature("Signature", 1, 100, 100, 300, 300);
stamper.close();

I invite you to retry with our latest demo

Note: you are missing a p.Close() after p.FlatAnnots();
p.FlatAnnots();
p.Close();
currentPage++;

Please Log in or Create an account to join the conversation.

Last edit: by nermeen.

Filling pdf makes it unable to after process it 8 years 5 months ago #11442

  • fdelcaz
  • fdelcaz's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 21
  • Thank you received: 0
I added the line and it still show the same error

Please Log in or Create an account to join the conversation.

Filling pdf makes it unable to after process it 8 years 5 months ago #11443

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 695
  • Thank you received: 59
Which iTextC# are you using?
Is equivalent to the Java version we're adopting?

One test we might do is:
- you should open the PDF with your C# code
- save it without any modifcation
- send us: the original file, the modified by radaee, the saved by itext

Note: we will do deeper check using Adobe and PDF/Association's tools. If such tools will give positive result we can't guarantee to make fixes tight to iText behavior.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum