Forum Replies Created
-
AuthorPosts
-
in reply to: Can add new line in the footer January 22, 2015 at 15:07in reply to: Troubleshooting January 22, 2015 at 16:05#26987
Before 3.8.5fx2, if set the html width to a big number(5000) , and the html page is 1200 width, it will generate the page render as 1200 width.
After 3.8.5fx2, the page will render in PDF as if it’s 5000px long, the rendered PDF content is very small although there’s no need for scaling.in reply to: automatic scaling feature is not working January 22, 2015 at 16:13#29658@don ji wrote:
Before 3.8.5fx2, if set the html width to a big number(5000) , and the html page is 1200 width, it will generate the page render as 1200 width.
After 3.8.5fx2, the page will render in PDF as if it’s 5000px long, the rendered PDF content is very small although there’s no need for scaling.Looks like the adjustHtmlWidth is broken since 3.8.5fx2 and thereafter.
“adjustHtmlWidth() is needed in situations like the following: you have a wide table, whose width is not constant (depends on the table content). In order to avoid table cut right side, you may define very big htmlWidth value and trigger adjustHtmlWidth(). Lets’s say htmlWidth=1200, actual table width is 980. In the case PD4ML will render the document assuming htmlWidth=1200 and analyze a right edge location of the content. In our case it is 980, so it will auto-reduce htmlWidth to 980.
in reply to: automatic scaling feature is not working January 22, 2015 at 16:32#29659Could you please publish an HTML code snippet and its PDF result to illustrate the issue?
BTW: have you tried v3.9.4?
in reply to: General questions / FAQ January 28, 2015 at 15:28#26988I have html page that occupy all page, and I adding footer to page when creating PDF. PDF file is not jumping to next page and last line is not showing.
in reply to: Troubleshooting January 29, 2015 at 11:09#26989Hello,
We recently updated to the version 3.9.4 DMS edition expecting to have list support on RTF. In the transformation to RTF for some reason some bullets are in Arial and others in Times New Roman.
The look and feel of the bullets is really different depending on the Microsof Office version.I tried to remove the font style (Arial,etc…) and then the bullets were correct, but we need the text in Arial.
Do you have any idea of why this is happening? any solution?
Thanks!
in reply to: HTML/CSS rendering issues January 29, 2015 at 16:31#26990Hi,
I try to convert this html code in pdf with pd4ml jar library:<br /> <html><br /> <head></head><br /> <body><br /> <p><br /> Š<br /> </p><br /> </body><br /> </html><br />
With 380 Pro version, Pd4ml renders it correctly, with the newest 394 (and with the prior 384), it’s not decode (render print “?” char).
Attached the pdfs.
Someone can help me?
in reply to: HTML special char not print with the newest Pd4ml 394v January 30, 2015 at 16:06#29665The problem reason is that recent PD4ML versions are more strict by character encoding conversion.
ISO-8859-1 (also called Latin-1) is identical to Windows-1252 (also called CP1252) except for the code points 128-159 (Š = 138). ISO-8859-1 assigns several control codes in this range. Windows-1252 has several characters, punctuation, arithmetic and business symbols assigned to these code points.
As I see you use Windows-1252 as default; PD4ML relies on ISO-8859-1.
A general solution for that type of issues is to utilize TTF embedding feature of PD4ML.
As long as you run DMS edition of PD4ML, the easiest workaround would be to enable PDF/A generation mode (make sure pd4ml_rc.jar is in the same directory with pd4ml.jar) with pd4ml.generatePdfa(true) API call.
in reply to: HTML special char not print with the newest Pd4ml 394v February 2, 2015 at 10:08in reply to: Problems with bullets in list, RTF file February 12, 2015 at 17:12#29661We still have no solution.
If you take a look at the RTF document source, you can see, all the bullets are defined absolutely identical way. But in MS Word some of them appears as they are defined with Times New Roman. The issue is not reproducible with OpenOffice.
Next days we’ll try to find a workaround, however it is still not obvious how.
in reply to: Mangal font support February 12, 2015 at 17:20#29640PD4ML does not support a ligaturizing of Hindi fonts.
If you point us to a good algorithm, which describes it, we’ll implement it on our code.
in reply to: It seems adjustHtmlWidth doesn’t work February 12, 2015 at 17:28#29594The issue is going to be solved with the forthcoming v395.
in reply to: Table of Contents Numbering off – BUG?? February 12, 2015 at 17:31#29632Forthcoming v395 is going to address the issue. If you send us (support pd4ml com) a document sample, we could test prior to the release if it solves the numbering problem in your particular case.
in reply to: Page is cut when is footer and html occupy all page. February 12, 2015 at 17:33#29660Forthcoming v395 is going to address the issue. If you send us (support pd4ml com) a document sample, we could test prior to the release if it solves the numbering problem in your particular case.
in reply to: BufferedImage via ImageIO not schow in firefox preview February 13, 2015 at 02:36#29429@jungbunzlav wrote:
Hi there,
I have some complex problem here with pd4ml 385fx2.
I am using pd4ml by the taglib approach rendering a pdf file.
The file contains a img tag which is refering to a Servlet which returns an BufferedImage (a barcode generated on the fly).
Without this call the pdf renders perfectly – with the call the pdf won’t be shown by the internal pdf viewer of firefox version 25. If I ‘download’ the pdf an open it via Acrobat Reader the pdf is shown perfectly.
So, only the BufferedImage prevents the pdf from beeing displayed by firefox’s internal pdf viewer.
Here is the code returned on the JSP of the called Servlet:
<br /> response.setContentType("image/png");<br /> BufferedImage image = getMyBufferedImage();<br /> OutputStream os = response.getOutputStream();<br /> ImageIO.write(image, "png", os);<br /> os.close();<br />
I think the ImageIO.write statement has some downfalls with pd4ml.
Any quick help?
Thanks
I have also experienced similar problems. The PDF and swf files with bar code images did not display on firefox, but it works correctly on safari. I really don’t know why?
-
AuthorPosts