Package com.isomorphic.rpc
Interface IPdfExporter
- All Known Implementing Classes:
PdfExport
public interface IPdfExporter
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getPdfBytes(String html, Map settings) Convert print HTML (fromCanvas.getPrintHTML()withprintForExport:true) to a PDF and return its bytes, for a PDF that is emailed, stored or returned by server code rather than streamed to the browser.voidgetPdfObject(String html, Map settings, jakarta.servlet.http.HttpServletResponse response, RPCManager rpc) method to convert HTML to PDF object.
For additional methods, including the ability to generate a .pdf that be saved to a database or emailed rather than streamed to the client, seePdfExport.getPdfRenderer(String, Map)
-
Method Details
-
getPdfObject
void getPdfObject(String html, Map settings, jakarta.servlet.http.HttpServletResponse response, RPCManager rpc) throws Exception method to convert HTML to PDF object.
For additional methods, including the ability to generate a .pdf that be saved to a database or emailed rather than streamed to the client, seePdfExport.getPdfRenderer(String, Map)- Parameters:
html- generated html from client-sidesettings- map of parametersresponse- in this parameter we send the answerrpc- our RPCManager parameter- Throws:
Exception
-
getPdfBytes
Convert print HTML (fromCanvas.getPrintHTML()withprintForExport:true) to a PDF and return its bytes, for a PDF that is emailed, stored or returned by server code rather than streamed to the browser. Settings are as forgetPdfObject(java.lang.String, java.util.Map, jakarta.servlet.http.HttpServletResponse, com.isomorphic.rpc.RPCManager).- Parameters:
html- generated html from client-sidesettings- map of parameters- Returns:
- the PDF
- Throws:
Exception
-