Forum Replies Created

Viewing 15 posts - 526 through 540 (of 1,410 total)
  • Author
    Posts
  • in reply to: Problem with displaying image with external link
    #29256

    If you open the HTML in a web browser, web browser establishes a connection to load HTML itself and establishes connections to load referenced images.

    When you request Weblogic to generate a PDF, your web browser establishes a connection to load PDF, but connections to load images are initiated by Weblogic.

    Usual problem reason: Weblogic server has no routing to the image locations. Please make sure the server, where Weblogic runs, can resolve the image location addresses and has a routing to the image server.

    A switching of debug info on (pd4ml.enableDebugInfo()) and analyzing Weblogic’s log can help.

    in reply to: Sample code generating blank pages
    #29250

    try to add encoding=”default” attribute to <pd4ml:transform>

    in reply to: Sample code generating blank pages
    #29248

    Unfortunately you did not provide more details regarding your test scenario and environment.

    A typical reason of blank pages is a binary data corruption (by an implicit applying of character encoding conversion to a binary document) by a saving or sending a PDF to HTTP. For example:

    pdf-generation-troubleshooting-f4/pdf-pages-are-all-blank-t680.html

    If it is definitely not your case, please publish the HTML, PDF samples and Java code you run.

    in reply to: Problem relating to formatting
    #29247

    Do you use “TTF Embedding” feature of PD4ML? If not, Acroread uses its built-in PostScript Type 1 fonts, whose metrics may slightly differ from TTFs.

    in reply to: PDF Styling Problems
    #29234

    Without the styles the HTML appears as a number of text portions, placed to cells of a borderless table. There is no easy way to analyse a correctness of positioning and paddings.

    As I see you use a relatively old version of PD4ML. Give a try to the most recent v381 – probably the issues, you faced with, are already solved.

    in reply to: PDF Styling Problems
    #29232

    I would suspect the following stylesheets does not load:

    <link rel="stylesheet" type="text/css" href="http://localhost:30303/logeye/css/mainproduct.css?buildNumber=3500" />
    <link rel="stylesheet" type="text/css" href="http://localhost:30303/logeye/css/components.css?buildNumber=3500" />
    <link rel="stylesheet" type="text/css" href="http://localhost:30303/logeye/css/search.css?buildNumber=3500" />

    In order to analyze a reason of that, try to enable debug info (pd4ml.enableDebugInfo()) and inspect STDOUT/server’s log

    in reply to: Mutiple page creation
    #29246

    PD4ML will start new page automatically, when document content does not fit current one.

    If you need to force a page break, you may either use our proprietary tag

    or to use CSS style
    page-break-before: always
    applied to a block element (i.e. <div>) or to
    .

    in reply to: PDF Styling Problems
    #29230

    HTML, of course. Or both HTML and PDF.

    Is the email bounced by our or your mail server?

    in reply to: PDF Styling Problems
    #29228

    Just publish a sample of your docs here or send to support pd4ml com – we’ll check what is wrong with it.

    in reply to: Images not working
    #27451

    what does it print to STDOUT/server’s log if you enable debug info?

    in reply to: Images Not Displaying
    #29240

    If you use PD4ML API it is obvious: you trigger the method of PD4ML instance.

    In a case of PD4ML taglib, you can switch debug output on with debug=”true” attribute of <pd4ml:transform>

    In command-line scenario it can be done with -debug parameter.

    in reply to: Images Not Displaying
    #29238

    The following info is a good starting point to debug:
    https://pd4ml.com/cookbook/pd4ml_document_images.htm

    #29243

    HTML rendering (especially of that big docs) is a resource consuming task. We recommend to set at least 512m, but 1gig is better.

    It does not mean JVM immediately allocates the memory – it only defines a limit for peak cases.

    in reply to: Cant render into PNG when inside server code
    #29237

    You are right: to perform HTML->Image conversion you need PD4ML Pro (or any derived volume license library).

    As I see in your code sample there is pd4ml.enableDebugInfo() call. It should report to STDOUT/server’s log the following message:

    if ( debug && !isPro() ) {
    System.err.println( "WARNING: outputFormat() takes no effect in non-Pro PD4ML versions" );
    }

    #29241

    Did you override the default max heap size with -Xmx???m JVM command line parameter? The default value as a rule is not sufficient for HTML rendering.

Viewing 15 posts - 526 through 540 (of 1,410 total)