Skip to content
DemoFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub
Flutter Guides Security

Security — Flutter ​

ComPDF Flutter SDK provides document password, access permission, and page identification features. Passwords and permissions control document opening and certain operations. Headers and footers, Bates numbering, and backgrounds add numbering, notes, or document identifiers for distribution and archiving.

Key Capabilities ​

  • Passwords and permissions: Set user and owner passwords, configure printing and copying permissions, or remove existing passwords.
  • Headers and footers: Set text and page numbers at six fixed positions, with font, color, and margin settings.
  • Bates numbering: Apply sequential numbering to selected pages using templates, prefixes, suffixes, and styles.
  • Document backgrounds: Add color or image backgrounds, with opacity, positioning, and viewing and printing controls.

These operations use CPDFDocument. When using a reader, obtain the document from controller.document; for non-UI workflows, use an independently opened document instance. Call save() or saveAs() to persist changes.

Headers and footers, numbering, and backgrounds do not encrypt a document. To permanently remove sensitive page content, use Redaction. To sign documents and check integrity, see Digital Signatures.

Guides ​

Set Password

Manage document passwords and permissions to restrict access and document operations.

Remove Password

Remove document passwords and permissions through the API.

Headers and Footers

Set, read, update, and clear headers and footers.

Bates Numbering

Add sequential page numbers and manage templates and styles.

Document Background

Set color or image backgrounds and control viewing and printing behavior.