Forum Replies Created

Viewing 15 posts - 4,096 through 4,110 (of 4,234 total)
  • Author
    Posts
  • #36925

    Thank you very much for your answer. I have moved the pd4ml-4.0.16.jar from the application/lib directory to the WEB-INF/lib.
    Unfortunately the result is the same! The same exception again and again:

    java.net.MalformedURLException: SRVE0238E: Resource paths must contain a preceding slash.
    at com.ibm.ws.webcontainer.webapp.WebApp.getResource(WebApp.java:2453)
    at com.ibm.ws.webcontainer.webapp.WebApp.getResourceAsStream(WebApp.java:2419)
    at com.pd4ml.cache.ServletResourceProvider.getResourceAsStream(y:1928)
    at com.pd4ml.ResourceProvider.getResourceAsBytes(y:2080)

    in reply to: Technical questions / Troubleshooting
    #37049

    Hi,

    We encountered an issue while generating a PDF from an HTML with big headers/footers. If there is no enough space on the page for displaying them, the PDF generation stucks and the process never ends. Could you please investigate ?

    Attachments:
    You must be logged in to view attached files.
    in reply to: Technical questions / Troubleshooting
    #37084

    Hi,

    I have an Evaluation license and are see a yellow box around a attachments paperclip, the attachment can’t be opened.
    Is this a restriction of this license?

    Thanks

    Attachments:
    You must be logged in to view attached files.
    in reply to: Attachments in Evaluation Mode
    #37086

    Hi! Is it reproducible only in a particular Web browser or it appears like that also in Acrobat Reader?
    Could you please share with us a minimalistic PDF sample to illustrate the issue?

    in reply to: Attachments in Evaluation Mode
    #37087

    Hi,

    attached is a sample, the attachment only opens in Acrobat Reader; It is not in Edge, Chrome and Safari don’t.

    This is how I attached the file, it’s straight from the example from the pd4ml documentation.
    pd4ml.injectHtml(“


    + “<pd4ml:attachment style=\”align: right\” type=\”paperclip\” description=\”test-image.jpg\” src=\”c:\\temp\\test-image.jpg\”/>”
    + “

    “, false);

    Is there a way to make this work in web browsers?
    Thanks
    Bernd

    Attachments:
    You must be logged in to view attached files.
    in reply to: Attachments in Evaluation Mode
    #37089

    This is the full code used for above pdf:

    PD4ML pd4ml = new PD4ML();
    pd4ml.applyLicense(“xxxxx”);
    pd4ml.setAuthorName(“yyyyy”);
    pd4ml.setDocumentTitle(“zzzzz”);
    pd4ml.enableHyperlinks(false);
    pd4ml.setHtmlWidth(1000);
    //authenticate
    pd4ml.setHttpOptions(null,”user:pwd”);

    // add attachments
    pd4ml.injectHtml(“


    + “<pd4ml:attachment style=\”align: right\” type=\”paperclip\” description=\”test-image.jpg\” src=\”c:\\temp\\test-image.jpg\”/>”
    + “

    “, false);
    // get html
    pd4ml.readHTML(new URL(“https:aaaaaaaaaaaaaaaa/02E1B2F?OpenDocument”));
    // write pdf
    File pdf = new File(“c:\\temp\\000018.pdf”);
    FileOutputStream fos = new FileOutputStream(pdf);
    // render and write the result as PDF
    pd4ml.writePDF(fos);

    in reply to: Attachments in Evaluation Mode
    #37103

    We need time to investigate. A few years ago, built-in PDF viewers in web browsers did not support PDF annotations at all (technically, a PDF attachment is a type of PDF annotation). There is partial support now, but it appears that Acroread is still the only reliable way to work with PDF attachments.

    in reply to: Attachments in Evaluation Mode
    #37104

    Thanks,

    that’s alright, no pressure.
    We have a workaround and will not include attachments for now, but it would be great if attachments work in web browsers.

    Thanks
    Bernd

    in reply to: Technical questions / Troubleshooting
    #37107

    Hi, I have this code:

    public static void main(String[] args) throws Exception { PD4ML pd4ml = new PD4ML(); pd4ml.applyLicense("license......"); pd4ml.setHtmlWidth(300); pd4ml.useTTF("src/main/resources/fonts"); String html = Files.readString(Paths.get("src/main/resources/sblend.html")); ByteArrayInputStream bais = new ByteArrayInputStream(html.getBytes("UTF-8")); pd4ml.readHTML(bais, null, "utf-8"); File pdf = File.createTempFile("result", ".pdf"); FileOutputStream fos = new FileOutputStream(pdf); pd4ml.writePDF(fos); Desktop.getDesktop().open(pdf); }

    This code refers to this HTML file:
    <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> Ciao perché cioè 笔记本/筆記本 ерберта Уэллса, часто именуемое романом. Публиковалось с продолжением в 1904—1905 годах; книжное изда </body> </html>

    If you open it through a browser, you see (see attachment 1: browser.png).

    If you open it through PD4ML, you see (see attachment 2: pd4ml.pdf)

    So: the characters which are cyrillic or chinese are all rendered as question marks (“?”).

    How can we solve the problem?

    Attachments:
    You must be logged in to view attached files.
    in reply to: UTF-8 support missing in PD4ML v4.0.17
    #37110

    The attached PDF is a typical result of PDF conversion, when no TTF embedding feature configured.

    Did you have a chance to take a look at

    How to configure PDF fonts

    PD4ML Fonts Tool


    ?

    in reply to: Technical questions / Troubleshooting
    #37197

    Facebook 24/7 customer service is a crucial aspect of the platform that ensures user satisfaction and support. The availability of round-the-clock assistance allows users to seek immediate help and resolve any issues they may encounter while using Facebook. This service provides a convenient and efficient way for users to get in touch with customer support representatives who can offer solutions and address their concerns promptly. By offering 24/7 customer service, Facebook demonstrates its commitment to providing a positive user experience and maintaining a high level of customer satisfaction.

    in reply to: Tomcat 10 Jakarta Multithread problem
    #37202

    Please! We are still waiting for a solution, at least a response. Since 08/15 we don’t hear anything from you. This problem is hitting us in production environment.

    in reply to: Tomcat 10 Jakarta Multithread problem
    #37203

    Sorry for the silence! We’ll provide you with an update at latest on Monday

    in reply to: PD4ML PRO site license
    #37246

    I appreciate your quick responses.

    in reply to: Technical questions / Troubleshooting
    #37254

    Hi,
    we are in the process of migrating to Tomcat 10.
    Would it be possible to provide a version for the jakarta namespace for PD4ML v4.0.17?
    (and possibly for new versions in the future)

Viewing 15 posts - 4,096 through 4,110 (of 4,234 total)