Editing Render Configurations with Examples

You can edit various different page components such as headers, footers, watermarks, overlays, and other settings for document rendering.

This task shows you how to:

Edit Render Configuration

Before you begin: A render configuration must be in the In Work state to edit the render configuration.
  1. On the home page, select Render Configuration.
  2. Select on the appropriate document.
  3. Select Edit Render Configuration..
    A JSON editor opens in the browser which allows you can define the following page components:
    • Headers
    • Footers
    • Watermarks
    • Overlays
    • Timezone
    • Page Numbering
    • pdfRestrictions
    Tips: The JSON file contains descriptions and examples for each element within the schema. You can press Ctrl and the spacebar to view what elements are accessible in the context.

Example of Editing Definitions

  1. In the rendition section, find the header definition.
  2. Edit the "fontsize" to 15.
  3. Edit the "fontcolor" to #ff0000.
  4. Inside "contentleft", change content to the following:

    "content": "{documentModifiedDate;type=date;format=long}\n{documentType}\n{documentMaturityState}\n{documentTitle}"

  5. Select Save.



Configure Date Placeholders

  1. You can choose whether the time and date is visible in your documents by one of the following:

    • datetime: Full date and time.
    • date: Date only.
    • time: Time only.

  2. Select the appropriate format based on your preference:
    • short: For example, 12.1.52 or 3.30 PM.
    • medium: For example, Jan 12 1952
    • long: For example, January 12 1952.
    • full: For example, Tuesday January 12 1952 AD or 3.30:42 PM PST.
  3. For example: {documentModifiedDate;type=date;format=long} renders the modification date and time in the long format 'January 12, 1952'.

Add the Page Template to Render Content

  1. In the definition section, find the content definition.
  2. Enter the following values:

    • id: A unique identifier for the cover page.
    • description: A brief description of the cover page purpose or content.
    • pagetemplatename: The name of the page template object used to render the content.
      Note: The page template defines the design and layout of the associated page, for example the cover page, back page or other sections of the document.
      { 
      	"id": "coverpage_example", 
      	"description": "Default cover page example", 
      	"pagetemplatename": "standard_cover_template" 
      }
      

Order the Pages

  1. In the rendition section, you can enter one of the following: coverpage, backpage, filebackcoverpage, filecoverpage.
  2. In default, enter a "ref-" element such as "ref-content".
  3. Each "ref-" element can take multiple files and the order in which you enter them is the order in which they are visible.

    {
       "coverpage": {
           "default": {
              "ref-content": ["Cover1", "Cover2"]
           }
       },
       "filebackcoverpage": {
            "default": {
                "ref-footers": [],
                "ref-headers": [],
                "ref-content": [],
                "ref-overlays": [],
                "ref-watermarks": []
            } 
       "body": {
        "default": {
          "ref-headers": ["Default Header"],
          "ref-watermarks": ["Default Watermark"],
          "ref-footers": ["Default Footer"]
        }

Add Conditional Rendering

  1. Inside rendition, select the appropriate element such as coverpage.
  2. Outside of the default subsection, enter "switch".
  3. Inside "switch", enter the following:

    "switch": [
        {
          "condition": {
            "state": ["Released"]
          },
          "ref-watermarks": [Example_watermark]
        }
    Note: This example states that if the condition of the document is Released, the watermark in "ref-watermarks" is used instead of the watermark in "default".

  4. Optional: You can also use "doctype" as a condition. You can change which header, footer, and cover page is visible on the page using these conditions.
  5. Optional: You can exclude a file from rendering using "includeFile": false. Looking at the example below, you can see that if the document has the value "Skip PDF" in file categories, it is not included for rendering.

    {
      "switch": [
        {
          "condition": {
            "expressions": [
              {
                "placeholder": "{documentFileCategory}",
                "operator": "in",
                "value": ["Skip PDF"]
              }
            ]
          },
          "includeFile": false
        }
      ]
    }
    
      
    Note: The "operator" element can use "in" or "not". "not" checks to see if the value is not in the set of values.

Result: The specified references replace the default references in the current configuration.

Add Global Settings

  1. Beneath rendition, enter "settings".
    The following settings are visible in "settings"
    "settings": {
            "pagenumbering": {
                "scope": "Document"
            },
            "locale": {
                "country": "US",
                "language": "en"
            },
            "timezone": {
                "zoneid": "GMT"
                    },
            "pdfRestrictions": {
                "permissionBaseline": "All",
                "print": false,
                "assembly": false,
                "modifyContents": false,
                "cryptoAlgorithm": "AESx256"
            }
        }
    }
  2. Optional: You can edit the following global settings for the rendition:

    • "pagenumbering": You can change the scope between document or file.
    • "locale": You can select different languages and country settings using ISO codes.
    • "timezone": You can set the time zone using a geographic area or UTC offset.
    • "pdfRestrictions" You can define the optional security settings printing, content copying, commenting form filling, document assemble, and content modification You can define the encryption algorithm for example AES256.. By default PDF security is disabled and encryption algorithm is set to none.