PdfFileEditor.TryMakeBooklet

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

Makes booklet from source file and stores result into HttpResponse objects.

public bool TryMakeBooklet(string inputFile, PageSize pageSize, int[] leftPages, int[] rightPages, 
    HttpResponse response)
ParameterTypeDescription
inputFileStringSource file path.
pageSizePageSizeDesired page size.
leftPagesInt32[]Aray of page numbers to be placed in left.
rightPagesInt32[]Array of page numbers to be placed in right.
responseHttpResponseHttpResponse object where result will be stored.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

See Also


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

Make booklet from PDF file and stores it into HttpResponse.

public bool TryMakeBooklet(Stream inputStream, PageSize pageSize, int[] leftPages, 
    int[] rightPages, HttpResponse response)
ParameterTypeDescription
inputStreamStreamInput document stream.
pageSizePageSizeDesired page size.
leftPagesInt32[]Array of page numbers which will be placed in left.
rightPagesInt32[]Array of page numbers which will b eplaced in right.
responseHttpResponseHttpResponse object.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

See Also


TryMakeBooklet(string, PageSize, HttpResponse)

Makes booklet from source file and stores result into HttpResponse objects.

public bool TryMakeBooklet(string inputFile, PageSize pageSize, HttpResponse response)
ParameterTypeDescription
inputFileStringSource file path.
pageSizePageSizeDesired page size in output file.
responseHttpResponseHttpResponse object where result will be stored.

Return Value

True if operation is succeeded.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

See Also


TryMakeBooklet(Stream, PageSize, HttpResponse)

Makes booklet from source file and stores result into HttpResponse.

public bool TryMakeBooklet(Stream inputStream, PageSize pageSize, HttpResponse response)
ParameterTypeDescription
inputStreamStreamInput document stream.
pageSizePageSizeDesired page size in output file.
responseHttpResponseRespose object where resut will be saved.

Return Value

true if booklet was built successfully.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

See Also


TryMakeBooklet(string, string)

Makes booklet from the input file to output file.

public bool TryMakeBooklet(string inputFile, string outputFile)
ParameterTypeDescription
inputFileStringInput pdf file path and name.
outputFileStringOutput pdf file path and name.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

Examples

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

See Also


TryMakeBooklet(Stream, Stream)

Makes booklet from the InputStream to outputStream.

public bool TryMakeBooklet(Stream inputStream, Stream outputStream)
ParameterTypeDescription
inputStreamStreamInput pdf stream.
outputStreamStreamoutput pdf stream.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

Examples

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);

See Also


TryMakeBooklet(string, string, PageSize)

Makes booklet from the inputFile to outputFile.

public bool TryMakeBooklet(string inputFile, string outputFile, PageSize pageSize)
ParameterTypeDescription
inputFileStringInput pdf file path and name.
outputFileStringOutput pdf file path and name.
pageSizePageSizeThe page size of the output pdf file.

Return Value

True if operation is succeeded.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

Examples

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

See Also


TryMakeBooklet(Stream, Stream, PageSize)

Makes booklet from the input stream and save result into output stream.

public bool TryMakeBooklet(Stream inputStream, Stream outputStream, PageSize pageSize)
ParameterTypeDescription
inputStreamStreamInput PDF stream.
outputStreamStreamoutput pdf stream.
pageSizePageSizeThe page size of the output pdf file.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

Examples

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);

See Also


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

Makes customized booklet from the firstInputFile to outputFile.

public bool TryMakeBooklet(string inputFile, string outputFile, int[] leftPages, int[] rightPages)
ParameterTypeDescription
inputFileStringThe input file.
outputFileStringOutput pdf file path and name.
leftPagesInt32[]The left pages of the booklet.
rightPagesInt32[]The right pages of the booklet.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

Examples

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

See Also


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

Makes customized booklet from the firstInputStream to outputStream.

public bool TryMakeBooklet(Stream inputStream, Stream outputStream, int[] leftPages, 
    int[] rightPages)
ParameterTypeDescription
inputStreamStreamThe input stream.
outputStreamStreamoutput pdf stream.
leftPagesInt32[]The left pages.
rightPagesInt32[]The right pages.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

Examples

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 });

See Also


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

Makes customized booklet from the firstInputFile to outputFile.

public bool TryMakeBooklet(string inputFile, string outputFile, PageSize pageSize, int[] leftPages, 
    int[] rightPages)
ParameterTypeDescription
inputFileStringThe input file.
outputFileStringOutput pdf file path and name.
pageSizePageSizeThe page size of the output pdf file.
leftPagesInt32[]The left pages.
rightPagesInt32[]The right pages.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

Examples

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 });

See Also


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

Makes booklet from the firstInputStream to outputStream.

public bool TryMakeBooklet(Stream inputStream, Stream outputStream, PageSize pageSize, 
    int[] leftPages, int[] rightPages)
ParameterTypeDescription
inputStreamStreamThe input stream.
outputStreamStreamoutput pdf stream.
pageSizePageSizeThe page size of the output pdf file.
leftPagesInt32[]The left pages.
rightPagesInt32[]The right pages.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeBooklet method is like the MakeBooklet method, except the TryMakeBooklet method does not throw an exception if the operation fails.

Examples

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 });

See Also