Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Jan 08, 2019 3:41 pm

Is there any way to append new pages to existing PDF document?

[email protected]
 
Posts: 8
Joined: Mon Dec 17, 2018 9:21 pm

Wed Jan 09, 2019 2:12 am

Hi,

Thanks for your inquiry.
Yes, please refer to following code:
Code: Select all
            PdfDocument doc = new PdfDocument();
            doc.LoadFromFile(@"iinput.pdf");
            //append a new page with A4 size, you could change the page size in the override method.
            PdfPageBase newPage = doc.Pages.Add();


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Jan 15, 2019 9:18 am

Hi,

Greetings from E-iceblue.
Did the code I provided help you solve your issue? Could you please give us some feedback at your convenience?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF

cron