generateFromDocument

open override fun generateFromDocument(sourceDocument: Document, pdfConfig: PdfConfiguration): Boolean

Generate PDF from given Document

Return

true if PDF was generated successfully, false otherwise

Parameters

document

source document

pdfConfig

extra PDF configuration


open override fun generateFromDocument(sourceDocument: Document, outputFile: File, pdfConfig: PdfConfiguration): 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