Forum Replies Created
-
AuthorPosts
-
in reply to: Free CJK Fonts May 2, 2017 at 11:01#30046
You may use free FontForge tool to convert OTF to TTF.
If you familiar with Python programming, you may also use the simple script
https://github.com/fonttools/fonttools/blob/master/Snippets/otf2ttf.pyin reply to: pd4ml transform tag renders weird characters April 19, 2017 at 09:07#30030You published as “response” returned HTTP content, which looks correct.
HTTP server also sends so-called “HTTP Header”, which should have “Content-type: application/pdf” entry.
Your JSP code also seems to be ok. So first I would suspect your web application has a config mapping “JSP -> plain/text”, and the configuration overrides “Content-type: application/pdf” set by PD4ML taglib.
in reply to: Why is the HTML entity Α rendered as a ?. April 19, 2017 at 08:19#30038Have you configured/enabled “TTF Embedding” feature? By default PD4ML supports only Latin-1 charset of built-in Acroread fonts.
in reply to: pd4ml transform tag renders weird characters April 19, 2017 at 08:15#30027It is not about charset / character encoding.
Your webapp should send “Content-type: application/pdf” with HTTP response.
PD4ML taglib implicitly sets the correct HTTP header. (Do you use PD4ML taglib?)
It your case it seems to be overridden with “Content-type: text/plain“.in reply to: Have mirrored margins been implemented yet? April 18, 2017 at 20:54#30036The feature is to be supported by the forthcoming PD4ML v4
in reply to: Can I reference a style sheet in the header and footer html? April 18, 2017 at 20:53#30034If you define headers/footers via API, try to define not only HTML snippet, but a valid HTML doc:
header.setHtmlTemplate("<html><head><link rel="stylesheet" type="text/css" href="mystyle.css">" + "</link><body>page $[page] of $[total]</body></html>")in reply to: Generated pdf with watermark file size is too big April 11, 2017 at 14:22#30022It depends on the image type you use as a watermark.
GIFs or some species of PNG cannot be embedded to PDF “as is” and has to be converted to PDF native image format which is in fact a gzipped sequence of pixel color values. The PDF image format requires significantly more space for storing pictures (comparing to GIF, PNG etc).
Try to use JPEGs (even with high quality settings) as watermarks.
in reply to: how to show background image in full size of page April 7, 2017 at 19:42in reply to: Rendering through jsp tags April 4, 2017 at 16:55#30011In an ideal situation the taglib should work correctly without any tuning/adjusting. You only need to enclose your HTML document to opening and closing tags.
If relative links are not resolved, add debug=”true” attribute to the transform tag and inspect the server’s log for diagnostics info.
in reply to: pd4ml ignores images behind a http redirect April 4, 2017 at 16:51#30015The forthcoming PD4ML v4 should solve the issue.
If a maintenance period of your license has not been expired yet we could consider to add the missing redirect feature to PD4ML v3.10.2
in reply to: MetaData are ignored April 4, 2017 at 16:46#30008/** * The method defines custom properties for PDF document meta data. The method takes effect only in PD4ML Volume DMS and PD4ML SRC license binaries. * @param key a unique name, which must not be one of the standard property names Title, Author, Subject, * Keywords, Creator, Producer, CreationDate, ModDate and Trapped * @param value data itself * @param hide makes the metadata not appear in the PDF document properties dialog of Acroread */ public void addMetadata(String key, String value, boolean hide) { ...There are dedicated API methods pd4ml.setAuthorName() and pd4ml.setDocumentTitle() could help you to workaround.
Also you can try to post-process generated PDFs with PD4Document/PD4DocumentBase API.
in reply to: how to show background image in full size of page April 4, 2017 at 16:34#30012You may define a page background with the API call:
PD4PageMark footer = new PD4PageMark(); // footer.setPageBackgroundColor(Color.green); footer.setPageBackgroundImageUrl("file:i/background.jpeg"); pd4ml.setPageFooter(footer); // or setPageHeader() - both methods are okin reply to: pdf’s Table right margin and the content is missing March 13, 2017 at 14:00#29996PD4ML Probe is usually bundled with one of the recent versions of PD4ML.
PD4ML v3.9.5 is more than 2 years old and based on older CSS runtime.
I would recommend to try the newest PD4ML version.in reply to: enableSmartTableBreaks in RTF March 13, 2017 at 13:26#29997Just published v3.10.1 implements the feature.
in reply to: Duplex printing March 10, 2017 at 18:20#30002> each source HTML document starts a new PDF page; there is no way to continue half-blank page with a new doc.
Yes, you are right. There are some tech reasons for that in the current v3.x. If you are sure, there is no style intermixes, try to merge the HTML portions to a single HTML doc before it is passed to PD4ML. Just take into account: a closing or tag stops further HTML parsing, so it makes sense to remove any instances of the closing tags if they are not at the end of the resulting HTML.
Proprietary could help you to prepare a document for duplex printing. The page break tag inserts a blank page if needed to fulfill the “next” condition.
-
AuthorPosts
