Forum Replies Created

Viewing 15 posts - 196 through 210 (of 4,250 total)
  • Author
    Posts
  • in reply to: Date Formatting problems
    #27543

    Hmm… Here I can only guess. Of course, PD4ML does not try to logically interpret source documents and recognize date info there.

    Obviously the source HTML is generated dynamically. The web resource (JSP, PHP etc), which generates the HTML probably takes care about locale info comes with HTTP request.

    PD4ML does not send any locale info, so the page is generated with the locale defaults.

    P.S. Sorry for the delay with the reply.

    in reply to: font-size=x-large
    #27549

    Thanks for the reply and sorry about the typo.

    Here is a test case<br /> <html><br /> <head><br /> <style><br /> <br /> .problem_style p, span {<br /> font-size: inherit;<br /> }<br /> <br /> </style><br /> </head><br /> <br /> <body><br /> <br /> <div><br /> <span style="font-size: xx-large;"><br /> <span style="text-decoration: underline;"><br /> <em><strong>456</strong></em><br /> </span><br /> </span><br /> </div><br /> <br /> </body><br /> </html><br />

    Converting this to PDF will lose the font size. Through trial and error I found two tweaks can work around the problem
    1. remove the problem_stype
    2. swap the order of the two spans, i.e. <br /> <span style="text-decoration: underline;"><br /> <span style="font-size: xx-large;"><br />

    Unfortunately, I do need the style for the page, and the content is created from a 3rd party rich text editor. Therefore I could use neither work-around.

    Do you have any suggestions how I can make this work?

    Again, thanks in advance for any tips.

    — jerry

    in reply to: General questions / FAQ
    #26274

    Hi

    My PDF renders setting the background image (letterhead) but its placing itself on top of everything. If I open the PDF in illustrator I can see the content underneath and I can even select the text in acrobat but the background image is always on top 🙁 Any ideas?

    Jason

    in reply to: HTML/CSS rendering issues
    #26275

    I am enabling the property page-break-inside: avoid using
    pd4ml.enableTableBreaks(true) but still last line in the row in the table is spilled over to the next page.

    Thanks In Advance.

    in reply to: page-break-inside: avoid Not Working
    #27554

    This is the code i am using

    PD4ML converter = new PD4ML() ;
    converter.setHtmlWidth(745) ;
    converter.enableTableBreaks(true) ;

    converter.render(…) ;

    Still the Table row

    that only consist of 3 lines on my generated document got split within two pages, One line on first page and remaining 2 lines on next page.

    Does this functionality works in PD4ML, as stated by supported CSS properties page ? If yes, how ?

    Thanks for your help.

    in reply to: page-break-inside: avoid Not Working
    #27555

    It should work. Howerver there are some exceptions. For example if a row height is greater than page height. Of course, in the case it splits.

    Please send to support email an HTML and PDF samples, which illustrate the issue. Thanks.

    in reply to: Background Image
    #27553

    The issue is introduced in one of v351 betas. It is going to be fixed with the forthcomming release.

    in reply to: font-size=x-large
    #27550

    We’ll address the issue on Monday.

    in reply to: font-size=x-large
    #27551

    Just-published v351b17 should fix the problem.

    in reply to: General questions / FAQ
    #26276

    Hello.

    Is it possible to attach an existing PDF to the one generated by PD4ML on-the-fly?

    We need to attach an already exisitig PDF document at the end of the generated by PD4ML (it is very complex to reproduce in HTML to be re-rendered).

    Thanks in advance!

    in reply to: Attach another PDF document in the resulting one
    #27559

    For the time being the only way to merge PD4ML output with an existing PDF is to use a third party tool: for example, great open source iText library.

    in reply to: Attach another PDF document in the resulting one
    #27560

    @PD4ML wrote:

    For the time being the only way to merge PD4ML output with an existing PDF is to use a third party tool: for example, great open source iText library.

    Understood. Thanks for your quick response, and thanks for the tip.

    J.

    in reply to: CSS Issues – possible other java css parser?
    #27398

    PD4ML can read source HTML from file, URL or Stream (Reader). Any of the methods works well. If you stream HTML, you may

    • define CSS style inline with
    • use fully specified stylesheet URL (in tag)
    • use reletive path to stylesheet (in the case you need to use render() method with URL base parameter or to specify the base with tag in HTML)
    • explicitly pass style with addStyle() API call
    in reply to: HTML/CSS rendering issues
    #26279

    Hi,

    I am having a problem with using a URL that is of type https. If I change the src to a none secure website URL it works fine.
    The html generated renders fine in the browser but when pd4ml library generates the pdf the images are not rendered …

    This is quite important to us and may lead to the purchase of an unlimited licence as we will need this library on several servers but 9/10 servers have an SSL cert …

    Any help would be great.

    Thanks,

    Nick

    Snip of HTML:

    [language=xml:1xlgopq4]

    [/language:1xlgopq4]

    in reply to: IMG tag with SRC – HTTPS://
    #27583

    “Officially” PD4ML does not support SSL, however it tries to load SSL resources with the standard SSL interfaces of JDK.

    Often it works well, but there are some application servers (Weblogic, WebSphere,…), which implement proprietary SSL classes, not derived from the standard ones. If PD4ML is deployed to a such server it fails to load external HTTPS resources (internally it throws ClassCastException).

    It it is your case, as a workaround we would recommend to develop a custom SSL resource loader, which consumes the proprietary SSL classes.

    Some info about PD4ML custom resource loaders:
    pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html

    Please contact PD4ML support by email if you need further assistance with the loaders.

Viewing 15 posts - 196 through 210 (of 4,250 total)