Delphi HotPDF Hello World: Your First PDF Program
Write your first PDF in Delphi with HotPDF: a minimal console Hello World that sets a Unicode font, draws text with TextOut, and saves a compressed file.
Software Development Blog
HotPDF Component tutorials, tips, and Delphi code examples for generating and editing PDFs.
Write your first PDF in Delphi with HotPDF: a minimal console Hello World that sets a Unicode font, draws text with TextOut, and saves a compressed file.
Why reusing a finished THotPDF throws the load-document error, how the Create, BeginDoc, EndDoc, Free lifecycle works, and when to build a fresh instance.
Create AcroForm text fields, checkboxes, radio groups, and submit or JavaScript actions in Delphi with HotPDF, and avoid export-value mismatches in form intake.
Attach Acrobat AF format, validate and calculate scripts to a loaded AcroForm in Delphi with HotPDF, so PDF form fields auto-sum totals and format dates
Add Text, CheckBox, ComboBox, ListBox, PushButton and Signature fields to an existing PDF in Delphi with HotPDF, and why /NeedAppearances is mandatory.
Set up AES-256 PDF encryption in Delphi with HotPDF: user and owner passwords, permission flags, R5 vs R6 revisions, and the property order that silently fails.
Keep Delphi PDF viewers responsive with HotPDF background rendering: queue page renders off the UI thread, cancel pending pages, and cache bitmaps
Draw linear barcodes into a PDF from Delphi with HotPDF: the symbologies it supports, how module width and quiet zone decide whether a scanner can read it.
Add bookmarks and named destinations to an existing PDF in Delphi with HotPDF: AddLoadedOutline nesting, XYZ destinations, and the /Count semantics trap
Draw vector shapes in a PDF from Delphi with HotPDF: paths with MoveTo and LineTo, stroke and fill, RGB color, line width, in a bottom-left coordinate system.
Sign PDFs from the Windows certificate store in Delphi and C++Builder using HotPDF: fix the CNG vs CAPI byte order and unresolved CertOpenStore link errors
HotPDF has no chart object, so you draw bar, line, and pie charts yourself with Rectangle, LineTo, and Circle in Delphi. Here is the coordinate math and layout.
What HotPDF shapes in Delphi PDFs and what it does not: bidi reordering, Arabic joining, coverage from Hebrew to Thai and Devanagari, and how to verify output
Go past Hello World with HotPDF TextOut in Delphi: set font size and style, rotate by angle, place coordinates exactly, and tune character and word spacing.
Lay out CJK vertical text in PDF from Delphi with HotPDF: use IsVertical in SetFont, stack glyphs downward, fix U+30FC, and arrange columns right to left
How HotPDF splits a Delphi PDF viewer into a headless THPDFViewerModel and a TScrollBox-based view, keeping zoom, search, and navigation logic unit-testable
Sign PDFs in Delphi with HotPDF: PFX one-call signing, ByteRange reservation for external signers, PAdES baseline fields, and document timestamps.
Process huge PDFs in Delphi without loading them into memory: HotPDF Direct File API handles, encrypted copy, page counts, and incremental updates.
Convert CMS DER ECDSA signatures to IEEE P1363 for BCryptVerifySignature in Delphi: strict r and s decoding, curve provider names, and CMS signer matching
Edit Title, Author, XMP, PageMode and bookmarks on an already-loaded PDF with HotPDF in Delphi, then save in place without rebuilding the xref or object graph.
The HotPDF EMF and WMF interpreter maps GDI gradient fills to PDF axial shading and hatch brushes to tiling patterns, keeping Delphi vector output real
HotPDF validates EN 16931 Schematron business rules in Delphi with a native XPath 1.0 engine that skips XPath 2.0 checks and stubs out on Delphi 7
Font subsetting that ran after the file was already written produced full fonts and no error. See how an EndDoc ordering bug hid in HotPDF and how to catch it.
Decode images out of a loaded PDF in Delphi with HotPDF ExtractLoadedImage: Flate, LZW, JPEG, JPEG 2000, Indexed, CMYK, CCITT and JBIG2 filters to a TBitmap.
Extract Unicode text from loaded PDFs in Delphi with HotPDF: ExtractLoadedPageText, layout-preserving extraction, ToUnicode CMaps, and font decode fallbacks
Shaped Arabic and Indic glyphs render as .notdef when subset closure ignores GSUB output. How HotPDF unions shaping glyph IDs into the Delphi font subset
PDF Function Type 0 is a multi-dimensional interpolation table. See how HotPDF wraps it for 3D color LUTs and spot-color tint transforms in Delphi.
How HotPDF evaluates PDF Type 2 exponential, Type 3 stitching, and Type 4 PostScript calculator functions in Delphi, including the roll and rounding pitfalls
Word and Excel export hybrid-reference PDFs that load fine yet fail on resave. See how HotPDF reads the /XRefStm table and resolves them safely in Delphi.
HotPDF Delphi hyperlinks: PrintHyperlink URI links, AddURILink hotspots, AddGoToLink internal page navigation, multi-line workarounds, and PDF/UA notes.
JBIG2 gives scanned black-and-white pages the smallest PDF size. See how HotPDF writes JBIG2Decode streams and plugs in encoder backends in Delphi.
HotPDF merges JBIG2 symbol dictionaries across pages into one /JBIG2Globals stream in Delphi PDFs, cutting repeat glyph storage on multi-page scans
JPEG 2000 brings high bit-depth and wavelet compression to PDF images. See how HotPDF decodes JPXDecode streams and embeds JP2 and J2K pictures in Delphi.
How HotPDF decodes PDF DecodeParms in Delphi: PNG predictor row tags 10 to 15, TIFF Predictor 2 sample differencing, and LZW EarlyChange code widths
HotPDF adds a highlight review layer in Delphi that keeps marker rectangles in memory, never rewrites the PDF, and stays aligned through zoom and rotation
Cut Delphi PDF size with object streams and xref streams, then append changes as incremental updates with HotPDF while keeping earlier revisions intact.
Stylistic sets and alternates live in a font's GSUB table. See how HotPDF resolves salt and ss01 to ss20 substitutions without HarfBuzz, in pure Delphi.
Generate PDF/A, PDF/X, and PDF/UA compliant files from Delphi with HotPDF: output intents, tagged structure, ICC profiles, and veraPDF verification steps.
A certificate parser is attack surface. See two real flaws in PKCS#12 and ASN.1 handling, an integer wraparound and a PBKDF2 denial of service, fixed in HotPDF.
Build an automated PDF preflight gate in Delphi: generate standards-clean files with HotPDF, then verify them with veraPDF and Acrobat before release.
Print a loaded PDF from Delphi with HotPDF: drive TPrinter through PrintLoadedDocument, render pages into any HDC, and copy vector EMF pages to the clipboard
Cover regions and build N-up layouts on loaded PDFs in Delphi with HotPDF content-stream operators, plus the redaction security boundary you must respect.
HotPDF renders PDF axial and radial shadings via the sh operator in Delphi, discretizing each gradient into color bands evaluated by its function engine
How HotPDF renders embedded PDF fonts in Delphi without installing them: TrueType glyf outlines, CFF Type 2 charstrings, Type 3 glyphs, and encoding maps
Render loaded PDF pages to TBitmap in Delphi with HotPDF: RenderLoadedPageToBitmap API, embedded TrueType/CFF glyph outlines, Type3 fonts, and page caching
Render PDF Separation and DeviceN spot colors in Delphi with HotPDF: tint transform functions, Type 4 calculator evaluation, Lab white point adaptation
Four silent HotPDF renderer bugs in Delphi: slash prefixed name operands, reversed cm concatenation, and a token index that zeroed twelve operators
Practical HotPDF guide to Delphi PDF reports: TextOut coordinates, Unicode font embedding, JPEG and PNG image placement, and drawing primitives that scale.
Search and replace text in existing PDF files from Delphi using HotPDF: glyph-level search, reverse font encoding, and the real limits of subset fonts
Draw dataset rows as a real PDF table in Delphi: compute column widths, align cell text, draw grid lines, and repeat the header when the table spans pages.
Justified PDF text needs script-aware spacing and fast width measurement. See how HotPDF justifies Latin and CJK lines and cuts GDI round-trips in Delphi.
Verify PDF digital signatures in Delphi with HotPDF: read signer details, re-hash ByteRange bytes, check CMS/RSA signatures, and see what svValid guarantees
Convert dynamic XFA forms to native AcroForm in Delphi with HotPDF FlattenLoadedXFA, review flatten warnings, and handle archival and PDF/A limits.
XFA forms store rich text as an HTML subset. See how HotPDF flattens exData runs and turns their a-href links into native PDF Link annotations in Delphi.
Export and import PDF annotations as XFDF in Delphi with HotPDF: ISO 19444-1 round-trip for lines, polygons, ink, interior color and rich text comments
Generate, detect, and validate ZUGFeRD and Factur-X e-invoices in Delphi with HotPDF: PDF/A-3 embedding, EN 16931 Schematron rules, and honest engine limits
Add PDF annotations in Delphi with HotPDF: text notes, free text, squares, and stamps. How a rect places each one and how they differ from AcroForm fields.
HotPDF RtLTextOut reference for Delphi: signature, parameters, charset 178/177 setup, RegisterUnicodeTTF, a working example, and common RTL errors fixed