Package DE_EPAGES::Core::API::PdfConverter
This package implements the PDF converter.
@EXPORT_OK |
Functions
ConvertXhtml2Pdf
Converts a html document to a pdf document. Returns a binary pdf document.
Syntax |
$PDF = ConvertXhtml2Pdf($HtmlCode); |
Input |
|
Return |
|
IsValidXhtml
Checks if sring is a valid xhtml document. The reference is not the W3C specification, but the java class org.xhtmlrenderer.pdf.ITextRenderer, which is more permissive. $hFlags = { 'isSnippet' => 1 };
Syntax |
$isValidXhtml = IsValidXhtml($HtmlCode,$hFlags); |
Input |
|
Return |
|