0

I use ITextSharp to create a PDF with form data based on another PDF. The problem is the file generated is not editable (the form on it).

If I use ITextSharp in append mode, I get the form editable but most of the form data is not preserved. I want the user to see the resulted PDF with the PDF Form data preserved.

I understand there is NOTHING I can do. The only way for the user to edit the resulted PDF is to use a paid Acrobat version on it. This is because I CHANGE the PDF file by entering form data and setting fonts on it. Is there something I can do?

Paul

BogadoDiego
  • 329
  • 3
  • 7
Paul Rusu
  • 23
  • 7
  • While the current answers employ educated guesswork, the situation may be different for your specific PDF. Thus, please share it for analysis of the issue. – mkl Aug 12 '16 at 12:17

2 Answers2

1

Your question isn't very clear, but here are some answers to similar questions that have been asked before:

I'm pretty sure one of these question is a duplicate of what you're asking, but since your question isn't clear, it's hard to mark your question as an exact duplicate of one of them.

Community
  • 1
  • 1
Bruno Lowagie
  • 75,994
  • 9
  • 109
  • 165
0

Short answer: No

Pdf file are likely to be secure (read only) and this is why everyone is using it. Most of the time, we convert a file into a pdf so maybe if you can get the 'file' and not the pdf will be a good move there.

From my experience in the past, I can confirm with you that iTextSharp may not convert all your data properly and this can make your generated file unusable. If not, you might have some weird line or some changes in the document behavior (ex. fields are not editable anymore).

If you really want to work with pdf file as input and do your stuff with it, you will need to understand the inner structure of it:

[PDF file format] http://resources.infosecinstitute.com/pdf-file-format-basic-structure/

This can be a hell of a ride. You might need to re-consider the use of a pdf as input. If you can't change that, you might need to use some sort of adobe pluging to do so. Alot of third party pdf library is doing that.

Good luck

Vincent L.
  • 46
  • 6