PdfFileEditor.TryMakeNUp

TryMakeNUp(string, int, int, PageSize, HttpResponse)

Makes N-up document and stores result into HttpResponse object.

public bool TryMakeNUp(string inputFile, int x, int y, PageSize pageSize, HttpResponse response)
ParameterTypeDescription
inputFileStringPath to source file.
xInt32Number of columns.
yInt32Number of rows.
pageSizePageSizePage size in result file.
responseHttpResponseHttpResponse object where result will be stored.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

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

See Also


TryMakeNUp(Stream, int, int, PageSize, HttpResponse)

Makes N-up document and stores result into HttpResponse object.

public bool TryMakeNUp(Stream inputStream, int x, int y, PageSize pageSize, HttpResponse response)
ParameterTypeDescription
inputStreamStreamStream of source document.
xInt32Number of columns.
yInt32Number of rows.
pageSizePageSizePage size in result file.
responseHttpResponseHttpResponse object where result will be stored.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

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

See Also


TryMakeNUp(string, int, int, HttpResponse)

Makes N-up document and stores result into HttpResponse.

public bool TryMakeNUp(string inputFile, int x, int y, HttpResponse response)
ParameterTypeDescription
inputFileStringSource file name.
xInt32Number of columns.
yInt32Number of rows.
responseHttpResponseHttpResponse object where result will be stored.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

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

See Also


TryMakeNUp(Stream, int, int, HttpResponse)

Makes N-up document and stores result into HttpResponse.

public bool TryMakeNUp(Stream inputStream, int x, int y, HttpResponse response)
ParameterTypeDescription
inputStreamStreamStream of input document.
xInt32Number of columns.
yInt32Number of rows.
responseHttpResponseHttpResponse where result will be stored.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

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

See Also


TryMakeNUp(string, string, int, int)

Makes N-Up document from the firstInputFile to outputFile.

public bool TryMakeNUp(string inputFile, string outputFile, int x, int y)
ParameterTypeDescription
inputFileStringInput pdf file path and name.
outputFileStringOutput pdf file path and name.
xInt32Number of columns.
yInt32Number of rows.

Return Value

true if operation was completed successfully; otherwise, false.

Remarks

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

Examples

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

See Also


TryMakeNUp(Stream, Stream, int, int)

Makes N-Up document from the input stream and saves result into output stream.

public bool TryMakeNUp(Stream inputStream, Stream outputStream, int x, int y)
ParameterTypeDescription
inputStreamStreamInput pdf stream.
outputStreamStreamOutput pdf stream.
xInt32Number of columns.
yInt32Number of rows.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeNUp method is like the MakeNUp method, except the TryMakeNUp 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.TryMakeNUp(inputStream, outputStream, 3, 3);

See Also


TryMakeNUp(Stream, Stream, int, int, PageSize)

Makes N-Up document from the first input stream to output stream.

public bool TryMakeNUp(Stream inputStream, Stream outputStream, int x, int y, PageSize pageSize)
ParameterTypeDescription
inputStreamStreamInput pdf stream.
outputStreamStreamOutput pdf stream.
xInt32Number of columns.
yInt32Number of rows.
pageSizePageSizeThe page size of the output pdf file.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

The TryMakeNUp method is like the MakeNUp method, except the TryMakeNUp 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.TryMakeNUp(inputStream, outputStream, 3, 3, PageSize.A4);

See Also


TryMakeNUp(string, string, string)

Makes N-Up document from the two input PDF files to outputFile. Each page of outputFile will contain two pages, one page is from the first input file and another is from the second input file. The two pages are piled up horizontally.

public bool TryMakeNUp(string firstInputFile, string secondInputFile, string outputFile)
ParameterTypeDescription
firstInputFileStringfirst input file.
secondInputFileStringsecond input file.
outputFileStringOutput pdf file path and name.

Return Value

true if operation was completed successfully; otherwise, false

Remarks

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

Examples

PdfFileEditor pfe = new PdfFileEditor();
bool result = pfe.TryMakeNUp("input1.pdf", "input2.pdf", "output.pdf");

See Also


TryMakeNUp(Stream, Stream, Stream)

Makes N-Up document from the two input PDF streams to outputStream.

public bool TryMakeNUp(Stream firstInputStream, Stream secondInputStream, Stream outputStream)
ParameterTypeDescription
firstInputStreamStreamfirst input stream.
secondInputStreamStreamsecond input stream.
outputStreamStreamOutput pdf stream.

Return Value

true if operation was completed successfully; otherwise, false

Remarks

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

Examples

PdfFileEditor pfe = new PdfFileEditor();
Stream input1 = new FileStream("input1.pdf", FileMode.Open, FileAccess.Read);
Stream input2 = new FileStream("input2.pdf", FileMode.Open, FileAccess.Read);
Stream output = new FileStream("output.pdf");
bool result = pfe.TryMakeNUp(input1, input2, output);

See Also


TryMakeNUp(string[], string, bool)

Makes N-Up document from the multi input PDF files to outputFile. Each page of outputFile will contain multi pages, which are combination with pages in the input files of the same page number. The multi pages piled up horizontally if isSidewise is true and piled up vertically if isSidewise is false.

public bool TryMakeNUp(string[] inputFiles, string outputFile, bool isSidewise)
ParameterTypeDescription
inputFilesString[]Input Pdf files.
outputFileStringOutput pdf file path and name.
isSidewiseBooleanPiled up way, true for horizontally and false for vertically.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

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

Examples

PdfFileEditor pfe = new PdfFileEditor();
bool result = pfe.TryMakeNUp(new string[] { "input1.pdf", "input2.pdf", "input3.pdf" }, "output.pdf", false);

See Also


TryMakeNUp(Stream[], Stream, bool)

Makes N-Up document from the multi input PDF streams to outputStream. Each page of outputStream will contain multi pages, which are combination with pages in the input streams of the same page number. The multi-pages piled up horizontally if isSidewise is true and piled up vertically if isSidewise is false.

public bool TryMakeNUp(Stream[] inputStreams, Stream outputStream, bool isSidewise)
ParameterTypeDescription
inputStreamsStream[]Input Pdf streams.
outputStreamStreamOutput pdf stream.
isSidewiseBooleanPiled up way, true for horizontally and false for vertically.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

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

Examples

PdfFileEditor pfe = new PdfFileEditor();
Stream stream1 = new FileStream("input1.pdf", FileMode.Open, FileAccess.Read);
Stream stream2 = new FileStream("input2.pdf", FileMode.Open, FileAccess.Read);
Stream stream3 = new FileStream("input3.pdf", FileMode.Open, FileAccess.Read);
Stream output = new FileStream("output.pdf", FileMode.Create, FileAccess.Write);
bool result = pfe.TryMakeNUp(new Stream[] { stream1, stream2, stream3 }, output, false);

See Also


TryMakeNUp(string, string, int, int, PageSize)

Makes N-Up document from the input file to outputFile.

public bool TryMakeNUp(string inputFile, string outputFile, int x, int y, PageSize pageSize)
ParameterTypeDescription
inputFileStringInput pdf file path and name.
outputFileStringOutput pdf file path and name.
xInt32Number of columns.
yInt32Number of rows.
pageSizePageSizeThe page size of the output pdf file.

Return Value

true if operation completed successfully; otherwise, false.

Remarks

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

Examples

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

See Also