Package DE_EPAGES::Core::API::PdfConverter
This package implements the PDF converter.
@EXPORT_OK |
Functions
CloseHtmlTags
Closes all opened, but not closed tags in the html document. $hFlags = { 'isSnippet' => 1 };
Syntax |
$HtmlCode = CloseHtmlTags($HtmlCode,$hFlags); |
Input |
|
Return |
|
ConvertXhtml2Pdf
Converts a html document to a pdf document. Returns a binary pdf document or undef in case of errors. Hint: use functions 'IsValidXhtml' and 'CloseHtmlTags' if necessary!
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 |
|