PDF Concat

De MappingDoc
Révision datée du 27 août 2018 à 11:08 par imported>Bsteeland (Created page with "==Description== PDF_CONCAT allow splits and combinations of one or more PDF files. ==Usage== ===Parameters=== a.–infiles : This parameter define the path of one or more inpu...")
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

Description

PDF_CONCAT allow splits and combinations of one or more PDF files.

Usage

Parameters

a.–infiles : This parameter define the path of one or more input files. This parameter is mandatory. Each file path should be separated by ‘;’. b.–outfile : This parameter define the path of the output file. This parameter is mandatory. c.–pages : This parameter define how the documents pages will been processed. This parameter is optional.

‘-pages’ parameter details

The not specified case.

When the parameter ‘-pages’ is not specified, input PDF files will been combined, one after the other, on the output file.  

Page by page combination case.

To combine documents pages, a pages description parameter should be specified. This description will contain page numbers and page orders. This description will use several separator. These separators are:

  • ‘;’ : Divide each document pages block. It’s not mandatory to have a block for each input document but the block order should respect the document order of the input parameter. Each block describe the page numbers to be used.
  • ‘,’ : Divide the page numbers on each block. Page numbering start at 1.
  • ‘-‘ : Allow page ranges definition instead of page number definition.

b.1.Examples

Example 1 : documents mix Command : pdf_concat –infiles:c:\pdf1.pdf ;c:\pdf2.pdf –pages :1,2,3 ;4,5,6 –outfile:c:\out.pdf This command will create a PDF file with 6 pages. The output document will contain: 1.The Document pdf1.pdf page 1. 2.The Document pdf2.pdf page 4. 3.The Document pdf1.pdf page 2. 4.The Document pdf2.pdf page 5. 5.The Document pdf1.pdf page 3. 6.The Document pdf2.pdf page 6.

Exemple 2 : Retrieving a page range from a document

Command : pdf_concat –infiles:c:\pdf1.pdf –pages:1-3 –outfile:c:\out.pdf This command will create a document with the page 1,2 and 3 of the input document. The below command will have the same result as above command. pdf_concat –infiles:c:\pdf1.pdf –pages:1,2,3 –outfile:c:\out.pdf

Example 3 : document mix with page range Command : pdf_concat –infiles:c:\pdf1.pdf;c:\pdf2.pdf –pages:1-3,5,6 ;4,6 –outfile:c:\out.pdf This command will create a document with 7 pages. The document will contain: 1.The document pdf1.pdf pages from 1 to 3. 2.The Document pdf2.pdf page 4. 3.The Document pdf1.pdf page 5. 4.The Document pdf2.pdf page 6. 5.The Document pdf1.pdf page 6. c.Specials case If the number of page block does not match the document number, the processing order will be:

1.Page blocks process. 2.Remaining documents pages. Example : pdf_concat –infiles:c:\pdf1.pdf;c:\pdf2.pdf –pages:1-3 –outfile:c:\out.pdf This command will create a document with the page 1 to 3 of the pdf1.pdf file and all the pages of the pdf2.pdf file.