Input file format

 

Input file format

To tell pdfrecycle what to do you use an input file containing simple commands called statements.

pdfrecycle uses one line per statement. Lines starting with # and lines containing only white space are ignored. The file has to be UTF-8 encoded.

!

!code

Include verbatim LaTeX code code.

Use this only if you knowwhat you are doing!

Example

ANGLE

ANGLE degree

Rotate input pages through degree degrees

Example

AUTHOR

AUTHOR name

Sets the author to name. Most PDF viewer can display this information somewhere. Often it’s “Properties” in the “File” menu.

Example

AUTOSCALE

AUTOSCALE [true|false]

By default pages are scaled automatically to fit the pages on the output sheet (i.e. AUTOSCALE is on). By disableling AUTOSCALE and using SCALE the user has full control over the scaling process.

Example

CLIP

CLIP [true|false]

If enabled (the default) clip the input pages to the area defined by CROP.

Example

COLUMNFIRST

COLUMNFIRST [true|false]

Pdfrecycle normally uses row-major layout, where the PAGE statement places page in rows along the paper. If COLUMNFIRST is enabled, the output is column-major, i.e. pages are arranged in columns down the paper.

Example

CREATOR

CREATOR name

Sets the creator to name. Most PDF viewer can display this information somewhere. Often it’s “Properties” in the “File” menu.

Example

CROP

CROP left top right bottom

Crops the input page by left at the left, top at the top, right at the right and bottom at the bottom

Example

FILE

FILE file

Use file to get input pages from.

This does not add any pages. Use PAGES for this. This does not start a new output sheet. Use PAGEBREAK for this.

Example

FRAME

FRAME [true|false]

If true put a frame around each input page. Default: false

Example

KEYWORDS

KEYWORDS keywords

Sets the keywords to keywords. Keywords are seperated by spaces. Most PDF viewer can display this information somewhere. Often it’s “Properties” in the “File” menu.

Example

LANDSCAPE

LANDSCAPE [true|false]

Use landscape for the output pages. Default is false i.e. portrait.

This does not rotate the input pages. Use ANGLE for this.

Example

LANG

LANG name

LANGUAGE name

Sets the language to name. Most PDF viewer can display this information somewhere. Often it’s “Properties” in the “File” menu.

Example

LANGUAGE

LANG name

LANGUAGE name

Sets the language to name. Most PDF viewer can display this information somewhere. Often it’s “Properties” in the “File” menu.

Example

LAYOUT

LAYOUT axb

Put a rows and b columns of logical pages onto each output sheet.

Example

MARK

MARKlevel title

Add a bookmark on level level with title title. level may be omitted and defaults to 0 (top level). The bookmark is set to the first page of the next PAGE statement.

Example

NEWPAGE

PAGEBREAK

NEWPAGE

Starts a new output sheet

Example

PAGE

PAGE pages

PAGES pages

Add pages pages of the current input file. pages can be

  • a single page number (whole number}
  • a range A-B (pages A to B) where A and B are page numbers
  • a left open range -B (pages 1 to B) whetre B is a page number
  • a right open range A- (pages from A up to the end of the file)
  • a combination of two or more of the above, seperated by colons

This does not start a new output sheet. Use PAGEBREAK for this.

Example

PAGEBREAK

PAGEBREAK

NEWPAGE

Starts a new output sheet

Example

PAGES

PAGE pages

PAGES pages

Add pages pages of the current input file. pages can be

  • a single page number (whole number}
  • a range A-B (pages A to B) where A and B are page numbers
  • a left open range -B (pages 1 to B) whetre B is a page number
  • a right open range A- (pages from A up to the end of the file)
  • a combination of two or more of the above, seperated by colons

This does not start a new output sheet. Use PAGEBREAK for this.

Example

PAPERSIZE

PAPERSIZE size

Sets the paper size for the output pages. If there’s more than one PAPERSIZE statement only the last one is used. Allowed values for size are:

a4, a5, b5, letter, legal, executive

Example

PRODUCER

PRODUCER name

Sets the producer to name. Most PDF viewer can display this information somewhere. Often it’s “Properties” in the “File” menu.

Example

SCALE

SCALE  factor

Scale inpout pages by factor factor

Example

SUBJECT

SUBJECT name

Sets the subject to name. Most PDF viewer can display this information somewhere. Often it’s “Properties” in the “File” menu.

Example

TITLE

TITLE name

Sets the title to name. Most PDF viewer can display this information somewhere. Often it’s “Properties” in the “File” menu.

Example