Forum Replies Created
-
AuthorPosts
-
in reply to: how to add css files in jsp which is transformed to pdf ?? June 26, 2014 at 17:52#29504
Just released v390 addresses the issue. Do not forget to copy an updated ss_css2.jar from the distribution package to your application resources.
in reply to: "Print Ready" PDFs? June 26, 2014 at 13:22#29544Right now there is no way to generate PDFs with CMYK colorspace.
You could request the feature implementation on an (affordable) paid basis.
in reply to: .TIFF images not appearing in PDF June 26, 2014 at 13:16#29547By default PD4ML supports only Fax-specific TIFF image sub-formats. Obviously in your case the TIFF format is not among the supported.
A workaround would be to define a so-called custom resource loader and let it re-format a TIFFs to anything compatible.
See:
https://pd4ml.com/cookbook/custom_rc_loaders.htm
and an attachment.in reply to: Is <em> tag supported? June 23, 2014 at 09:14#29424tag is supported – it is just a synonym to in a PDF conversion context.
in reply to: TTF embedding June 23, 2014 at 08:40#27317By default PD4ML converts to PDF characters, belong to Latin-1 charset only using built-in Adobe fonts (Helvetica, Times New Roman and Courier New). In order to output national or special characters you would need to configure and utilize TTF embedding feature. See:
https://pd4ml.com/reference.htm#7.1
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html
https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htmin reply to: Is demo jar PD4ML library or in PD4Ml library PRO? June 23, 2014 at 08:28#29548The code works with both Std and Pro versions.
The Pro version would also allow you to embed TTF fonts and to display with them non-Latin and special characters.
in reply to: need servlet code for converting html string to pdf June 23, 2014 at 08:28#29039The code works with both Std and Pro versions.
The Pro version would also allow you to embed TTF fonts and to display with them non-Latin and special characters.
in reply to: Javascript is not getting executed with PD4ML June 19, 2014 at 07:44#29546PD4ML does not support Javascript and we have no plans to support it. The topic with a tricky workaround is discussed by the link:
html-css-to-pdf-rendering-issues-f3/is-javascript-supported-t216.htmlAlternatively you may give a try to PD4ML Web wrapper to a PhantomJS HTML->PDF converter module. https://pd4ml.com/pd4ml_web.htm Its functionality is planned to be included to PD4ML v4 as an option.
in reply to: getting displayed as ? May 29, 2014 at 14:27#29542Try do download v385fx8 again and reinstall. There were some distribution package build issues.
in reply to: Problem with CSS before after selectors May 29, 2014 at 11:30#29541By the link you may find a list of supported CSS selectors:
https://pd4ml.com/cookbook/pd4ml_proprietary_css_features.htmI am afraid “before” and “after” pseudo-elements in selectors are not supported
in reply to: Issue with shadow style to <img> May 29, 2014 at 10:28in reply to: Different footer on the last page May 21, 2014 at 11:42#29492If the total number of PDF pages is not known, it is a bit tricky.
tag supports scope attribute to define a page scope, where particular footer definition is supposed to go. For example scope=”2+,skiplast” There is a reason, why “skiplast” option is supported, but “lastpage” option is not.
See html-pdf-faq-f1/scope-lastpage-t356.html for brief explanation and a workaround.
in reply to: Problem with PDF version1.3 May 21, 2014 at 11:37#29538In fact even PDF 1.3 should be ok for PD4ML. The exception is only tells, that the version number format is invalid. (The test is performed mostly to make sure a parsed file is PDF)
String msg = "Invalid PDF version prefix: "; ... int index = -1; if (!comment.startsWith("PDF-") || (index = comment.indexOf('.')) < 0) { throw new ParseException( msg + comment ); } try { versionMajor = Integer.parseInt(comment.substring(4, index)); versionMinor = Integer.parseInt(comment.substring(index + 1)); } catch (NumberFormatException exception) { throw new ParseException( msg + comment ); }I see, visually “PDF-1.3” is correct, and should pass the above test. So I would suspect there are trailing invisible chars etc.
A PDF sample would help to analyze the issue.
in reply to: overflow: hidden applied to table div causing missing data May 21, 2014 at 11:20#29539Please contact support pd4ml com and provide all relevant data: Java code and source HTML snippets, resulting PDF etc.
in reply to: Disable Attachments May 14, 2014 at 18:26#29535From PD4ML documentation:
/** * "pd4ml.disable.external.attachments" * if "true", it does not load attachments (<pd4ml:attachment>) from local system and from URL. It does not impact inline-defined attachments. * @see PD4ML#setDynamicParams(java.util.Map) */ public static final String PD4ML_DISABLE_EXTERNAL_ATTACHMENTS = "pd4ml.disable.external.attachments";
Attachments come from Lotus Notes/Domino XML (DXL) are inline, that is the reason the setting does not disable them by default.
There are workarounds:
1.
PdfAgentR7.java sample code has the following section:
if ( dontPassAttachmentsToXalan ) { xml = extractAttachments(xml); }extractAttachments() method extracts inline attachments from DXL, stores them as temporal files and inserts references to the temp files instead on the attachment bodies. In the case PD4ML_DISABLE_EXTERNAL_ATTACHMENTS flag works as expected.
2. Suppress attachments on CSS level:
pd4ml.addStyle("pd4ml-attachment {display: none}", true);In the case an invoking of extractAttachments() also makes sense, as it prevents bulky base64-encoded attachment data from being passed to XALAN.
-
AuthorPosts
