Skip to content

Tag Definition: canvasConfig

Generated by rlextra version 3.6.13

Attributes

Name

Required?

Default_Value

Values

artBox

implied

None

bleedBox

implied

None

cropBox

implied

None

initialFontName

implied

None

initialFontSize

implied

None

initialLeading

implied

None

trimBox

implied

None

Can contain
EMPTY

Purpose

This is to declare cropBox artBox trimBox and bleedBox for the document.

  • cropBox define the visible region of default user space. When the page is displayed or printed, its contents shall be clipped
  • artBox defines the extent of the page’s meaningful content.
  • trimBox defines the intended dimensions of the finished page after trimming.
  • bleedBox define the region to which the contents of the page shall be clipped when output in a production environment.

Example usage

for reference, A4 dimensions are 595 x 842 pixels at 72 DPI.

<docinit>
    <canvasConfig
    cropBox="(.11,.11,595.0756,841.6898)"
    artBox="(.22,.22,594.8756,841.4898)"
    trimBox="(.01,.01,595.2556,841.8698 )"
    bleedBox="(-0.1,-0.1,595.4756,842.0898)"
    />
</docinit>

Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.

Example of nesting path from the parent tags to the current tag

<document> ➔ <docinit> ➔ <canvasConfig>