Forum Replies Created
-
AuthorPosts
-
in reply to: Dynamic font substitution logic does not work for me? April 15, 2011 at 14:37#28511
Try to switch PD4ML debug on and inspect STDOUT/server’s log. Does it tries to load TTF files at all?
in reply to: Dynamic font substitution logic does not work for me? April 14, 2011 at 19:47#28509In order to find an appropriate font to display a text string, PD4ML walks the following lists:
private static String[] serifFallback = new String[] { "Times New Roman", "MS Mincho", "MingLiU", "SimSun", "Mangal", "David", "Batang", "Wingdings", "Symbol", "Lucida Sans Regular", }; private static String[] sansFallback = new String[] { "Arial", "MS Gothic", "MingLiU", "SimSun", "Mangal", "David", "Gulim", "Wingdings", "Symbol", "Lucida Sans Regular", }; private static String[] monoFallback = new String[] { "Courier New", "MS Gothic", "MingLiU", "SimSun", "Mangal", "David", "GulimChe", "Wingdings", "Symbol", "Lucida Sans Regular", };I guess, in your case an existence of SimSun among available fonts should help.
in reply to: png images errors while parsing April 14, 2011 at 19:04#28476Before
pd4ml.render();call in your servlet code you need to invoke
pd4ml.useHttpRequest(httpRequest, httpResponse);(where parameters are HttpServletRequest httpRequest and HttpServletResponse httpResponse)
in reply to: png images errors while parsing April 12, 2011 at 13:03#28473Below is a copy of email sent to your email address (alrewards.com) on Apr. 07, 2011
I had no problems to convert an HTML with your image to PDF (see attached).
Is it exactly the same image, that caused the problem? As I see in your HTML sample there is no test_png.png reference.
Also in the servlet code please try to invoke
https://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#useHttpRequest(HttpServletRequest,%20HttpServletResponse)
method before pd4ml.render()Does it change anything?
in reply to: What should i do to render thead column on every page? April 12, 2011 at 12:54#28506For the time being PD4ML does not support THEAD tag.
But you may achieve the needed behavior if you trigger pd4ml.enableSmartTableBreaks(). If will reproduce table headers (leading table rows consist of TH elements only) on each relevant page.
in reply to: Delay in PDF generation at Node2 April 12, 2011 at 12:50#28508My first suspect is network delays.
Does the source HTML refer any external resources (images or stylesheets)?
If so, try to enable debug info and check in real time server’s log (during the 20 mins) – do the resource loading records appear as quick as expected?in reply to: link tag in head not working April 12, 2011 at 08:25#28504ok. Try to switch debug info on (pd4ml.enableDebugInfo() or
<pd4ml:transform ... debug="true">) and check server’s log if it tries to load the stylesheet at all.in reply to: GTEQ/LTEQ signs do not render April 11, 2011 at 15:43#28501The characters does not belong to the default ISO8859_1 character set.
So in order to output the characters you need to configure and utilize TTF embedding feature of PD4ML Pro
in reply to: link tag in head not working April 11, 2011 at 15:23#28502There is no functional differences in full and demo versions except the demo version watermarks the resulting documents.
In general the tag should work. But:
– HTTPS is not supported if PD4ML is deployed to Weblogic or WebSphere, as the application servers implement proprietary SSL level, not derived from Java’s SSL implementation. Solution: to implement a custom resource loader, utilizes platform specific SSL classes. Or even better – use HTTP instead of HTTPS.– Make sure the valid path is valid not only from browser, but also from the server where PD4ML deployed to. A usual situation: the server cannot resolve host name etc. Try to enable PD4ML debug output and inspect server’s log for errors.
in reply to: PD4ML failed to load Servlet Dynamically generated JPG File April 11, 2011 at 15:15#28306> Copying the url into the browser correctly brings back the image.
PD4ML supports only JPEG, PNG and GIF. First please make sure, the image is of the supported formats.
Also if the image generation requires a session context, you need to make sure SESSIONID is propagated to the image generation servlet.
in reply to: PDF output does not render images correctly April 11, 2011 at 13:45#28493Obviously the only problem is the original image dimensions. The image itself is too small and Acroread’s image scaling routines cannot produce anything acceptable from it.
Unfortunately from PDF we cannot choose applied image scaling algorithm. The only available PDF option is to force to interpolate the image, which usually gives even worse result (when applied to tiny images).
As a workaround I would recommend to generate images with greater dimensions (keeping
height/width attributes unchanged) as it described there:
pdf-generation-troubleshooting-f4/prevent-images-being-scaled-t38.htmlin reply to: png images errors while parsing April 6, 2011 at 13:34in reply to: PDF output does not render images correctly April 1, 2011 at 12:20#28490As I see in the HTML source there is a lot of JavaScript code to manipulate images. Please take into account: PD4ML does not support JavaScript.
Try to switch debug on (pd4ml.enableDebugInfo()) and inspect STDOUT/server’s log.
Does it try to load the images at all?
Are the requested URLs correct?in reply to: CSS Text Rotation March 25, 2011 at 16:40#28496With some restrictions a similar can be achieved with writing-mode: tb-rl CSS style.
For example:
<table border=1 width=200 height=100> <tr> <td style="writing-mode:tb-rl"> TEST </td> </tr> </table>
in reply to: Byte stream output and header/footer content height March 24, 2011 at 11:27#28488There are 3 ways to define headers and footers in PD4ML:
html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.htmlThe first 2 options preallocate space on each page.
The third option allocates header or footer space dynamically. It also allows to change or disable/enable header and footer from page to page. -
AuthorPosts
