PdfFileEditor.MakeBooklet

MakeBooklet(string, string)

将输入文件制作成输出文件的小册子。

public bool MakeBooklet(string inputFile, string outputFile)
参数类型描述
inputFileString输入 pdf 文件路径和名称。
outputFileString输出 pdf 文件路径和名称。

返回值

boolean - 成功返回 true,失败返回 false。

示例

PdfFileEditor pfe = new PdfFileEditor();
pfe.MakeBooklet("input.pdf", "output.pdf");

另见


MakeBooklet(Stream, Stream)

将输入流制作成输出流的小册子。

public bool MakeBooklet(Stream inputStream, Stream outputStream)
参数类型描述
inputStreamStream输入 pdf 流。
outputStreamStream输出 pdf 流。

返回值

如果操作成功,则返回 true。

示例

PdfFileEditor pfe = new PdfFileEditor();
Stream inputStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
Stream outputStream = new FileStream("output.pdf", FileMode.Create, FileAccess.Write);
pfe.MakeBooklet(inputStream, outputStream);

另见


MakeBooklet(string, string, PageSize)

将输入文件制作成输出文件的小册子。

public bool MakeBooklet(string inputFile, string outputFile, PageSize pageSize)
参数类型描述
inputFileString输入 pdf 文件路径和名称。
outputFileString输出 pdf 文件路径和名称。
pageSizePageSize输出 pdf 文件的页面大小。

返回值

如果操作成功,则返回 true。

示例

PdfFileEditor pfe = new PdfFileEditor();
pfe.MakeBooklet("input.pdf", "output.pdf", PageSize.A4);

另见


MakeBooklet(Stream, Stream, PageSize)

将输入流制作成小册子并将结果保存到输出流中。

public bool MakeBooklet(Stream inputStream, Stream outputStream, PageSize pageSize)
参数类型描述
inputStreamStream输入 PDF 流。
outputStreamStream输出 pdf 流。
pageSizePageSize输出 pdf 文件的页面大小。

返回值

如果操作成功,则返回 true。

示例

PdfFileEditor pfe = new PdfFileEditor();
Stream inputStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
Stream outputStream = new FileStream("output.pdf", FileMode.Create, FileAccess.Write);
pfe.MakeBooklet(inputStream, outputStream, PageSize.A4);

另见


MakeBooklet(string, string, int[], int[])

从 firstInputFile 制作自定义小册子到 outputFile。

public bool MakeBooklet(string inputFile, string outputFile, int[] leftPages, int[] rightPages)
参数类型描述
inputFileString输入文件。
outputFileString输出 pdf 文件路径和名称。
leftPagesInt32[]小册子的左侧页面。
rightPagesInt32[]小册子的右侧页面。

返回值

boolean - 成功返回 true,失败返回 false。

示例

PdfFileEditor pfe = new PdfFileEditor();
pfe.MakeBooklet("input.pdf", "output.pdf", new int[] { 2, 4, 6 }, new int[] 1, 3, 5, 7 });

另见


MakeBooklet(Stream, Stream, int[], int[])

从 firstInputStream 制作自定义小册子到 outputStream。

public bool MakeBooklet(Stream inputStream, Stream outputStream, int[] leftPages, int[] rightPages)
参数类型描述
inputStreamStream输入流。
outputStreamStream输出 pdf 流。
leftPagesInt32[]左侧页面。
rightPagesInt32[]右侧页面。

返回值

boolean - 成功返回 true,失败返回 false。

示例

PdfFileEditor pfe = new PdfFileEditor();
Stream inputStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
Stream outputStream = new FileStream("output.pdf", FileMode.Create, FileAccess.Write);
pfe.MakeBooklet(inputStream, outputStream, new int[] { 2, 4, 6 }, new int[] 1, 3, 5, 7 });

另见


MakeBooklet(string, string, PageSize, int[], int[])

从 firstInputFile 制作自定义小册子到 outputFile。

public bool MakeBooklet(string inputFile, string outputFile, PageSize pageSize, int[] leftPages, 
    int[] rightPages)
参数类型描述
inputFileString输入文件。
outputFileString输出 pdf 文件路径和名称。
pageSizePageSize输出 pdf 文件的页面大小。
leftPagesInt32[]左侧页面。
rightPagesInt32[]右侧页面。

返回值

boolean - 成功返回 true,失败返回 false。

示例

PdfFileEditor pfe = new PdfFileEditor();
pfe.MakeBooklet("input.pdf", "output.pdf", PageSize.A4, new int[] { 2, 4, 6 }, new int[] 1, 3, 5, 7 });

另见


MakeBooklet(Stream, Stream, PageSize, int[], int[])

从 firstInputStream 制作小册子到 outputStream。

public bool MakeBooklet(Stream inputStream, Stream outputStream, PageSize pageSize, 
    int[] leftPages, int[] rightPages)
参数类型描述
inputStreamStream输入流。
outputStreamStream输出 pdf 流。
pageSizePageSize输出 pdf 文件的页面大小。
leftPagesInt32[]左侧页面。
rightPagesInt32[]右侧页面。

返回值

boolean - 成功返回 true,失败返回 false。

示例

PdfFileEditor pfe = new PdfFileEditor();
Stream inputStream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
Stream outputStream = new FileStream("output.pdf", FileMode.Create, FileAccess.Write);
pfe.MakeBooklet(inputStream, outputStream, PageSize.A4, new int[] { 2, 4, 6 }, new int[] 1, 3, 5, 7 });

另见

MakeBooklet(string, PageSize, int[], int[], HttpResponse)

从源文件制作小册子并将结果存储到 HttpResponse 对象中。

public bool MakeBooklet(string inputFile, PageSize pageSize, int[] leftPages, int[] rightPages, 
    HttpResponse response)
参数类型描述
inputFileString源文件路径。
pageSizePageSize所需的页面大小。
leftPagesInt32[]要放置在左侧的页面编号数组。
rightPagesInt32[]要放置在右侧的页面编号数组。
responseHttpResponse将存储结果的 HttpResponse 对象。

返回值

如果操作成功,则返回 true。

另见


MakeBooklet(Stream, PageSize, int[], int[], HttpResponse)

从 PDF 文件制作小册子并将其存储到 HttpResponse 中。

public bool MakeBooklet(Stream inputStream, PageSize pageSize, int[] leftPages, int[] rightPages, 
    HttpResponse response)
参数类型描述
inputStreamStream输入文档流。
pageSizePageSize所需的页面大小。
leftPagesInt32[]将放置在左侧的页面编号数组。
rightPagesInt32[]将放置在右侧的页面编号数组。
responseHttpResponseHttpResponse 对象。

返回值

如果操作成功,则返回 true。

另见


MakeBooklet(string, PageSize, HttpResponse)

从源文件制作小册子并将结果存储到 HttpResponse 对象中。

public bool MakeBooklet(string inputFile, PageSize pageSize, HttpResponse response)
参数类型描述
inputFileString源文件路径。
pageSizePageSize输出文件中的所需页面大小。
responseHttpResponse将存储结果的 HttpResponse 对象。

返回值

如果操作成功,则返回 true。

另见


MakeBooklet(Stream, PageSize, HttpResponse)

从源文件制作小册子并将结果存储到 HttpResponse。

public bool MakeBooklet(Stream inputStream, PageSize pageSize, HttpResponse response)
参数类型描述
inputStreamStream输入文档流。
pageSizePageSize输出文件中的所需页面大小。
responseHttpResponse将保存结果的响应对象。

返回值

如果小册子成功构建,则返回 true。

另见