PDF Render

Templates

Document
Invoice
Report
Proposition

Document Template

Introduction

This is an example template for PDF generation. You can create any React component and place it in the templates folder, and it will automatically appear in the sidebar.

Features

  • Automatic template detection
  • Live preview with A4 format
  • Code view
  • Dark/Light mode support
  • Page numbering
  • Title management for table of contents

Usage

Create a new .tsx file in src/templates/

PDF Components

This template uses the PDF components from the pdf-components folder:

  • A4 - Document container with A4 format
  • Page - Individual page component
  • BodyArea - Content area with margins
  • Title - Heading with automatic TOC registration
  • PageNumber - Automatic page numbering
1 / 0