DocKing - ShipSaaS
Docking GitHub
  • DocKing from ShipSaaS
  • Architecture
  • Requirements
  • PDF Engines
    • Gotenberg
    • WkHTMLtoPDF
    • mPDF
  • Upgrade Notes
    • v1.4.0
    • v1.3.2
    • v1.3.1
    • v1.3.0
    • v1.2.0
    • v1.1.2
    • v1.1.1
    • v1.1.0
  • Usage
    • Basic
    • Endpoints
    • Webhook
    • Maintain IDs/Keys from Services
  • Getting Started
    • Environment Variables
    • Run on Local
      • Normal Run
      • Docker
    • Storage
    • Console UI
    • Document Template
      • Gotenberg's Metadata
      • wkHTMLtoPDF's metadata
      • mPDF's metadata
    • Templating Mode
    • Fonts
    • Octane / High-perf mode
    • Localization
  • Deployment
    • Linux VPS / Dedicated Server
    • Docker
Powered by GitBook
On this page
  1. Getting Started
  2. Document Template

Gotenberg's Metadata

Metadata of Gotenberg

{
  "driver": "gotenberg",
  "engine": "chromium|libreoffice",
  ...options,
}

Learn more about the options var above. These properties can be undefined (will use the default setting of Gotenberg)

paper-width            float   Paper width, in inches (default 8.5)
paper-height           float   Paper height, in inches (default 11)
margin-top             float   Top margin, in inches (default 0.39)
margin-bottom          float   Bottom margin, in inches (default 0.39)
margin-left            float   Left margin, in inches (default 0.39)
margin-right           float   Right margin, in inches (default 0.39)
prefer-css-page-size   bool    Define whether to prefer page size as defined by CSS (default false)
print-background       bool    Print the background graphics (default false)
omit-background        bool    Hide the default white background and allow generating PDFs with transparency (default false)
landscape              bool    Set the paper orientation to landscape (default false)
scale                  float   The scale of the page rendering (default 1.0)
native-page-ranges     string  Page ranges to print, e.g., '1-5, 8, 11-13' - empty means all pages
PreviousDocument TemplateNextwkHTMLtoPDF's metadata

Last updated 2 years ago