Logo

Custom Document Types

Concept

The Document Editor is extensible. You can create new "Types" of documents (like the built-in Trial Balance or Invoice types) that can be selected in the editor. This allows you to create completely custom, data-driven PDF reports and documents.

Directory Structure

Each custom document type must have its own folder inside public/documents/type/. The folder name becomes the internal name of the type.

public/
└── documents/
    └── type/
        └── my_report/      <-- Your custom type folder
            |-- type.json
            |-- toolbar.json
            |-- property.json
            |-- objects.js
            |-- fpdf.php
            |-- dialog.json
            `-- dialog.php

File Breakdown