Forum Replies Created

Viewing 15 posts - 496 through 510 (of 583 total)
  • Author
    Posts
  • in reply to: font rendering issue
    #28116

    Thanks for your help!

    Did that already, din’t help much, some text started appearing in bold, and some in Italic randomly, not the o/p we expected. I put that way with the backslashes deliberately ‘coz I thought the script considered the exact font-name “as is” in the properties file – desperate measure – but din’t work out!

    Please if someone can help us with this; we are really looking forward to buying the paid version.

    @Guest wrote:

    In HTML you do not need to escape spaces with backslashes. So try to remove all backslashes from face attribute values.
    Now:
    <font face="Myriad Pro Light">
    Should be:
    <font face="Myriad Pro Light">

    in reply to: font rendering issue
    #28115

    In HTML you do not need to escape spaces with backslashes. So try to remove all backslashes from face attribute values.
    Now:
    <font face="Myriad Pro Light">
    Should be:
    <font face="Myriad Pro Light">

    in reply to: About text-indent
    #27924

    1st of May would be ok 🙂 We would not need it sooner.

    Thanks.

    in reply to: PD4PageMark doesn’t align tables
    #27806

    Forget about it. The table was to small.

    Problem solved.

    in reply to: Incorrect layout in generated PDF
    #27994

    Thanks. I was sure I had tried that, but I guess I must not have.

    #28090

    I’ve been able to the use CCS style for Arabic:

    text-align: right;

    Although I have been having issues with the table of contents when working with true type fonts.

    #28088

    I’ve paid fro a Pro license. Could I get a response to this please?

    Steph.

    in reply to: Caching policy
    #27967

    Please share us the details of method for local caching, can we specify the location for caching.

    in reply to: TTF not working with Pro version also footer not working
    #28082

    thanks, the fonts are working now that I put in the full path to the jre/libs/fonts folder. rtfm.

    However the footer is still problematic. With this source code:

    footer.setPagesToSkip(2);
    footer.setAreaHeight( 50 );
    footer.setHtmlTemplate("<b>Footer test</b><br>" + "${page} of ${total}" );

    What happens is the htmltemplate does skip the first 2 pages but the area height does not.

    I want to fill up the entire page with a graphic in the first 2 pages and then only from pages 3 onwards must the footer area height be set. Is this possible?

    Either that or can I create a separate footer for the first 2 pages which I will fill up with a graphic?

    in reply to: uncorrect size for image
    #27818

    I believe I am having a similar problem. All of my images are pixelated. Did you/anyone find a fix for this?

    Thanks in advance for any help with this.

    in reply to: CSS Styles aren’t applied, can someone help me?
    #28063

    I’m having the same problem. Will you please give details on where you used absolute paths? Thanks.

    in reply to: CSS Styles aren’t applied, can someone help me?
    #28062

    Finally.

    using useServletContext() and absolute paths resolved my issues.

    in reply to: CSS Styles aren’t applied, can someone help me?
    #28060

    Any resolution to this? I’m having the exact same problem today.

    I’ve had success in the past using the JSP transform tag and it handled all references to CSS perfectly. But now, I’m trying to solve a problem that requires that I perform programmatic conversion of an HTML string in the same manner stated by the original poster and no matter what I try my CSS is ignored.

    These are the things that I have tried:

    1) Used the pd4ml.addStyle(<url>,true), where <url> was a fully qualified path to the resource. Debugging showed that the css resource was found and brought into the cache, yet the styles were not applied.

    2) Used the pd4ml.addStyle(<String>, true), where <string> held all of the styles in my CSS file. Styles were not applied.

    3) Included a stylesheet link tag in the head element of my HTML string with a fully qualified path to the CSS resource. Again, debug says that the css was found and brought into the cache, but styles were not applied.

    Steph.

    Steph.

    in reply to: CSS Styles aren’t applied, can someone help me?
    #28059

    Thanks for your help PD4ML.

    I followed your instructions and am now passing the base URL to the render method. I also have debugging turned on. BTW, I am using the Pro version.

    Now when I do the conversion I get the following in the logs:

    version: PD4ML 351 Pro
    loading CSS file http://<someURL>/css.css
    not yet in cache: http://<someURL>/css.css
    image not yet in cache: http://<someURL>/images/<imagePath.image.gif>
    not yet in cache: http://<someURL>/images/<imagePath.image.gif>
    
    image size: 391
    done in 1938ms.

    These logs would seem to me that everything was a success but the rendered PDF still doesn’t have the styles applied.

    There are also inline styles applied plus the CSS file. Is this disabling the application of the styles?

    Thanks for any help with this.

    in reply to: uncorrect size for image
    #27817

    I think this is an issue of DPI. PD4ML seems to increase the image size by about 20%.

    What DPI does PD4ML render at?

    If I know that, I can potentially specify a smaller-than-normal height and width for the images in my image tags, so they render properly.

    To test this, try rendering any image and you will notice it’s larger on the PDF than on the web page, causing it to be pixelated.
    Like so:
    Image from the forum topic: uncorrect size for image

    (Haven’t tried it without the width/height specified – could that be the cause?)

Viewing 15 posts - 496 through 510 (of 583 total)