Uses of Class
com.nsdev.lettergenerator.builder.LetterBuilder
Packages that use LetterBuilder
Package
Description
Public entry points for letter construction and PDF generation.
Mutable convenience builders that produce independent immutable model snapshots.
-
Uses of LetterBuilder in com.nsdev.lettergenerator
Methods in com.nsdev.lettergenerator that return LetterBuilderModifier and TypeMethodDescriptionstatic LetterBuilderLetter.builder()Creates a fresh mutable Java letter builder with default page, region and text settings. -
Uses of LetterBuilder in com.nsdev.lettergenerator.builder
Methods in com.nsdev.lettergenerator.builder that return LetterBuilderModifier and TypeMethodDescriptionLetterBuilder.addressLayout(AddressLayout value) Places configured sender/recipient/date fields inside an editable body-relative panel.Registers a defensive copy of named image bytes for later HTML asset resolution.Reads a local file immediately and registers its bytes as a named markup image asset.LetterBuilder.attach(PdfAttachment value) Appends an immutable existing PDF to the output pack.Appends an advanced model block without leaving the fluent API.LetterBuilder.body(LetterComponent value) Appends an immutable fragment as a softly kept body group.Appends plain text chunks in order.Appends body content as a fragment of the supported HTML subset.LetterBuilder.canvas(CanvasBlock value) Appends one bounded arbitrary-position body canvas.Replaces the nonblank closing phrase after body content.LetterBuilder.component(String name, LetterComponent value) Registers a reusable document-local fragment; later registrations replace the same name.Defers date formatting until final builder locale is known.Defers a locally styled date until final locale is known.LetterBuilder.direction(TextDirection value) Sets writing direction independently from formatting locale.LetterBuilder.fallbackFonts(String... values) Sets ordered explicit registered fallback font families.LetterBuilder.fixedElement(FixedElement element) Appends an advanced fixed element using the configured header/footer zones.LetterBuilder.footer(byte[] image) Replaces the footer with a repeated PNG/JPEG/static SVG image.LetterBuilder.footer(LetterComponent value) Replaces footer content with a reusable fragment.LetterBuilder.footer(PageSelector pages, byte[] image) Replaces footer content for one page selection; ALL is fallback for unspecified selections.LetterBuilder.footer(PageSelector pages, String... text) Replaces footer content for one page selection; ALL is fallback for unspecified selections.LetterBuilder.footer(PageSelector pages, Path image) Replaces footer content for one page selection; ALL is fallback for unspecified selections.Replaces the footer with plain text repeated on every page.Reads a PNG/JPEG/static SVG file immediately and replaces the footer with its fitted image.LetterBuilder.footerBlocks(Block... blocks) Replaces footer content with an ordered snapshot of advanced model blocks.LetterBuilder.footerBlocks(PageSelector pages, Block... blocks) Replaces footer content for one page selection; ALL is fallback for unspecified selections.LetterBuilder.footerHeightMm(double value) Replaces footer content-box height, initially 15 mm.LetterBuilder.footerHtml(PageSelector pages, String markup) Replaces footer content for one page selection; ALL is fallback for unspecified selections.LetterBuilder.footerHtml(String markup) Replaces footer content with a fragment of the supported HTML subset.LetterBuilder.footerStyle(PageSelector pages, Style value) Applies appearance overrides to one footer selection after the shared footer defaults.LetterBuilder.footerStyle(Style value) Replaces footer overrides on top of the default 9 pt gray text and zero before/after spacing.Appends an explicit softly kept group of immutable blocks.Appends grouped plain text using the ordinary newline/paragraph rules.LetterBuilder.header(byte[] image) Replaces the header with a repeated PNG/JPEG/static SVG image.LetterBuilder.header(LetterComponent value) Replaces header content with a reusable fragment.LetterBuilder.header(PageSelector pages, byte[] image) Replaces header content for one page selection; ALL is fallback for unspecified selections.LetterBuilder.header(PageSelector pages, String... text) Replaces header content for one page selection; ALL is fallback for unspecified selections.LetterBuilder.header(PageSelector pages, Path image) Replaces header content for one page selection; ALL is fallback for unspecified selections.Replaces the header with plain text repeated on every page.Reads a PNG/JPEG/static SVG file immediately and replaces the header with its fitted image.LetterBuilder.headerAlignment(TextAlign alignment) Positions an automatic header box within the space beside the logo and supplies default content alignment.LetterBuilder.headerBlocks(Block... blocks) Replaces header content with an ordered snapshot of advanced model blocks.LetterBuilder.headerBlocks(PageSelector pages, Block... blocks) Replaces header content for one page selection; ALL is fallback for unspecified selections.LetterBuilder.headerBoundsMm(double x, double y, double width, double height) Replaces automatic placement with an exact header box measured from the inner page upper-left corner.LetterBuilder.headerHeightMm(double value) Replaces the header content-box height, initially 25 mm.LetterBuilder.headerHtml(PageSelector pages, String markup) Replaces header content for one page selection; ALL is fallback for unspecified selections.LetterBuilder.headerHtml(String markup) Replaces header content with a fragment of the supported HTML subset.LetterBuilder.headerStyle(PageSelector pages, Style value) Applies appearance overrides to one header selection after the shared header defaults.LetterBuilder.headerStyle(Style value) Replaces header style overrides on top of zero before/after spacing and the currently selected header alignment.LetterBuilder.headerWidthMm(double width) Replaces the header box width in millimeters.Appends a heading block whose appearance inherits the document style and heading defaults.LetterBuilder.hyphenate(boolean value) Enables dictionary hyphenation using explicitly registered trusted patterns.Appends a reference to a registered fragment at this position in body flow.LetterBuilder.landscape()LetterBuilder.locale(LocaleSettings value) Sets deterministic country-aware formatting.Sets a locale using its language tag and default date/currency conventions.LetterBuilder.logo(byte[] image) Replaces the logo by immediately decoding copied PNG/JPEG/static SVG bytes and fitting their aspect ratio into a 45 by 20 mm box.LetterBuilder.logo(ImageBlock image) Replaces the logo with an advanced image block retaining its supplied dimensions.Reads and replaces the logo immediately, fitting it into a 45 by 20 mm box with its aspect ratio preserved.Replaces the four page margins.LetterBuilder.marginsMm(double allSides) Replaces all four page margins with the same millimeter value.LetterBuilder.metadata(DocumentMetadata value) Replaces PDF metadata.LetterBuilder.orientation(Orientation value) Selects the shorter or longer edge as the horizontal edge.Replaces the paper size, initiallyPageSize.A4.LetterBuilder.pageBreak()Appends an explicit break so subsequent body content begins on a new page.LetterBuilder.pageSizeMm(double widthMm, double heightMm) Selects custom physical paper dimensions, preserving the supplied orientation.LetterBuilder.part(LetterElement element, List<Block> blocks) Replaces one semantic role while preserving conventional letter order.LetterBuilder.part(LetterElement element, List<Block> blocks, Style localStyle) Replaces one semantic role with explicit local wrapper styling.Replaces the recipient identity/address.Replaces the reference with a bold label and literal value.LetterBuilder.salutation(String value) Replaces the nonblank opening greeting.Replaces the sender identity/address.LetterBuilder.settings(DocumentSettings value) Replaces optional language, font and PDF metadata settings.LetterBuilder.signature(LetterComponent value) Replaces signature content with a reusable fragment.LetterBuilder.signature(SignatureContent... parts) Replaces signature content with the supplied immutable parts stacked in argument order.LetterBuilder.signatureBlocks(Block... blocks) Replaces signature content with an ordered snapshot of advanced model blocks.LetterBuilder.signatureHeightMm(double value) Replaces the signature height, initially 20 mm.LetterBuilder.signatureHtml(String markup) Replaces signature content with a fragment of the supported HTML subset.LetterBuilder.signaturePlacement(SignaturePlacement value) Replaces signature placement.Replaces body style overrides, overlaid on the default 3 mm paragraph gap.Replaces the nonblank literal subject.LetterBuilder.table(TableBlock value) Appends a table block, commonly produced byTable.builder(String...).LetterBuilder.theme(LetterTheme value) Sets role defaults and named styles for this document.Replaces the watermark configuration for PDF post-processing.Replaces the watermark with the default text-watermark configuration.