TryMakeBooklet

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

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

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

返回值

如果操作成功完成,则为 true;否则为假。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

也可以看看


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

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

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

返回值

如果操作成功完成,则为 true;否则为假。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

也可以看看


TryMakeBooklet(string, PageSize, HttpResponse)

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

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

返回值

如果操作成功则为真。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

也可以看看


TryMakeBooklet(Stream, PageSize, HttpResponse)

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

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

返回值

如果小册子已成功构建,则为 true。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

也可以看看


TryMakeBooklet(string, string)

制作从输入文件到输出文件的小册子。

public bool TryMakeBooklet(string inputFile, string outputFile)
范围类型描述
inputFileString输入pdf文件路径和名称.
outputFileString输出pdf文件路径和名称.

返回值

如果操作成功完成,则为 true;否则为假。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

例子

PdfFileEditor pfe = new PdfFileEditor();
bool result = pfe.TryMakeBooklet("input.pdf", "output.pdf");

也可以看看


TryMakeBooklet(Stream, Stream)

制作从 InputStream 到 outputStream. 的小册子

public bool TryMakeBooklet(Stream inputStream, Stream outputStream)
范围类型描述
inputStreamStream输入pdf流.
outputStreamStream输出pdf流.

返回值

如果操作成功完成,则为 true;否则为假。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

例子

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

也可以看看


TryMakeBooklet(string, string, PageSize)

制作从 inputFile 到 outputFile. 的小册子

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

返回值

如果操作成功则为真。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

例子

PdfFileEditor pfe = new PdfFileEditor();
bool result = pfe.TryMakeBooklet("input.pdf", "output.pdf", PageSize.A4);

也可以看看


TryMakeBooklet(Stream, Stream, PageSize)

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

public bool TryMakeBooklet(Stream inputStream, Stream outputStream, PageSize pageSize)
范围类型描述
inputStreamStream输入 PDF 流.
outputStreamStream输出pdf流.
pageSizePageSize输出pdf文件的页面大小.

返回值

如果操作成功完成,则为 true;否则为假。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

例子

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

也可以看看


TryMakeBooklet(string, string, int[], int[])

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

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

返回值

如果操作成功完成,则为 true;否则为假。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

例子

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

也可以看看


TryMakeBooklet(Stream, Stream, int[], int[])

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

public bool TryMakeBooklet(Stream inputStream, Stream outputStream, int[] leftPages, 
    int[] rightPages)
范围类型描述
inputStreamStream输入流。
outputStreamStream输出pdf流。
leftPagesInt32[]左页。
rightPagesInt32[]正确的页面。

返回值

如果操作成功完成,则为 true;否则为假。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

例子

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

也可以看看


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

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

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

返回值

如果操作成功完成,则为 true;否则为假。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

例子

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

也可以看看


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

制作从 firstInputStream 到 outputStream. 的小册子

public bool TryMakeBooklet(Stream inputStream, Stream outputStream, PageSize pageSize, 
    int[] leftPages, int[] rightPages)
范围类型描述
inputStreamStream输入流。
outputStreamStream输出pdf流。
pageSizePageSize输出 pdf 文件的页面大小。
leftPagesInt32[]左页。
rightPagesInt32[]正确的页面。

返回值

如果操作成功完成,则为 true;否则为假。

评论

TryMakeBooklet 方法与 MakeBooklet 方法类似,只是 TryMakeBooklet 方法在操作失败时不会抛出异常。

例子

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

也可以看看