PdfFileEditor.MakeNUp

MakeNUp(string, string, int, int)

Makes N-Up document from the firstInputFile to outputFile.

public bool MakeNUp(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

boolean - True for success, or false.

Examples

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

See Also


MakeNUp(Stream, Stream, int, int)

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

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

Return Value

boolean - True for success, or false.

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);
pfe.MakeNUp(inputStream, outputStream, 3, 3);

See Also


MakeNUp(Stream, Stream, int, int, PageSize)

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

public bool MakeNUp(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 was succeeded.

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);
pfe.MakeNUp(inputStream, outputStream, 3, 3, PageSize.A4);

See Also


MakeNUp(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 MakeNUp(string firstInputFile, string secondInputFile, string outputFile)
ParameterTypeDescription
firstInputFileStringfirst input file.
secondInputFileStringsecond input file.
outputFileStringOutput pdf file path and name.

Return Value

boolean - True for success, or false.

Examples

PdfFileEditor pfe = new PdfFileEditor();
pfe.MakeNUp("input1.pdf", "input2.pdf", "output.pdf");

See Also


MakeNUp(Stream, Stream, Stream)

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

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

Return Value

boolean - True for success, or false.

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");
pfe.MakeNUp(input1, input2, output);

See Also


MakeNUp(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 MakeNUp(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

boolean - True for success, or false.

Examples

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

See Also


MakeNUp(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 MakeNUp(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

boolean - True for success, or false.

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);
pfe.MakeNUp(new Stream[] { stream1, stream2, stream3 }, output, false);

See Also


MakeNUp(string, string, int, int, PageSize)

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

public bool MakeNUp(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

boolean - True for success, or false.

Examples

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

See Also


MakeNUp(Stream, int, int, PageSize, HttpResponse)

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

public bool MakeNUp(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 was succeeded.

See Also


MakeNUp(string, int, int, PageSize, HttpResponse)

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

public bool MakeNUp(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 was succeeded.

See Also


MakeNUp(string, int, int, HttpResponse)

Makes N-up document and stores result into HttpResponse.

public bool MakeNUp(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 was succeeded.

See Also


MakeNUp(Stream, int, int, HttpResponse)

Makes N-up document and stores result into HttpResponse.

public bool MakeNUp(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 was succeeded.

See Also