generateFromDocument

abstract fun generateFromDocument(document: Document, pdfConfig: PdfConfiguration = PdfConfiguration.default()): Boolean

Generate PDF from given Document

Return

true if PDF was generated successfully, false otherwise

Parameters

document

source document

pdfConfig

extra PDF configuration


abstract fun generateFromDocument(document: Document, outputFile: File, pdfConfig: PdfConfiguration = PdfConfiguration.default()): Boolean

Generate PDF from given Document

Return

true if PDF was generated successfully, false otherwise

Parameters

document

source document

outputFile

target PDF file

pdfConfig

extra PDF configuration