jsreport-fop-xsl-pdf

2.0.5 • Public • Published

jsreport-fop-xsl-pdf

jsreport recipe which is rendering pdf using apache fop with xsl template

Installation

npm install jsreport-fop-xsl-pdf

Usage

To use recipe in for template rendering set template.recipe=fop-xsl-pdf in the rendering request.

{
  template: { content: '...', recipe: 'fop-xsl-pdf', enginne: '...' },
   data: {
        data: '....',
        outName: '...',
        outType: '...'}
}

Set xsl template in content or create it as template and use by name/id

Set xml data in the data field

Optional:

Set FileName in outName and FileType in outType(FileType - is a available type for Fop which are used)

It is possible to use fop.xconf. It should be added to the root directory.

/jsreport-fop-xsl-pdf/

    Package Sidebar

    Install

    npm i jsreport-fop-xsl-pdf

    Weekly Downloads

    1

    Version

    2.0.5

    License

    none

    Unpacked Size

    6.02 kB

    Total Files

    5

    Last publish

    Collaborators

    • xelmed