Tag Definition: document
Generated by rlextra version 4.3.0a1
Attributes
Name |
Required? |
Default_Value |
Values |
colorSpace |
implied |
None |
['MIXED', 'RGB', 'CMYK', 'SEP', 'SEP_BLACK', 'SEP_CMYK'] |
compression |
implied |
None |
['0', '1', 'default'] |
debug |
implied |
None |
['0', '1'] |
encryptionStrength |
implied |
None |
['256', '128', '40'] |
filename |
required |
None |
|
invariant |
implied |
None |
['0', '1', 'default'] |
ownerPass |
implied |
None |
|
permissions |
implied |
None |
|
tagged |
implied |
None |
['yes', 'no', '0', '1', 'true', 'false'] |
userPass |
implied |
None |
|
Can contain |
Purpose
The parent structure within which your layout exist and where you define the pdf name when using rml2pdf.
Check out our docs page on this.
Example usage
A full minimal example that can be generated with rml2pdf is below:
<!DOCTYPE document SYSTEM 'rml.dtd'>
<document filename='test.pdf'>
<template>
<pageTemplate id="Page 1" pageSize="(595, 842)">
<frame id="Frame 1" x1="30" y1="30" width="535" height="782"/>
</pageTemplate>
</template>
<stylesheet></stylesheet>
<story><para></para></story>
</document>
Example of nesting path from the parent tags to the current tag
This is already a root node.