Skip to main content

Task PDF - Convert​

The PDF - Convert Task converts PDF files to other formats, or converts files in other formats to PDF.

The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.

Convert: Main settings tab​

Main settings tab of the Convert Task, with the Convert group, and the Password for file(s) and Page range groups

  • To PDF from (Convert ... group): converts files of the selected format to PDF: "XPS", "PCL", "SVG", "EPUB", "MHT", "HTML", "TeX", "TXT", "CGM", "XML" or "IMAGE"

    Only files with a matching extension are converted: .xps, .pcl, .svg, .epub, .mht or .mhtml, .html or .htm, .tex, .txt, .cgm, .xml, and for "IMAGE" .jpg, .jpeg, .png, .bmp, .gif, .tif or .tiff.

  • From PDF to: converts PDF files to "PDF", "HTML", "DOC", "XLS", "PPT", "XPS", "XML", "TeX", "SVG", "EPUB", "TXT" or "IMAGE"

    A second list sets the variant for some formats: "PDFA_1b", "PDFA_3b", "PDFA_2u" or "PDFA_3u" for "PDF"; "DOC" or "DOCX" for "DOC"; "BMP", "JPEG", "GIF", "PNG", "TIFF" or "EMF" for "IMAGE"; "XML" or "MobiXML" for "XML".

  • Password for file(s): the password that opens protected source PDF files; used with From PDF to

  • Page range: All pages, or Pages with page numbers and ranges separated by commas, for example 2-4 or 1,3,5-6. An entry that is not a page number or a valid range is ignored

    Available with From PDF to.

warning

With From PDF to "PDF", the Task does not save a converted file: it writes any conversion messages to standard error, and the Task reports success.

File filter tab​

The File filter tab selects the files to convert; see File Filter. If the filter has a Credential, the Task uses it while it reads and writes the files. When the logon with the Credential fails, the Task continues as the account that runs the Server and writes the error to the Server log.

With To PDF from, a file that the filter matches but whose extension does not match the selected format is skipped, and the Task reports success.

Destination tab​

Destination tab of the Convert Task, with the Save to.. group and the Folder and File mask boxes

The Save to.. group is used with From PDF to:

  • Same file (Save to.. group): saves the converted file at the path of the source file

  • Same folder but use file mask: saves the converted file in the folder set on the File filter tab, named by File mask

  • Different folder and use file mask: saves the converted file in Folder, named by File mask

  • Folder: the destination folder; click the folder button to browse

  • File mask: builds the new file name from the source file name, by the renaming standard set in Main - Settings

    The default * keeps the source file name, including its .pdf extension. Set a mask that gives the target extension, such as *.docx.

warning

With From PDF to, Same file replaces the source PDF file with the converted content and keeps the .pdf name. With the default File mask *, Same folder but use file mask does the same to a source file in the File filter folder. Use Different folder and use file mask, or a File mask with the target extension.

With To PDF from, the Save to.. options and File mask are not used. Each PDF file is named after the source file with the .pdf extension and saved in Folder when the box has a value, otherwise in the source file's folder.

warning

With To PDF from, a PDF file that already has the new name is replaced without a prompt.

With From PDF to "IMAGE", each page is saved as a separate image, with - page and the page number added before the extension; the numbering starts at "0" when All pages is selected. A document with one page gives one image without a number. "TIFF" saves all pages in one file.

warning

With From PDF to "TXT" and Pages, the Task adds the text to the end of an existing file with the same name instead of replacing it.

Image parameters​

  • Width, Height and Quality (Image parameters group, From PDF to "IMAGE"): the size of each image, and its quality from "0" to "100"

    The size is used only when both Width and Height are set. A quality outside "0" to "100" is treated as "100". For "TIFF", Compression replaces Quality: "LZW", "CCITT4", "CCITT3", "RLE" or "None"; the TIFF settings are used only when Width and Height are set.

Text to PDF groups​

When To PDF from is set to "TXT", three more groups appear on the Destination tab: Page margins (points), Font details, and Page orientation and Line fit.

Destination tab of the Convert Task for a TXT to PDF conversion, with the Page margins, Font details and Page orientation and Line fit groups

  • Left, Right, Top and Bottom (Page margins (points) group): the margins around the page content, in points

    A blank value, or one that is not a number, gives "50" for a TXT or XML source. The group also appears for "IMAGE", where a blank value gives "5".

  • Font (Font details group): the installed font for the text; leave it blank for "Courier New"

  • Font size: the size of the text in points; leave it blank for "12"

  • Font style: "Regular", "Bold", "Italic" or "BoldItalic"

    The Task does not currently apply this setting.

  • Orientation (Page orientation and Line fit group): "Auto", "Portrait" or "Landscape"

    "Auto" uses landscape when the text is wider than it is tall, otherwise portrait.

  • Line Fit: scales the text horizontally so that it fits between the page margins

Output paper size​

An Output paper size group sets the page size of the converted document instead of the size the conversion produces. It is available with To PDF from for every format except "SVG", and with From PDF to for "DOC", "PPT" and "XPS".

  • Paper size: "Default (auto)", "A3", "A4", "A5", "Letter", "Legal", "Tabloid" or "Custom"

    "Default (auto)" keeps the size the conversion produces; for an image source, the page takes the size of the image. With any other size, an image source is scaled to fit the page and centered.

  • Width, Height and Unit: shown when Paper size is "Custom"

    Enter the page width and height and choose "mm", "in" or "pt". Both values must be greater than "0" and, in points, no larger than "14400"; the Task window does not save the Task until they are.

Output and errors​

With To PDF from, the Task output contains the path of each PDF file it writes; the paths are not separated by line breaks. With From PDF to, the Task writes nothing to the output.

warning

With From PDF to "IMAGE", when Pages selects a single page, no image is saved, and the Task reports success.