jsreport / jsreport-core

The minimalist jsreport rendering core
GNU Lesser General Public License v3.0
86 stars 24 forks source link

pdfOperations merge not working #50

Closed robindijkhof closed 4 years ago

robindijkhof commented 4 years ago

I was playing with the API example from here.

{
  "template": {
    "content": "Main Template",
    "recipe": "chrome-pdf",
    "engine": "handlebars",
    "chrome": {
      "marginTop": "50px"
    },
    "pdfOperations": [{
      "template": {
        "content": "Header",
        "recipe": "chrome-pdf",
        "engine": "handlebars"
      },
      "type": "merge"
    }]
  }
}

Unfortunately, "Header" is not merged and the final result only displays "Main Template"

I'm using the following dependencies: handlebars: 4.5.3 jsreport-chrome-pdf: 1.6.1 jsreport-core: 2.6.2 jsreport-handlebars: 2.1.0

bjrmatos commented 4 years ago

if you are using core, you need to install also the jsreport-pdf-utils dependency.