Processing examples

Simple input jobticket

This is a very simple Jobticket, the "minimum" required. It will export all pages of document.indd with the settings defined in MadeToPrint output job "PDF Export".

<?xml version="1.0"?>
<mtp-data>
	<document>/Path/to/document.indd</document>
	<allpages>true</allpages>
	<print-set>PDF Export</print-set>
</mtp-data>
Click to copy

Parameter overrides

With the <parameter-overrides> section, you can override one or many single options from the Adobe Export Preset (Adobe PDF presets / joboptions, Print Presets, …) used in the MadeToPrint output job defined in <print-set>.

This jobticket also contains metadata to be used in the MadeToPrint output job using the token «JOBTICKETMETADATA( "Name" )».

The jobticket also overrides the path where the result will be written to.

<?xml version="1.0"?>
<mtp-data>
	<document>/Volumes/MTP/Input/PR_AS_001_015.indd</document>
	<allpages>true</allpages>
	<print-set>PDF Export</print-set>
	<output-path>/Volumes/Production/Issue-13-3/</output-path>
	<parameter-overrides>
		<parameter group="PDF Export" name="cropMarks" value="true"/>
		<parameter group="PDF Export" name="colorBars" value="false"/>
		<parameter group="PDF Export" name="readerSpreads" value="true"/>
	</parameter-overrides>
	<extended>
		<xmetadata name="Name" value="ABC12_1103_Ad035"/>
		<xmetadata name="Modified" value="2013-03-03T10:34:12"/>
		<xmetadata name="Creator" value="axaio"/>
		<xmetadata name="Created" value="2012-02-24T22:56:23"/>
		<xmetadata name="Publication" value="axPub"/>
		<xmetadata name="Issue" value="03_2013"/>
		<xmetadata name="Section" value="Adverts"/>
		<xmetadata name="PageRange" value="1-15"/>
		<xmetadata name="Deadline" value="yesterday!"/>
		<xmetadata name="PageNumber" value="4"/>
	</extended>
</mtp-data>
Click to copy

Define layered output

With this jobticket, you will output three PDF files, each with a different set of layers enabled:

  1. Background, Graphics and German layer
  2. Background, Graphics and English layer
  3. Background, Graphics and French layer

You can only use this example to only output one set of layers. In this case, you can have variable-layers only contain one entry, or include the single layer name into the fixed-layers section and leave variable-layers empty.

<?xml version="1.0" encoding="UTF-8"?>
<mtp-data>
    <document>test.indd</document>
    <print-set>PDF Export</print-set>
    <allpages>true</allpages>
    <layers> <!-- enable layers processing -->
        <fixed-layers> <!-- list of layers for each output file -->
            <layername>Background</layername> <!-- name of one fixed layer -->
            <layername>Graphics</layername> <!-- name of second layer -->
        </fixed-layers>
        <variable-layers>
            <layername>German</layername> <!-- name of first individual layer -->
            <layername>English</layername> <!-- name of first individual layer -->
            <layername>French</layername> <!-- name of first individual layer -->
        </variable-layers>
    </layers>
</mtp-data>
Click to copy

Example result jobticket

<?xml version="1.0" encoding="UTF-8" ?>
<mtp>
	<type>ok</type>
	<contents>
		<status>ok</status>
	</contents>
	<OutputFiles>
		<OutputFile>/_toPDF/Projekt1_001.pdf</OutputFile>
		<OutputFile>/_toPDF/Projekt1_002.pdf</OutputFile>
		<preflight-report>/out/Projekt1_report.txt</preflight-report>
	</OutputFiles>
	<InputFiles>
		<InputFile>/in/Projekt1.indd</InputFile>
	</InputFiles>
    <mtp-settings>
    	<!-- will include the <mtp-data>-section of the original jobticket -->
	</mtp-settings>
	<mtp-info>
		<mtp-version>2.8.323</mtp-version>
		<app-name>Adobe InDesign</app-name>
		<app-version>13.1.1</app-version>
		<app-instance></app-instance>
		<os-name>Macintosh</os-name>
		<os-version>10.14.6</os-version>
		<machine-name>axaio</machine-name>
		<user-name>admin</user-name>
		<process-start>2021-03-10 16:42:36</process-start>
		<process-end>2021-03-10 16:42:39</process-end>
		<process-duration>3</process-duration>
	</mtp-info>
</mtp>
Click to copy

Order of Processing

  • finding Jobticket /in/jobticket.xml
    • running <preprocess-script> if provided
    • opening document provided in <document> //only if preprocess-script did not open a document
    • {document is opened}
    • running  <scripts-before> if provided
    • processing  <print-set> //only if scripts-before did not return "error"
    • running  <scripts-after> if provided
    • running <postprocess-script> if provided
    • {document is closed} //only if not closed by postprocess-script
  • result is written to /out/jobticket.xml

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.