Package io.keikai.axyra.sheets.io
Class ImageOptions.Builder
java.lang.Object
io.keikai.axyra.sheets.io.ImageOptions.Builder
- Enclosing class:
- ImageOptions
-
Method Summary
Modifier and TypeMethodDescriptionaddFontDir(String dir) Adds one directory tofontDirs(java.util.List).build()Extra directories scanned for fonts, on top of the host's own font paths.gridLines(boolean show) Force gridlines on or off (default: the sheet's print-gridlines flag).page(int page) Render the given printed page (1-based over the sheet's print pagination — the same numbering the PDF export uses).scale(double scale) Zoom over the 96-DPI base (1.0 = 96 DPI, 2.0 = 192 DPI).targetWidthPx(int widthPx) Exact output width in pixels; the height keeps the page aspect ratio.
-
Method Details
-
scale
Zoom over the 96-DPI base (1.0 = 96 DPI, 2.0 = 192 DPI). -
targetWidthPx
Exact output width in pixels; the height keeps the page aspect ratio. -
gridLines
Force gridlines on or off (default: the sheet's print-gridlines flag). -
page
Render the given printed page (1-based over the sheet's print pagination — the same numbering the PDF export uses). Default: page 1. Rendering a page past the sheet's page count fails; useRenderer.pageCountto enumerate. -
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(java.util.List). -
build
-