Merges a local page with a remotely-fetched PDF.

Composition — merges multiple templates into one PDF. Browse this template in the repository →

The PDFs below are rendered live by PDF Server from the shipped examples.

minimal

Your browser can’t display this PDF inline.

Download the PDF — composition:remote-merge / minimal.

composition:remote-merge / minimal — Download PDF

Inputs

Render data

minimal

examples/minimal.json

{
  "documentUrl": "https://brendanzagaeski.appspot.com/minimal.pdf"
}

Data schema

schema.json

{
  "type": "object",
  "properties": {
    "documentUrl": {
      "type": "string"
    }
  },
  "required": [
    "documentUrl"
  ]
}

Template

composition.yaml

templates:
- templateName: static_template
- templateName: remote-http
  if:
    jq: '.documentUrl != null'