When saving a document in InDesign, the Smart Connection 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 Content Station.
- 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 Content Station
- By using the Export page in Enterprise 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, etc.
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 |
---|---|---|
CreatePagePreview | JPEG | On Save |
CreatePagePreviewOnProduce | JPEG | On Produce |
CreatePageEPS | EPS | On Save |
CreatePageEPSOnProduce | EPS | On Produce |
CreatePagePDF | On Save | |
CreatePagePDFOnProduce | On Produce |
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.
Note: Using the PDF and EPS options simultaneously is not supported.
Enabling the Page Preview feature
Add one ore more of the following options:
- Name of option:
- JPEG options
- CreatePagePreview. For generating page previews in JPEG format when the layout is saved.
- CreatePagePreviewOnProduce. For generating page previews in JPEG format when the layout is saved to a status with the Output option set.
- PDF options
- CreatePagePDF. For generating page previews in PDF format when the layout is saved.
- CreatePagePDFOnProduce. For generating page previews in PDF format when the layout is saved to a status with the Output option set.
- EPS options
- CreatePageEPS. For generating page previews in EPS format when the layout is saved.
- CreatePageEPSOnProduce. For generating page previews in EPS format when the layout is saved to a status with the Output option set.
Note: It is possible to add more than one option; however, using the PDF and EPS options simultaneously is not supported.
- File: configserver.php file
- Section: Server Features list
- Possible values:
- For the CreatePagePDF option, the style name 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 style name to be used can be added as a value. However, if NO PDF style is defined, the status name is considered to be the PDF style 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.
- 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 style with the name "my own style":
new Feature( 'CreatePagePDF', 'my own style'),
- Example 3: A scenario where a PDF preview is saved on a Save event while using a predefined (localized) Adobe style 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 style 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 style 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
- 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
- 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.