PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri May 24, 2024 9:41 am

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: Sat Oct 15, 2022 1:17 pm 
Offline

Joined: Sat Oct 15, 2022 1:10 pm
Posts: 1
Hello.
I'm filling a couple of fillable form pdfs and trying to add them together to create a new pdf.

Creating, filling, and saving the pdf's into disk is done.

What is not working is creating a new pdf, with all the others.

I'm Iterating all the pdfs from the system, and one by one:

Code:
var docToImport = PdfReader.Open(pathToPdf, PdfDocumentOpenMode.Import);
doc.AddPage(docToImport.Pages[0]);


After iterating over all pdfs
just

Code:
docFromFileSystem.Save(output);


The correct number, and pdfs are inserted.
BUT the issue is that if any form field has the same name as other field, it gets replaced by the new one.
This is preventing me from adding more of the same pdf pages (same form, but different data filled) to the same pdf.

Any way to prevent this behaviour and just insert the pdfs without chaning the data?


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 53 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:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group