Click here to Skip to main content
16,019,740 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to create a second page pdf in PDFSharp at C#
Posted
Updated 13-Mar-15 0:35am
v2
Comments
[no name] 13-Mar-15 6:11am    
Not clear..
Leo Chapiro 13-Mar-15 6:35am    
How have you created the first page, dude?
What is in first page? And why you need second one?

1 solution

Why don't you just call AddPage or InsertPage on the PdfDocument?
So something like:
C#
// Create new or open existing PDF.
PdfDocument document = ...

// Create new empty page.
PdfPage page = document.AddPage();

// Get graphics object for drawing.
XGraphics graphics = XGraphics.FromPdfPage(page);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900