PdfPageLayout

PdfPageLayout enumeration

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

public enum PdfPageLayout

价值观

姓名价值描述
SinglePage0一次显示一页。
OneColumn1在一列中显示页面。
TwoColumnLeft2将页面显示为两列,奇数页在左侧。
TwoColumnRight3将页面显示为两列,奇数页在右侧。
TwoPageLeft4一次显示两页,奇数页在左边。
TwoPageRight5一次显示两页,奇数页在右侧。

例子

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

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

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

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

也可以看看