Forum Replies Created

Viewing 15 posts - 3,166 through 3,180 (of 4,243 total)
  • Author
    Posts
  • 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: 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: 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)

    #29616

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

    [language=java:1hujfwlo]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” );
    }[/language:1hujfwlo]

    #29619

    At the time being, we use the release 3.9.6 and it’s work !

    The problem was the initialisation of the property.
    The property pd4ml.document.id must set before the “new PD4ML()” and not after.
    We fixed this and now it’s work perfectly.

    Thanks for your time and your response.

    Best regards,

    in reply to: HTML/CSS rendering issues
    #27068

    I have a problem where the background image is not getting rendered in the generated PDF. Sending the HTML and the css

    HTML





    Page #1 test Page #2 Page #3 Page #4

    CSS

    body { font-family: arial; }
    h1 { background-color:#CCC; border: 1px solid; color:#39F; text-align: center; }
    table { background-color: #F60; border: 1px solid #39F; width: 100%; }
    td { border: 0px; text-align: center; }
    p { color:#09F; text-indent: 20px; }
    .iconRequiredRight{
    background-image: url(“asterisk.gif”);
    background-color: #cccccc;
    }

    in reply to: PD4ML Tips & Tricks
    #27069

    Hello

    I am using Freemarker template to generate dynamic html. I have embedded the header and footer in the html, but they are not getting rendered in the pdf format. The header and footer have images.

    I am using v3.20.1 of pd4ml. Please let me know if this version supports images in header and 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

    instead (probably with “display: inline-block” style)

    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: General questions / FAQ
    #27070

    Hi,

    I am able to render Hebrew fonts in PDF usinf times.ttf in Windows but what is the Linux dejavu equivalent ttf files to render hebrew fonts. I used DejaVuSerif but it did not work.

    Can anyone tell me the ttf file required in Linux.

    Regards,
    Ranjana Sinha

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

    The version i am using is PD4ML v3.2.0 Pro. Does it support images in header and footer?

    I am not using it from html but from java. I used the following code for adding header, but the header is not getting added at all –

    PD4PageMark header = new PD4PageMark();
    header.setAreaHeight(30);
    header.setPageBackgroundColor(new Color(0x090000));
    pdfDoc.setPageHeader(header);

    in reply to: General questions / FAQ
    #27071

    Hello

    I have upgraded to jre1.7.0_91 for running the application. With this upgrade the PDF generation with PD4ML is failing. I am getting the below error in console –

    java.lang.InternalError.
    java.lang.InternalError
    at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:85)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
    at sun.awt.windows.WToolkit.getFontMetrics(WToolkit.java:596)
    at org.zefer.b.d.(Unknown Source)
    at org.zefer.c.i.super(Unknown Source)
    at org.zefer.d.c.m.╪00000(Unknown Source)
    at org.zefer.d.c.s.
    (Unknown Source)
    at org.zefer.d.c.n.╪╓0000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.super(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    Caused By: java.lang.ClassNotFoundException: sun.awt.X11FontManager
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:278)
    at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:82)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
    at sun.awt.windows.WToolkit.getFontMetrics(WToolkit.java:596)
    at org.zefer.b.d.(Unknown Source)
    at org.zefer.c.i.super(Unknown Source)
    at org.zefer.d.c.m.╪00000(Unknown Source)
    at org.zefer.d.c.s.
    (Unknown Source)
    at org.zefer.d.c.n.╪╓0000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.super(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)

    The same code was working with jre1.6.0_26. Please help me identify the issue.

    PD4ML version being used – Pro 3.2.0
    OS – Windows 7

    Tried installing java 1.7.0_91 and using it in compilation as well, but still facing the same issue. Will upgrading to latest PD4ML version help?

    in reply to: Encoding problem (pdf only)
    #29863

    @PD4ML wrote:

    …and make sure you use PD4ML Pro.
    PD4ML Std does not support national scripts.

    It is Pro version, because it render to RTF correct.
    The problem is only in PDF and only with h1-h6 tags and only with font-family: inherit;

    in reply to: HTML/CSS rendering issues
    #27072

    Hi,

    I want to add listings to pdf documents. Html provides

      /

        for that.

        But also a user can add sub or subsub listing and so on. So I add HTML CSS code:
        [language=CSS:22jmz9g8]ol.list_iNQvgxANSh {
        counter-reset:list_iNQvgxANSh;
        list-style-type:none;
        }
        ol.list_iNQvgxANSh li:before {
        content: counter(list_iNQvgxANSh,decimal) “)”;
        counter-increment:list_iNQvgxANSh;
        }[/language:22jmz9g8]

        But the result ist a listing without ANY sign. Is :before and :after supported?

    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 http://pd4ml.com/css.htm

Viewing 15 posts - 3,166 through 3,180 (of 4,243 total)