B4JPdf Pro v1.0 — Official guide
B4JPdf is a B4J / Java 19 library for generating, reading, transforming, viewing and digitally signing PDF documents. This reference follows the public API supplied in version 1.0 and includes B4X examples and practical use cases.
What can you build?
| Task | Module | Use case |
|---|---|---|
| Reports, invoices, certificates | PDFManager, PDFParagraph, PDFTable |
Branded business reports and tabular invoices |
| Merge, split and transform PDFs | PDFBoxTools |
Assemble document packages and extract appendices |
| AcroForm processing | PDFBoxTools |
Populate standard application forms |
| P12/PFX digital signatures | PDFBoxTools |
Sign documents with your own digital certificate |
| Viewing and markup | pdfBoxWrapper |
PDF navigation, zoom and editable overlays |
| Charts and QR codes | PDFChartHelper, QRCodeGenerator, QRCodeLogo |
PDF reports containing charts and verification QR codes |
| CJK text and fonts | PDFManager and Noto CJK |
Multi-language PDF generation |
Documentation
- Installation and first PDF
- Practical templates, tables and merged cells
- Manipulation, forms and images
- P12/PFX file-based digital signing
- Viewer and edit persistence
- Unicode and CJK fonts
- Public API reference
Important: these tutorials describe methods present in the supplied B4JPdf v1.0 API. Full runtime certification on the buyer's machine and legal trust in a signature require additional verification. PDFBox and Bouncy Castle handle cryptographic operations; certificate trust is a separate concern.
Download the coding-assistant Skill
The downloadable OpenCode / Codex Skill includes public member names, exact signatures, events, constants, use patterns and signing examples. It contains no proprietary source code or private certificates.
Download B4JPdf Pro Skill (.zip)
Practical templates and tables
The templates tutorial explains how to adapt the 12 demo layouts, create a custom page theme, use AddCellSpan for merged columns, and add colored alert blocks with images or exported charts.
Signing verification scope: the examples use file-based .p12/.pfx certificates. Hardware tokens, smartcards and PKCS#11 have not been tested.
Library modules
PDFManager: document builder and layout engine.PDFParagraph,PDFTable,PDFHeader,PDFFooter: content elements.PDFBoxTools: PDF transformations, forms and digital signatures.pdfBoxWrapper,PdfSelectorBox: viewer and editable overlays.PDFChartHelper,QRCodeGenerator,QRCodeLogo: charts and QR.PDFTemplateManager: templates and page decorations.BytesBuilder: byte utility.
Always check the actual public API before using a method.