generate From Document
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
pdf Config
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
output File
target PDF file
pdf Config
extra PDF configuration