1

I am working on an application that has a requirement for me to create a document, populated with data captured in my WPF application, for attaching to an email and sending to insurance company.

My client has been performing this by sending an editable PDF document to clients then proof reading upon receipt of completed form and manually attaching to email.

I initially thought of creating a word document laid out same format as existing and automating word using find/replace on placeholders such as etc...

However it would be great if I could populate the existing PDF docs wouldn't it.... Anyone know if possible?

Thanks.

CheGuevarasBeret
  • 1,364
  • 2
  • 14
  • 33
  • There are APIs for editing PDF files if that's what you are asking. One is iTextSharp which is a port of Java's iText. – kenny Dec 28 '12 at 13:24
  • In pdfs you actually would use form fields as place holders. While otherwise replacing text in the content stream is not completely impossible, it is very fickle. – mkl Dec 28 '12 at 19:25

1 Answers1

3

You can use PDFsharp/MigraDoc to edit pdf-files. Parsing the existing document and inserting text/images is simple enough, but I don't know if there is any support for actual placeholders.

EDIT: Found this approach, using iTextSharp and form fields: Using itextsharp (or any c# pdf library), how to open a PDF, replace some text, and save it again?

Community
  • 1
  • 1
JGaarsdal
  • 241
  • 1
  • 6