PageLayout

PdfSaveOptions.PageLayout property

指定在 PDF 阅读器中打开文档时使用的页面布局。

public PdfPageLayout PageLayout { get; set; }

评论

默认值为SinglePage.

例子

展示如何在 PDF 阅读器中打开时显示页面。

Document doc = new Document(MyDir + "Big document.docx");

// 一次显示两页,奇数页在左边。
PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.PageLayout = PdfPageLayout.TwoPageLeft;

doc.Save(ArtifactsDir + "PdfSaveOptions.PageLayout.pdf", saveOptions);

也可以看看