PdfFileEditor.MakeBooklet

MakeBooklet(string, string)

Makes booklet from the input file to output file.

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

Return Value

boolean - True for success, or false.

Examples

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

See Also


MakeBooklet(Stream, Stream)

Makes booklet from the InputStream to outputStream.

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

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.MakeBooklet(inputStream, outputStream);

See Also


MakeBooklet(string, string, PageSize)

Makes booklet from the inputFile to outputFile.

public bool MakeBooklet(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.

Examples

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

See Also


MakeBooklet(Stream, Stream, PageSize)

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

public bool MakeBooklet(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 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.MakeBooklet(inputStream, outputStream, PageSize.A4);

See Also


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

Makes customized booklet from the firstInputFile to outputFile.

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

boolean - True for success, or false.

Examples

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

See Also


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

Makes customized booklet from the firstInputStream to outputStream.

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

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.MakeBooklet(inputStream, outputStream, new int[] { 2, 4, 6 }, new int[] 1, 3, 5, 7 });

See Also


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

Makes customized booklet from the firstInputFile to outputFile.

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

boolean - True for success, or false.

Examples

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

See Also


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

Makes booklet from the firstInputStream to outputStream.

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

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.MakeBooklet(inputStream, outputStream, PageSize.A4, new int[] { 2, 4, 6 }, new int[] 1, 3, 5, 7 });

See Also