export

public final void export(String filepath, IExporter exporter)

Exports the document to a file using the specified exporter. For with , the format is inferred from the file extension (.tif/.tiff, .png, .jpg/.jpeg, .bmp). For multi-page documents exported as PNG/JPEG/BMP, numbered files are produced (e.g., output.png → output-1.png, output-2.png, ...). TIFF preserves single-file multi-page output.

Parameters

filepath

The path where the exported file will be saved.

exporter

The exporter that defines the output format and settings.


public final void export(FileOutputStream stream, IExporter exporter)

Exports the document to a stream using the specified exporter.

Parameters

stream

The stream to write the exported document data to.

exporter

The exporter that defines the output format and settings.