Package com.codename1.pdf
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.
-
ClassDescriptionAn entry of the document outline, the table of contents a reader shows in its side panel.Draws the content of one
PdfPage.Builds a PDF file.A font text is drawn and measured with.An image to draw on a PDF page, built from encoded JPEG or PNG bytes or from ARGB pixels.Flows paragraphs, tables, images and spacing down the pages of aPdfDocument, adding pages as they fill up.Draws the parts of a page outside the flow: running headers, footers, page numbers.One page of aPdfDocument, created byPdfDocument.addPage(PdfPageSize).A page size in points (1/72 inch).A block of text forPdfLayout, wrapped to the available width.Reads an existing PDF: its pages, their sizes, its metadata and its text.A table forPdfLayout.