public interface AdminPdfMgrIf
Modifier and Type | Method and Description |
---|---|
void |
createPDFFromHTML(PdfOptions options,
java.lang.String html,
java.lang.String pdfFileName)
Created the PDF file from the specified HTML String
|
PdfResult |
getPdf(PdfOptions options)
Create the PDF document and return the URL, File name or bytes as defined by the input
options.
|
java.lang.String |
modifyHtml(java.lang.String html)
A customisation point to allow for modification of the HTML prior to being converted to PDF
|
void |
refreshConfigs()
Retrieve some commonly-used properties and set the velocity log file location
|
PdfResult getPdf(PdfOptions options) throws java.lang.Exception
options
- the options that define the PDF report to be produced and what is returned from
this interface. If the html attribute on PdfOptions is set this is used as the
source for the PDF otherwise getHtml on the AdminHgetAdminHtmlMgr is called to
produce the HTML.java.lang.Exception
- an unexpected exceptionvoid refreshConfigs() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionjava.lang.String modifyHtml(java.lang.String html) throws java.lang.Exception
html
- the HTML to modifyjava.lang.Exception
- an unexpected exceptionvoid createPDFFromHTML(PdfOptions options, java.lang.String html, java.lang.String pdfFileName) throws java.lang.Exception
options
- the PdfOptions options object which might one day be used to affect the PDF
generation if this method is overriden.html
- the HTML String to convert into a PDF filepdfFileName
- the target pdfFileNamejava.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.