Forum Replies Created
-
AuthorPosts
-
in reply to: HTML/CSS rendering issues December 7, 2012 at 16:06#26801
If PD4ML is used with the option pd4ml.adjustHtmlWidth() and a source HTML contains the following fragment:
[language=HTML:1ku1ul84][/language:1ku1ul84]
then a document width will be incorrect in the result PDF file – it will cover several percents only of the whole PDF canvas.Adding the “display:block” style solves the issue.
Which other approaches can be used to resolve the issue?
Regards, Oleksii
in reply to: HTML/CSS rendering issues December 10, 2012 at 17:47#26803I download versions 380fx8 and 380fx9 and both are in trouble when render footer html session.
The footer simply can’t be showed. It seems like no footer, although it has been seted.in reply to: Footer cannot be rendered in PDF with version 380fx8/380fx9 December 10, 2012 at 18:29#29178I’ve just sent you a build, which should fix the problem.
There is always an alternative way to define headers/footer in PD4ML. See http://pd4ml.com/cookbook/pdf_header_footer_generation.htm (Type #3)
in reply to: Footer issue in latest pro version (380fx9 Pro) December 11, 2012 at 21:55#29176We fixed the problem in the dev build. An updated beta version is going to be available for download in few days.
in reply to: Question about PDF/A type generation December 11, 2012 at 23:25#29175Forthcoming PD4ML version will suppress image transparency mask (if any) in PDF/A output mode.
in reply to: SVG or embedded pdf Images December 12, 2012 at 09:47#27435Any update for svg support, please email to me :leiwei1997@yahoo.com.cn
in reply to: TTF embedding December 14, 2012 at 11:24#27304Hello,
I am trying to provide for Asian (CJK) language support in my application. While chinese works out well, the TTF embedding feature doesn’t help in case of Korean or Japanese.
I followed all the steps mentioned in the online help for generating pd4fonts.properties for these font files.
In the server logs I can see font files getting resolved. Example, for japanese text, MSminchu.ttf is being loaded (as per the logs), but the generated PDF contains “??????” throughout and the PDF properties – > Font, doesn’t show me msminchu font being loaded.
When I deliberately try to load chinese font for Japanese text, then I can see some of the content coming fine (that is because Chinese and Japanese languages share some symbols), but ofcourse that would not be a good solution.What could be going wrong here? I have been at it for a longtime now. Please help!!
-Ashish
in reply to: HTML/CSS rendering issues December 14, 2012 at 11:59#26804Has anybody managed to use Google Web Fonts with pd4ml?
I had no success at all, can anybody give me any useful pointers?
Thanks.in reply to: Google Web Fonts December 14, 2012 at 17:52#29179Unfortunately PD4ML does not support Google Web Fonts (in WOFF file format) for the time being.
in reply to: TTF embedding December 17, 2012 at 13:54#27305Please try to substitute your fonts jar with this one:
http://pd4ml.com/i/allfonts.zip (34 MB!)unpack it and place fonts.jar to the classpath of your application (or to lib/ folder if any).
Refer the fonts this way:
pd4ml.useTTF(“java:fonts”, true);And make sure the HTML has a correct meta charset directive.
Does it solve the problem?
in reply to: HTML/CSS rendering issues December 19, 2012 at 11:45#26805Hi, I’ve been troubleshooting a problem with empty PDF pages.
I’ve got a TR-TD in a legacy code which is used to separate vertical components:
[language=html:1b1lvkqf][/language:1b1lvkqf]
I noticed that PD4ML pastes page breaks when such component is occurred.
To check this I added pd4ml proprietary css feature:
[language=CSS:1b1lvkqf]TR { page-break-inside: avoid;
pd4ml-page-break-border-top: 1px solid red;
pd4ml-page-break-border-bottom: 1px solid blue; }[/language:1b1lvkqf]Indeed instead of having empty TR-TD printed PD4ML inserted blue border which is used to print border bottom line.
How can it be fixed without changing the legacy code?
Thanks, Oleksii
in reply to: Page break is inserted on TR with empty TD December 19, 2012 at 12:31#29180> I noticed that PD4ML pastes page breaks when such component is occurred.
No, it is not quite correct. PD4ML forces a page break, when TR { page-break-inside: avoid } is set, and a subsequent TR content does not fit remaining page space.
pd4ml-page-break-border-* properties currently are not useful, as the current table break logic deals correctly with borders in most of the cases.
> How can it be fixed without changing the legacy code?
I hope an HTML sample would help us to correctly understand the problem you faced with. Please publish it here or send it to support pd4ml comin reply to: Page break is inserted on TR with empty TD December 19, 2012 at 18:45#29181I hope an HTML sample would help us to correctly understand the problem you faced with. Please publish it here or send it to support
The source HTML file is here
Element which causes page break is on the line 494 in the source HTML (or search for a comment “Empty TD leads to pdf page break”)
Rendered PDF with this element is here
Rendered PDF without this element (or
can be placed inside empty) is here The red dashed line shows where PD4ML inserts pd4ml-page-break-border-bottom
(defined in HTML head section)Thanks, Oleksii
in reply to: Page break is inserted on TR with empty TD December 19, 2012 at 18:51#29182I’ve forgotten to provide the PD4ML configuration settings:
unitsValue = UNIT_VALUE_POINTS;
dimension = A4;
landscapeValue = false;
enableSmartTableBreaks = true;
interpolateImages = true;
adjustHtmlWidth = true;
fitPageVertically = false;
enableImgSplit = false;
topInset = 40;
leftInset = 40;
rightInset = 30;
bottomInset = 30;in reply to: Table Property rules="cols" not coming properly in PDF and R December 21, 2012 at 23:00#29099Can we get an update on this ticket.
-
AuthorPosts