- Getting Started
- PDF Output and Compatibility
- Security and Signatures
- Fonts and Images
- Forms, Annotations and Editing
- Deployment
Getting Started
What is HotPDF?
HotPDF is a native PDF library and VCL component for Delphi and C++Builder. It enables RAD Studio applications to create, edit, secure, optimise, and save PDF documents directly from application code.
Which versions of RAD Studio are supported?
The full package includes projects for RAD Studio 9.0 through to RAD Studio 13.1 Florence. Trial packages only include packages for RAD Studio 11.3, 12.3, and 13.1.
Why does the trial installer only list a few RAD Studio versions?
Trial packages only provide the latest three generations of RAD Studio versions currently supported by the trial. The installation page lists the detected environments that match these trial package versions.
Where does the component appear in the IDE?
The installer creates a Tool Palette tab named losLab. The THotPDF component is listed on this tab.
Can I use the same library in Delphi and C++Builder?
Yes. HotPDF includes Delphi package projects and C++Builder package support, and provides examples for both language stacks. The exposed component interfaces are designed for typical VCL workflows in both environments.
PDF Output and Compatibility
Does HotPDF require an external PDF runtime?
No. Regular PDF creation is handled by the HotPDF library itself. Applications do not need to deploy a separate PDF engine just to generate documents.
How does HotPDF control PDF 1.3, 1.4, 1.5, 1.6, and 1.7 output?
Feature methods are checked against the selected PDF version. By default, HotPDF can elevate the document version when newer features are used. If StrictVersionLock is enabled, calls requiring a newer PDF version are rejected so that the saved file remains within the requested version level.
Why do some PDFs show blank pages on Windows systems using the UTF-8 beta locale option?
Older versions might write a UTF-8 BOM at the beginning of page content streams when Windows is configured to use UTF-8 for non-Unicode programmes. Strict PDF viewers reject this content syntax and display blank pages. HotPDF 2.40.1 removed this stray BOM from page content streams.
Can HotPDF save to streams instead of files?
Yes. HotPDF supports file-based output and stream-based workflows, which is useful for database storage, web responses, memory buffers, and applications managing their own document storage.
Security and Signatures
What encryption options are available?
HotPDF supports password-based PDF encryption, permission flags, AES-128, AES-256, PDF 2.0 AES-256 R6 hashing, and certificate recipient public key encryption.
Can HotPDF create PDFs for certificate recipients?
Yes. Use EnablePubKeyEncryption and AddPubKeyRecipient for public key security workflows. The application provides the recipient envelope data, whilst HotPDF writes the PDF encryption structures and encrypted document content.
Does HotPDF sign PDFs itself?
HotPDF provides the PDF-side signature workflow: signature form fields, reserved /ByteRange and /Contents placeholders, and the insertion of the final signature. The CMS or PKCS#7 cryptographic signatures are generated by the host application or a signature toolkit.
Can I add a second signature without invalidating the first?
Yes. Load the signed file with BeginIncrementalUpdate, add the fresh field with AddLoadedSignedSignatureField, save with SaveIncrementalUpdate, then sign using SignPDFWithPFX (or PreparePDFForSigning together with InsertSignatureHex where an external signer is involved). HotPDF appends the new revision whilst preserving the original signed bytes
Fonts and Images
How can I reduce the size of embedded fonts?
Set THotPDF.EnableFontSubsetting to true before BeginDoc. HotPDF will then only embed the glyphs used by the document, whilst preserving the glyph IDs for compatible Type0 / Identity-H text output.
Does font subsetting support CJK and OpenType-CFF fonts?
Yes. Current HotPDF builds support TrueType, OpenType-CFF, and CID-based CFF font subsetting, including large CJK and OpenType-CFF fonts containing multiple font dictionaries (multi-FD).
When should I leave font subsetting disabled?
Leave it disabled when the final PDF must contain the complete font programmes for later editing or specialised downstream processing. Full font embedding remains the default behaviour.
Which image workflows are supported?
HotPDF supports common raster and document image workflows, including JPEG, bitmaps, TIFF, JPEG2000, JBIG2, WMF, and EMF-oriented output. Standard JPEG processing uses the bundled libjpeg-turbo backend.
Forms, Annotations and Editing
Can HotPDF create interactive PDF forms?
Yes. HotPDF supports AcroForm fields, such as text fields, list boxes, combo boxes, check boxes, radio buttons, push buttons, and signature fields.
How do I decide who owns a field appearance?
HotPDF already generates appearance streams for new fields, because AutoFormAppearances is on by default, and the saved PDF still asks the viewer to build appearances from each field's /DA string, so a viewer that ignores /NeedAppearances draws the embedded stream instead of an empty field
Write AutoFormAppearances to true when the embedded streams should be authoritative, which also clears /NeedAppearances, or to false when the viewer should do all the rendering, the shape of older releases. PDF 2.0 and PDF/A output always takes the authoritative shape
Can HotPDF copy and merge pages from existing PDFs?
Yes. HotPDF can load existing PDFs, copy pages, append pages, delete pages, merge documents, stamp pages, and update document information. Copied pages preserve their page resources and content streams.
What annotation features are available?
HotPDF supports common annotation workflows, including links, text markup, file attachments, pop-ups, border styles, watermarks, redactions, screen annotations, 3D annotations, rich media annotations, and linked comment pop-ups.
Deployment
Which Windows target platforms are covered?
HotPDF is built for Windows VCL applications and supports Win32, Win64, and Win64x workflows where supported by the selected RAD Studio version.
What should I deploy with my application?
Deploy the HotPDF units and any files required by the selected native backends used by your build. If your application only uses the regular PDF generation paths, no separate external PDF viewer or PDF engine is required.
Where can I find more API details?
Use the included HtmlHelp reference for detailed information on methods, properties, and workflows. The overview page also summarises the main features and package contents.