Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
package com.codename1.pdf
Creating and reading PDF documents, on the device and on the server.
Generation runs without a display: the same code builds an invoice in
an app or in a backend request handler. PdfDocument holds pages, each
drawn through a PdfCanvas (paths, text, images, links), and
PdfLayout flows PdfParagraph and PdfTable content across pages
with automatic page breaks. Fonts are the standard fourteen PDF fonts or
a TrueType font, embedded as a subset of the glyphs used.
PdfReader opens an existing document, encrypted ones included, for
its page count, page sizes, metadata and text.
Displaying a document is a client feature, in com.codename1.pdf.ui.
Types
class PdfBookmark shared | An entry of the document outline, the table of contents a reader shows in its side panel. |
class PdfCanvas shared | Draws the content of one PdfPage. |
class PdfDocument shared | Builds a PDF file. |
class PdfFont shared | A font text is drawn and measured with. |
class PdfImage shared | An image to draw on a PDF page, built from encoded JPEG or PNG bytes or from ARGB pixels. |
class PdfLayout shared | Flows paragraphs, tables, images and spacing down the pages of a PdfDocument, adding pages as they fill up. |
class PdfPage shared | One page of a PdfDocument, created by PdfDocument.addPage(PdfPageSize). |
class PdfPageSize shared | A page size in points (1/72 inch). |
class PdfParagraph shared | A block of text for PdfLayout, wrapped to the available width. |
class PdfReader shared | Reads an existing PDF: its pages, their sizes, its metadata and its text. |
class PdfSignature shared | Describes the digital signature PdfDocument.sign(PdfSignature) embeds when the document is saved. |
class PdfSignatureInfo shared | One digital signature found in a PDF, as [#find(byte[])] reads it. |
interface PdfSignatureProvider shared | Supplies the key material of a PDF signature without exposing the key. |
class PdfSigner | Device-side helpers for PDF signatures, over the platform crypto bridge in com.codename1.security. |
class PdfTable shared | A table for PdfLayout. |