Grid

    • Arrange image files into grid pages for enhanced browsing experience.

    A configuration string to specify the details of the grid layout.

    Orientation

    For PDF input files only.This is usually associated with the writing direction used in the document to be processed.

    Default description

    • Only one of dimensions or format is allowed.

    Examples

    The page size of the output file is a grid of specified dimensions in original page units. Output pages may be big but that’s ok since they are not supposed to be printed.

    One use case mentioned by the community was to produce PDF files for source code listings eg. in the form of 1x10 grid pages.In the following example we use a 1x4 grid since this is easier to visualize.

    Rearrange pages of in.pdf into pages composed of 1x4 grids and write the result to out.pdf using the default orientation. The output page size is the result of a 1(horizontal) x 4(vertical) grid using in.pdf’s page size:

    When applied to image files this command produces simple photo galleries of arbitrary dimensions in PDF form.Arrange imagefiles onto a 5x2 page grid and write the result to out.pdf using a grid cell size of 500x500:

    Rearrange pages of in.pdf into 2x2 grids and write result to out.pdf using the default orientation.The output page size is the result of a 2(hor)x2(vert) page grid using page size Legal in landscape mode:

    Rearrange pages of in.pdf into 3x2 grids and write result to out.pdf using orientation ‘right down’.The output page size is the result of a 3(hor)x2(vert) page grid using in.pdf’s page size: