Forum Replies Created
-
AuthorPosts
-
in reply to: pd4ml probe renders the css style but pd4ml-3.9.5 does not March 10, 2017 at 18:07#30007
Please send an HTML sample and its problematic PDF output to support pd4ml com to be analyzed
in reply to: Non-Actionable URLs in PDF generated through PD4ML January 10, 2017 at 13:17#29987Unfortunately it still can “see” the hyperlinks even “through” an overlaying image.
We did not test an approach to place a transparent object (a vector rectangle) over the hyperlink and to assign a dummy PDF script handler to it. But I think it would result other visual flaws.
So the only existent workaround is to damage a hyperlink representation: i.e. to pre-process HTML and to insert a space character after “http://”.
in reply to: Non-Actionable URLs in PDF generated through PD4ML January 10, 2017 at 11:48#29986OK, now I see your point. The issue is know (i.e. post3894.html#p3894 ) and we tried to find a workaround multiple times.
As far as I remember the last promising idea was to overlay entire page with a transparent image (or annotation area, or anything else to screen hyperlinks). I’ll try to find the investigation results and share with you.
in reply to: Non-Actionable URLs in PDF generated through PD4ML January 10, 2017 at 11:18in reply to: Non-Actionable URLs in PDF generated through PD4ML January 10, 2017 at 11:18#29984pd4ml.disableHyperlinks() should do the trick.
in reply to: Skip watermark for specific page January 3, 2017 at 11:13#29982It is not possible with the watermarking feature. But you can achieve something visually identical with page background images.
Try to override getPageBackgroundImageUrl(int pageNumber) method as it is done for getHtmlTemplate() method in the code snippet below (implementing the logic you need):
PD4PageMark footer = new PD4PageMark() { public String getHtmlTemplate(int pageNumber) { if ( pageNumber % 2 == 0 ) { return "some left aligned stuff..."; } else { return "some right aligned stuff..."; } } }; pd4ml.setPageFooter(footer);in reply to: Issue with page break January 2, 2017 at 22:50#29981It seems there is a clash of even/odd alignment and suppression of trailing blank pages logic. We’ve just resolved it in the DEV build.
Regarding the page numbering: try to place the following header (or footer) definitions before opening tag.
Page $[page] of $[total]
in reply to: HTML to RTF conversion produces huge files December 13, 2016 at 14:40#29980> if i use RTF thene image is not transfered to the result file.
In fact the images are there, but can only be displayed by MS Word (and may be some other viewers).
> I have tested to create the final result using “wordpad” and the result file size is 70KB.
It can also be, Wordpad downscales the image with a detailization loss. But we’ll check the RTF spec if there are compression options for such images available, supported by the major viewers.
in reply to: HTML to RTF conversion produces huge files December 13, 2016 at 13:32#29978Do you convert to RTF or to RTF_WMF mode?
RTF_WMF for wordpad.exe compatibility converts image bytes to WMF format, which causes a significant size grow of resulting RTF.
in reply to: Stack underflow since v3.9.8 December 12, 2016 at 10:26#29971Please give a try to the just-released v3.10.0 – it addresses the type of issues.
in reply to: pd4ml:footnote with noref December 12, 2016 at 10:24#29968I’ve tested your code snippet with the most recent v3.10.0 and detected no issues. It renders correctly with and without “noref”.
Could you please publish a HTML document and its resulting PDF to illustrate the issue?
in reply to: Header is ok, body is failing showing question marks December 8, 2016 at 14:32#29975Try to add
SimSun=arialuni.ttf
SimSun presents in all fallback tables, so a TTF behind the font family name should be used as the last resort.
in reply to: Header is ok, body is failing showing question marks December 7, 2016 at 11:25#29972It sounds like different font families are applied to the header content and to the main body.
If, for example, Arial or Times is applied to Chinese text (and regular versions of the fonts do not define CJK glyphs) PD4ML scans its fallback tables to find a “similar” font, which is able to display a given text. If no suitable font found, it gives up with an output of question marks.
I guess it succeeds with a substitution font for header, but not for the main content. If you switch debug on, it should dump the font lookup attempts.
in reply to: Support of java: protocol for other resources than images December 7, 2016 at 11:15#29954It is expected on Friday (if QA detects no issues).
in reply to: Out of memory when ResourceProvider throws an IIOException November 23, 2016 at 16:40#29946Please check my email reply.
-
AuthorPosts
