IPdfConverter

public interface IPdfConverter

Declares functionality to convert PUB document into PDF document

Methods

MethodDescription
convertToPdf(Document doc, String fileName)Converts PUB document into PDF format and saves result as PDF file
convertToPdf(Document doc, OutputStream outputStream)Converts PUB document into PDF format and saves result in stream passed

convertToPdf(Document doc, String fileName)

public abstract void convertToPdf(Document doc, String fileName)

Converts PUB document into PDF format and saves result as PDF file

Parameters:

ParameterTypeDescription
docDocumentPUB document
fileNamejava.lang.Stringname of PDF file

convertToPdf(Document doc, OutputStream outputStream)

public abstract void convertToPdf(Document doc, OutputStream outputStream)

Converts PUB document into PDF format and saves result in stream passed

Parameters:

ParameterTypeDescription
docDocumentPUB document
outputStreamjava.io.OutputStreamoutput stream