PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Nov 19, 2017 5:40 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Oct 18, 2017 3:54 pm 
Offline

Joined: Wed Mar 29, 2017 4:22 pm
Posts: 12
Location: Virginia (USA)
We've been using PDFSharp to fill in forms using a database and it's worked great.

Up until now we just open a pre-made PDF for modify, fill in the AcroForm fields using the database and then save to stream (so the original file doesn't change). Again, so far so good.

Now however we'd like to use a single page PDF as a template and repeat it per database record so the final result is a multi-page PDF with each page being the same except the values in the AcroForm fields which are populated differently for each database record.

Looking at the samples for combining PDFs I can make a new PDF and import the page from the template PDF for each record but opening the template for Import and copying the page doesn't seem to bring the AcroForm. Also most of the AcroForm fields in the API seem to be read-only and I suspect even if I can get it into the new document if the fields all have the same name then they'll share a single value instead of different values for page... so I'll need to rename the fields in the generated document with maybe a count on the end. For example:
Template Field Name: Name
Generated Document Field Name: Name1, Name2, Name3...Name{N} where {N} is the number of pages.

Is this even possible with PDFsharp? Anyone have any experience with something like this or have another way to accomplish it that I'm not thinking of?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group