Media

When the output of a Print context is meant to be printed on paper that already has graphical and text elements on it (called stationery, or preprinted sheets), you can add a copy of this media, in the form of a PDF file, to the Media folder.

Media can be applied to pages in a Print section, to make them appear as a background to those pages. This ensures that elements added to the Print context will correspond to their correct location on the preprinted media.

For further explanation about how to apply Media to different pages, see Applying Media to a page in a Print section.

Media will not be printed, unless you want them to; see below.

Per Media, a front and back can be specified and you can specify on what kind of paper the output is meant to be printed on. This includes paper weight, quality, coating and finishing; see Setting Media properties.

Adding Media

To add a Media, right-click the Media folder on the Resources pane and select New Media.

The new Media is of course empty. You can specify two PDF files for the Media: one for the front, and, optionally, another for the back.

Specifying and positioning Media

Specifying a PDF for the front: the fast way

To quickly select a PDF file for the front of a Media, drag the PDF file from the Windows Explorer to one of the Media. The Select Image dialog opens; select an image and check the option Save with template if you want to insert the image into the Images folder on the Resources pane. (For PDF files selected by URL this option is always checked.)
Alternatively you could first import the PDF file to the Images folder on the Resources pane (using drag & drop) and drag it from there on one of the Media in the Media folder.
Either way, you cannot set any options.

To be able to specify a PDF file for both the front and the back of the Media, and to specify a position for the Media's PDF files, you have to edit the properties of the Media.

Setting Media properties

Media have a number of properties that you can set. You can change the Media's page size and margins (as long as it isn't applied to a section), you can specify a PDF file (or any other type of image file) for both the front and the back of the Media, and you can determine how the virtual stationery should be positioned on the page. This is done as follows:

  1. On the Resources pane, expand the Contexts folder, expand the Media folder, right-click the Media and click Properties.
  2. Now you can change the name and page size of the Media. Note that it isn't possible to change the page size once the Media is applied to a section. Media can only be applied to sections that have the same size.
  3. On the Virtual Stationery tab, you can click the Select Image button to select a PDF image file.
  4. Click Resources, Disk or Url, depending on where the image is located.
    • Resources lists the PDF files that are present in the Images folder on the Resources pane.
    • Disk lets you choose an image file that resides in a folder on a hard drive that is accessible from your computer. Click the Browse button to select an image.
      As an alternative it is possible to enter the path manually. The complete syntax is: file://<host>/<path>. Note: if the host is "localhost", it can be omitted, resulting in file:///<path>, for example: file:///c:/resources/images/image.jpg.
      Check the option Save with template to insert the image into the Images folder on the Resources pane.
    • Url allows you to choose an image from a specific web address. Select the protocol (http or https), and then enter the web address (for example, http://www.mysite.com/images/image.jpg).

      It is not possible to use a remotely stored PDF file as virtual stationery, because the number of pages in a PDF file can not be determined via the http and http protocols. Therefor, with an external image, the option Save with template is always checked.

  5. Select a PDF file.
  6. If the PDF file consists of more than one page, select the desired page.
  7. Click Finish.
  8. For each of the PDF files, select a position:
    • Fit to page stretches the PDF to fit the page size.
    • Centered centers the PDF on the page, vertically and horizontally.
    • Absolute places the PDF at a specific location on the page. Use the Top field to specify the distance between the top side of the page and the top side of the PDF, and the Left field to specify the distance between the left side of the page and the left side of the PDF.
  9. Finally, click OK.

Setting the paper's characteristics

To set a Media's paper characteristics:

  1. On the Resources pane, expand the Contexts folder, expand the Media folder, and right-click the Media. Click Characteristics.
  2. Specify the paper's characteristics:
    • Media Type: The type of paper, such as Plain, Continuous, Envelope, Labels, Stationery, etc.
    • Weight: The intended weight of the media in grammage (g/m2).
    • Front Coating: The pre-process coating applied to the front surface of the media, such as Glossy, High Gloss, Matte, Satin, etc.
    • Back Coating: The pre-process coating applied to the back surface of the media.
    • Texture: The intended texture of the media, such as Antique, Calenared, Linen, Stipple or Vellum.
    • Grade: The intended grade of the media, such as Gloss-coated paper, Uncoated white paper, etc.
    • Hole Name: A predefined hole pattern that specifies the pre-punched holes in the media, such as R2-generic, R2m-MIB, R4i-US, etc.
  3. Click OK.

Rename Media

To rename Media:

  • On the Resources pane, expand the Contexts folder, expand the Media folder, right-click the Media and click Rename. Type the new name and click OK.
  • Alternatively, on the Resources pane, expand the Contexts folder, expand the Media folder, right-click the Media and click Properties. Type the new name in the Name field and click OK.

Applying Media to a page in a Print section

Every page in a print section has a natural position: it can be the first page, the last page, one of the pages in between (a 'middle page'), or a single page. For each of those positions, you can set different Media.

To apply Media to specific page positions in a Print section:

  1. On the Resources pane, expand the Print context; right-click the Print section, and click Sheet configuration.
  2. Optionally, check Duplex to enable content to be printed on the back of each sheet. Your printer must support duplex for this option to work. If Duplex is enabled, you can also check Tumble to duplex pages as in a calendar, and Facing pages to have the margins of the section switch alternately, so that pages are printed as if in a magazine or book.
  3. If the option Same for all positions is checked, the same Media will be applied to every page in the print section. Uncheck this option.
  4. Decide which Media should be linked to each sheet position: click the downward pointing arrow after Media and select a Media.
  5. Optionally, decide which Master Page should be linked to each sheet; see Master Pages.

When both Media and a Master Page are used on a certain page, they will both be displayed on the Preview tab of the workspace, the Master Page being 'in front' of the Media and the Print section on top. To open the Preview tab, click it at the bottom of the Workspace or select View > Preview View on the menu.

Dynamically switching the Media

In addition to applying Media to sheets via the settings, it is possible to change Media dynamically, based on a value in a data field, in a script. The script has already been made; you only have to change the name of the Media and the section in the script, and write the condition on which the Media has to be replaced.

  1. On the Resources pane, expand the Contexts folder, expand the Print context, right-click the print section and click Sheet configuration.
  2. Decide which pages should have dynamically switching media: every first page in the Print section, every last page, one of the pages in between (a 'middle page'), or a single page. (Uncheck the option Same for all positions, to see all page positions.)
  3. In the area for the respective sheet position, click the Edit script button next to Media. The Script Wizard appears with a standard script:
    results.attr("content","Media 1");

    Media 1 will have been replaced with the name of the media selected for the chosen sheet position.
    The field Selector in the Script Wizard contains the name of the section and the sheet position that you have chosen.

  4. Change the script so that on a certain condition, another media will be selected for the content. For instance:
    if(record.fields.GENDER === 'M') {
    results.attr("content","Media 2");
    }

    This script changes the media to Media 2 for male customers.

    See Writing your own scripts if you are not familiar with how scripts are written.

  5. Click Apply, open the tab Preview and browse through the records to see if the script functions as expected.
  6. When you click OK, the script will be added to the Scripts pane.

Rotating the Media in a Print section

The actual orientation of the Media and that of a section to which the Media is applied may not match.
The Media can therefore be rotated per Print section:

  • On the Resources pane, expand the Print context; right-click the Print section, and click Sheet configuration.
  • Click one of the options next to Media rotation.

The Media (to be more accurate: the Virtual Stationery images specified for this Media) as well as the section's background image will be rotated accordingly in the entire section.

Note that any Virtual Stationery settings made for the Media also influence how the Media is displayed in each section (see Setting Media properties).

If in the Media properties, the Virtual Stationery position is set to Absolute, any offset given by the Top and Left values will be applied after rotation. A Virtual Stationery image located absolutely at the top left (Top: 0, Left: 0) will still appear at the top left of the page after rotating the Media.

Printing virtual stationery

Media are not printed, unless you want them to. Printing the virtual stationery is one of the settings in a Job Creation Preset. To have the virtual stationery printed as part of the Print output:

  1. Create a job creation preset that indicates that Media has to be printed: select File > Presets and see Job Creation Presets for more details.
  2. Select that job creation preset in the Print Wizard; see Generating Print output.
 
  • Last Topic Update: 05, February, 2018 05:31 AM
  • Last Published: 23, May, 2019 01:55 PM