rmlpdfwriter | PyF, flow-based python programming rmlpdfwriter

rmlpdfwriter

package name: pyf.components.consumers.rmlpdfwriter

“rmlpdfwriter” plugin

class pyf.components.consumers.rmlpdfwriter.RMLPDFWriter(config_node, component_id)
Configuration available :
  • advanced(label: Advanced): Compound key (each sub key is an individual tag)
    • separate_process(label: Separate Process): boolean
  • name(label: Name): Simple key/value (text-based)

    unique name

  • splitkey(label: Split Attribute (optionnal)): Simple key/value (text-based)

    Attribute with which to split files

  • encoding(label: Encoding): Simple key/value (text-based) (default: “UTF-8”)

  • target_filename(label: Target_Filename): Simple key/value (text-based) (default: “filename.pdf”)

  • template(label: Template): Compound key (“template” key is the text content of the node)
    • type(label: Template Type): select (default: “embedded”)

    • module(label: Plugin Module): input

      Use only for type “plugin”

    • template(label: Template): text

“multirmlpdfwriter” plugin

class pyf.components.consumers.rmlpdfwriter.MultiRMLPDFWriter(config_node, component_name)

Multiple output pdf writer...

Example of use :

<node type="consumer" pluginname="multirmlpdfwriter" name="pdf_report">
    <encoding>UTF-8</encoding>
    <target_filename>myreport.pdf</target_filename>
    <document>
        <part>
            <template type="plugin" module="foo">introduction</template>
        </part>
        <part type="multiple">
            <expression>item.error_type</expression>
            <template type="plugin" module="foo">error_type</template>
        </part>
        <part>
            <template type="plugin" module="foo">footer</template>
        </part>
    </document>
</node>
Configuration available :
  • advanced(label: Advanced): Compound key (each sub key is an individual tag)
    • separate_process(label: Separate Process): boolean
  • name(label: Name): Simple key/value (text-based)

    unique name

  • encoding(label: Encoding): Simple key/value (text-based) (default: “UTF-8”)

  • target_filename(label: Target filename): Simple key/value (text-based)