Package io.keikai.axyra.sheets.io
Class PdfOptions.Builder
java.lang.Object
io.keikai.axyra.sheets.io.PdfOptions.Builder
- Enclosing class:
- PdfOptions
-
Method Summary
Modifier and TypeMethodDescriptionaddFontDir(String dir) Adds one directory tofontDirs(List).allowCopy(boolean allow) Permit content copy / extraction (defaulttrue; encryption only).allowModify(boolean allow) Permit document modification (defaulttrue; encryption only).allowPrint(boolean allow) Permit printing (defaulttrue; encryption only).bookmarks(boolean on) Emit a PDF outline (bookmarks): one entry per exported sheet, targeting the sheet's first page — combined withpageRange(String), dropped sheets lose their bookmark and targets follow the renumbered pages.build()fitTo(PdfOptions.Fit fit) Fit-to-page override for every selected sheet.Extra directories scanned for fonts, on top of the host's own font paths.ownerPassword(String password) Password granting full access (enables encryption).1-based page selection over the final document, e.g.pdfA(boolean on) sheetNames(String... names) Sheet names to export (case-sensitive; unknown names fail).sheets(int... sheets) Sheet indices to export (0-based; hidden sheets included when listed).userPassword(String password) Password required to open the document (enables encryption).Painttextas a diagonal light-gray watermark under every page's content (e.g.
-
Method Details
-
title
-
author
-
pageRange
1-based page selection over the final document, e.g."2-5,8". -
sheets
Sheet indices to export (0-based; hidden sheets included when listed). -
sheetNames
Sheet names to export (case-sensitive; unknown names fail). -
fitTo
Fit-to-page override for every selected sheet. -
userPassword
Password required to open the document (enables encryption). -
ownerPassword
Password granting full access (enables encryption). -
allowPrint
Permit printing (defaulttrue; encryption only). -
allowCopy
Permit content copy / extraction (defaulttrue; encryption only). -
allowModify
Permit document modification (defaulttrue; encryption only). -
watermark
Painttextas a diagonal light-gray watermark under every page's content (e.g."CONFIDENTIAL","DRAFT"). -
bookmarks
Emit a PDF outline (bookmarks): one entry per exported sheet, targeting the sheet's first page — combined withpageRange(String), dropped sheets lose their bookmark and targets follow the renumbered pages. -
fontDirs
Extra directories scanned for fonts, on top of the host's own font paths.A workbook whose fonts are not installed on the rendering machine is drawn with substituted glyphs — every advance width changes, so text wraps and clips differently from the original. Pointing the renderer at the directory holding those font files is what makes the output match. Directories that do not exist are skipped rather than failing the render.
-
addFontDir
Adds one directory tofontDirs(List). -
pdfA
-
build
-