PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 6:44 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Jun 02, 2022 9:48 pm 
Offline

Joined: Wed Mar 30, 2022 11:38 pm
Posts: 2
Hello Team,

I am using PDFSharpCore 1.3.9 library.

I have two PDF documents. Both with a single page. I am trying to concatenate these two PDF document using below code
Here OutputDocument is first PDF and input is second PDF to be merged.

Code:
foreach (var page in input.Pages)
            {
                // Add it to the output document.
                outputDocument.AddPage(page, AnnotationCopyingType.DeepCopy);
            }
            return outputDocument;


After merge is done, I am only able to get acroform fields for the first page which is first document and not for the second one. I think somehow AddPage is making Acroform of document to be merged as null. Am I missing something here?

Thank you for your help!


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 03, 2022 7:13 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 905
Location: CCAA
joshihrn1990 wrote:
I am using PDFSharpCore 1.3.9 library.
Do you get the same results when using our library?

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 44 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