如何在Pdfsharp中创建第二页 [英] How Do I Create Second Page In Pdfsharp
本文介绍了如何在Pdfsharp中创建第二页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在C#中创建PDFSharp中的第二页pdf
How to create a second page pdf in PDFSharp at C#
推荐答案
为什么不直接调用AddPage
或InsertPage
在PdfDocument
上?
如下所示:
Why don't you just callAddPage
orInsertPage
on thePdfDocument
?
So something like:
// 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);
这篇关于如何在Pdfsharp中创建第二页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文