Forum Replies Created

Viewing 15 posts - 916 through 930 (of 1,410 total)
  • Author
    Posts
  • in reply to: Dynamic font substitution logic does not work for me?
    #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?
    #28509

    In 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
    #28476

    Before

    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
    #28473

    Below 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?
    #28506

    For 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
    #28508

    My 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
    #28504

    ok. 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
    #28501

    The 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
    #28502

    There 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.

    #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
    #28493

    Obviously 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 Image from the forum topic: PDF output does not render images correctly height/width attributes unchanged) as it described there:
    pdf-generation-troubleshooting-f4/prevent-images-being-scaled-t38.html

    in reply to: png images errors while parsing
    #28470

    Unfortunately there is no PNG attached.

    Could you please try to attach once more?

    Thanks.

    in reply to: PDF output does not render images correctly
    #28490

    As 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
    #28496

    With 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
    #28488

    There are 3 ways to define headers and footers in PD4ML:
    html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.html

    The 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.

Viewing 15 posts - 916 through 930 (of 1,410 total)