Forum Replies Created

Viewing 15 posts - 166 through 180 (of 1,410 total)
  • Author
    Posts
  • #29873

    Hmm… It does not seem there is a simple way. If the feature is critical for you, contact support pd4ml com – we’ll see what could be done.

    in reply to: Unexpected charter , : Coming in Console
    #29875

    The warning is printed to console only when PD4ML’s debug output is switched on.
    // pd4ml.enableDebugInfo()

    You may either switch the debug off or fix the problem code in your HTML/CSS.

    The warning comes from CSS parser. usually it is caused by an unexpected comma in a selector.

    .classname , { property: value }

    in reply to: Validation of HTML CSS styles
    #29846

    I would recommend just to enclose your CSS style with HTML tags:

    <html>
    <head>
    <style>
    ... your CSS code here ...
    </style>
    </head>
    </html>

    If it is a standalone CSS stylesheet, refer to it with <link> tag from a minimalistic HTML as above.

    Pass the HTML to PD4ML in debug mode. PD4ML will dump to STDOUT all CSS syntax issues it detected.

    in reply to: Out of Memory – HTML to PDF
    #29882

    One year ago it was a report of a similar issue on
    JRE 1.7.0u67
    CentOS 6.6 x64

    The error had also been thrown by java.util.zip.Deflater. It is a very standard Java class and we did not touch the corresponding code probably since versions 2.x of PD4ML and never had troubles with it before.

    Last time we suspected a JDK installation inconsistencies (or may be even a palform-specific bug), occasionally hit by v3.6.1b1. A JDK re-install and a switching to v3.9.5 have solved the issue that time. But we did not determine what exactly was “the cure”. I would recommend to switch to PD4ML v398fx5; and if it does not help, to re-install the JDK.

    in reply to: Error: Can not open pdf files in adobe reader
    #29877

    It would help a lot if you capture and send to us a sample of “not-openable” PDF for an analyze.

    #29876

    The above code is correct, however the value probably is too small. It is in milliseconds and after conversion to int, passed to

    URLConnection.setConnectTimeout(connectionTimeout);
    URLConnection.setReadTimeout(connectionTimeout);

    in reply to: List problem with li:before
    #29872

    Unfortunately the current version of PD4ML supports almost nothing, from the CSS sample you sent.

    See https://pd4ml.com/css.htm

    in reply to: The header and footer are not getting rendered in pdf
    #29869

    Please post an HTML code snippet, to illustrate the issue.

    Also make sure you use PD4ML Pro (or derived PD4ML Volume). A regular PD4ML Std does not support images in headers/footer.

    in reply to: Background image not rendering in the pdf
    #29868

    The actual version of PD4ML does not allow to apply background images to tags. Use <div> instead (probably with “display: inline-block” style)

    #29616

    I’ve just inspected the current version. The output depends on “pd4ml.document.id” system property.

    String s = null;
    try {
    // A document ID override mostly makes sense for testing purposes.
    // Here it is used as a trigger to exclude version- and
    // environment- specific diagnostics info (to make possible a binary comparison of documents
    // produced, for example, on different platforms)
    s = System.getProperty("pd4ml.document.id");
    } catch ( Throwable e ) {
    }
    
    if ( s == null ) {
    callParameters.append( "% PD4ML version: " + getVersion() + "n" );
    callParameters.append( "% JDK version: " + System.getProperty( "java.version" ) + "n" );
    callParameters.append( "% OS version: " + System.getProperty( "os.name" ) + " " );
    callParameters.append( System.getProperty( "os.version" ) + "n" );
    }

    in reply to: How to render page with boostrap stylesheet by pd4ml?
    #29866

    Unfortunately current HTML/CSS support of PD4ML has its limitations and it renders not always perfectly when an HTML or CSS is created for an interactive web experience.

    For web site capturing tasks we develop PD4ML Web product (which is available separately, but will be an integral part of PD4ML v4)

    in reply to: How to center the result of ‘fitPageVertically’
    #28300

    As far as I remember last time we had troubles to implement that. I’ve reopened the ticket. We’ll see if we’ll have a luck this time.

    in reply to: Pd4ml Pro version TTF issue
    #29853

    > pd4ml.useTTF("C:EpicFontsabc.ttf", true);
    It will not work that way. It should always point to a font mapping .properties file or to a directory where pd4fonts.properties is.

    in reply to: Performance issue in PD4ML for .NET
    #29860

    This week we started a porting of v398fx4 to .NET platform. It will take few weeks to complete. During the porting we’ll pay attention to the performance issues you reported.

    in reply to: Can’t rotate my portrait PDF
    #29849

    impacts only next and subsequent pages. If you need the first page in landscape mode, specify that by pd4ml.setPageSize() API call or in corresponding PD4ML taglib’s attributes.

    (Note: works only in JSP context)

Viewing 15 posts - 166 through 180 (of 1,410 total)