When saving a document in InDesign, the Studio for InDesign plug-in can automatically generate a JPG, PDF, or EPS file of each page in a layout, and send these to the Server.
The generated files are used as follows:
- JPG versions: used as previews of the pages in the Publication Overview Application in Studio.
- PDF or EPS files of each page: can be downloaded using one of the following methods:
- By using the Save Original or Save Preview options in Studio
- By using the Export page in Studio Server
Events at which the previews are generated
Page previews can be generated when the following events occur:
- At the 'On Save' event. This event is triggered when the layout is saved by performing any type of save action, such as a Save Version action, a Check In action, and so on.
Note: The only exception is when the AlwaysSaveDocIntoDatabase option is enabled. (See Always save a layout or article to the database.) In this scenario, the layout is stored locally and not sent to the server, therefore the event does not raise.
- At the 'On Produce' event. This event is triggered when the layout is saved to a Workflow status for which the Output option is selected on the Workflow Maintenance page. (See Creating Workflow Statuses.)
Available options
For each file format, options are available for the On Save event and the On Produce event.
Option | File format | Event type | Description |
---|---|---|---|
CreatePagePreview | JPEG | On Save |
For generating page previews in JPEG format when the layout is saved. |
CreatePagePreviewOnProduce | JPEG | On Produce |
For generating page previews in JPEG format when the layout is saved to a status with the Output option set. |
CreatePageEPS | EPS | On Save |
For generating page previews in EPS format when the layout is saved. |
CreatePageEPSOnProduce | EPS | On Produce | For generating page previews in EPS format when the layout is saved to a status with the Output option set. |
CreatePagePDF | On Save | For generating page previews in PDF format when the layout is saved. | |
CreatePagePDFOnProduce | On Produce | For generating page previews in PDF format when the layout is saved to a status with the Output option set. |
Feel free to use either one or more options and to mix options for different file formats.
Example: You can use the CreatePagePreview option to save JPEG files at each save action, and add the CreatePageEPSOnProduce option to also have an EPS file saved each time the file is stored to a particular status.
Notes:
|
Exporting to PDF
Exporting a page preview to PDF is done by using a PDF preset that has been set up with the quality settings for that PDF output. This can be done in InDesign via File > Adobe PDF Presets > Define... .
Multiple presets can be set up. The preset to use for a particular preview generation is referenced in the configuration as shown in the examples below.
Note: When defining a preset, do not select the option Create Separate PDF Files. Studio Server already takes care of outputting pages separately, and having this option selected can make all Save and Check-in actions from InDesign fail.
Enabling the Page Preview feature
This feature is configured in the Server Features list of the configserver.php file.
- File: configserver.php file (recommended: config_overrule.php file)
- Section: Server Features list
- Possible values:
- For the CreatePagePDF option, the name of the PDF preset to be used can be added as a value. This could either be a custom name or a predefined name. See example 2 and 3 below.
- For the CreatePagePDFOnProduce option, the name of the PDF preset to be used can be added as a value. However, if NO PDF preset is defined, the status name is considered to be the PDF preset to be used by the client. This makes it possible to use different output definitions depending on the reached statuses. See example 3 and 4 below.
Examples
Example 1: A scenario where 2 previews are saved:
- A preview in JPEG format is saved on a Save event
- A preview in EPS format on a Produce event
new Feature( 'CreatePagePreview' ),
new Feature( 'CreatePageEPSOnProduce' ),
Example 2: A scenario where a PDF preview is saved on a Save event while using a preset with the name "my own preset":
new Feature( 'CreatePagePDF', 'my own preset'),
Example 3: A scenario where a PDF preview is saved on a Save event while using a predefined (localized) Adobe preset with the name "[Press Quality]":
new Feature( 'CreatePagePDF', '[Press Quality]'),
Example 4: A scenario where a PDF preview is saved on a Produce event while using a predefined (localized) Adobe preset with the name "[Press Quality]":
new Feature( 'CreatePagePDFOnProduce', '[Press Quality]'),
Example 5: A scenario where a PDF preview is saved on a Produce event for a layout saved to the status "Print". Because no value has been defined for the CreatePagePDFOnProduce option, the system expects that the client application has a PDF preset defined named "Print":
new Feature( 'CreatePagePDFOnProduce'),
Setting the page view resolution
The page view resolution can be controlled by the following option:
- File: configserver.php file (recommended: config_overrule.php file)
- Name of option: PagePreviewResolution
- Section: Server Features list
- Possible values: any value
Note: When no value is entered, a default of 72 dpi is used.
- Example 1: No value added (72 dpi is used)
new Feature( 'PagePreviewResolution' ),
- Example 2: Set to 200 dpi
new Feature( 'PagePreviewResolution', 200),
Setting the JPEG compression quality
The JPEG compression quality can be controlled by the following option:
- File: configserver.php file (recommended: config_overrule.php file)
- Name of option: PagePreviewQuality
- Section: Server Features list
- Possible values: any value
- 1 - low
- 2 - good
- 3 - excellent
- 4 - great
- Example:
new Feature( 'PagePreviewQuality', 4),
Comment
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
0 comments
Please sign in to leave a comment.