Forum Replies Created

Viewing 15 posts - 4,186 through 4,200 (of 4,217 total)
  • Author
  • in reply to: Which licence should I purchase ?

    > Is it possible to convert PDF to PDF UA (accessible PDF) using PD4ML

    No. I am afraid this type of conversion is not possible robust automated way.

    PDF/UA requires a lot of additional information, normally missing in regular PDFs: alternative text description for all content portions, for visual elements and artifacts; requires structure information (tagging) for tables, lists, headings etc.
    By HTML-to-PDF conversion the info can be provided via HTML tag attributes, the structure info comes from the HTML document structure.

    in reply to: Licensing / Purchasing of PD4ML

    We have purchased the PD4ML V4 Java Single PRO License and plan to use it within the Eclipse environment on Java Module Projects. However, we are facing issues with activating the license. We are using the org.zefer.pd4ml.PD4ML class with the pd4ml-4.0.19fx1-jakarta.jar file. We chose not to use com.pd4ml.PD4ML as its structure is very different from that in org.zefer.pd4ml.PD4ML.

    Below is the code we use for PDF conversion, but we are still receiving a demo license warning. Despite meticulously following the instructions provided by the system, we have not been able to find a solution.

    Sample Code:
    org.zefer.pd4ml.PD4ML pd4ml = new org.zefer.pd4ml.PD4ML();
    pd4ml.setPageInsets(new Insets(15, 5, 10, 5));

    in reply to: License Activation

    Hi! Try to switch debug on with pd4ml.enableDebugInfo() API call and inspect STDOUT for possible license reading errors.

    pd4ml.lic is expected to be in the application workdir or in the classpath root (not in lib/ dir where pd4ml.jar is)

    Also even if you use legacy API with PD4ML v3 wrapper, you always have access to v4 instance with


    in reply to: Technical questions / Troubleshooting

    Hi PD4ML team,

    We are using an older version of pd4ml which is using JSP tags to convert HTML to PDF. Now we are planning to use the latest version of it but looks like the new tag library is not working.

    Do we have a working example of the latest version? We are trying 4.0.19fx1-jakarta version.

    Can you please help?


    in reply to: Technical questions / Troubleshooting


    on setting password in my test run on ubuntu i get every time i try to set a permission this below shown exception.

    doing this:
    pd4ml.setPermissions(if(password.trim.isEmpty) "empty" else password ,0xffffffff)
    I want to modify it with change permissions like this:
    pd4ml.setPermissions( "test", Constants.DefaultPermissions ^ Constants.AllowFillingForms )

    always getting the same error.

    java.lang.NullPointerException: Cannot read the array length because "buf" is null at java.base/<init>( at com.pd4ml.pdf.encryption.s.o00000(y:3227) at com.pd4ml.pdf.parser.obj.f.o00000(y:1998) at com.pd4ml.pdf.parser.d.o00000(y:1818) at com.pd4ml.pdf.parser.d.o00000(y:1849) atÒ00000(y:1055) at at com.pd4ml.PD4ML.writePDF(y:1482) at com.pd4ml.PD4ML.writePDF(y:151) at de.heilpraktikerelbmarsch.pdf.PDFPrinter.writePdf(PDFPrinter.scala:80) at$anonfun$generatePdf$10(PdfServiceController.scala:358)

    current version i am using: 4.1.0-SNAPSHOT

    in reply to: Licensing / Purchasing of PD4ML

    How can I get in touch with the vendor on PDF4ML enterprise license


    Hi! please contact sales @ pd4ml . com

    in reply to: Technical questions / Troubleshooting

    We are using the PD4ML Trasform tag in the jso to convert the page to PDF. The tag is causing the page to be reloaded in Safari browser. Basically the page is getting loaded twice.
    Please let me know if anyone has encountered this and if there is a fix.
    Note: It worked fine for me on Chrome but another user reported the reload on Chrome.
    Here is the tag that we are using:

    <%@ taglib uri=”; prefix=”pd4tl” %><%@page
    contentType=”text/html; charset=UTF-8″%><pd4tl:transform

    Thanks in advance.

    in reply to: PD4ML – Which licence key should we use

    Deciding which license key to use prompts considerations of compatibility, validity, and entitlements. It’s essential to choose the appropriate key that aligns with the product version and user requirements for seamless operation.

    in reply to: Technical questions / Troubleshooting

    The left-border in the table is cut-out by the parent div, but it should not since div and parent-div have same width.

    PD4ML v3 renders it correctly, but PD4ML v4 does not (it cuts out the border).

    The code follows. For the files, see attachments:
    – issue-1.html is the HTML source to be converted into PDF
    – issue-1-PDF4MLv3.pdf is the correct rendering made by version 3
    – issue-1-PDF4MLv4.pdf is the wrong rendering made by version 4

        public static void main(String[] args) throws Exception {
            PD4ML pd4ml = new PD4ML();
            pd4ml.setPageSize(new PageSize(595, 842));
            pd4ml.setPageMargins(new PageMargins(0, 0, 0, 0));
            pd4ml.generateForms(true, "sans-serif");
            String html = Files.readString(Paths.get("src/main/resources/sblend5.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);

    You must be logged in to view attached files.
    in reply to: Wrong clipping using “box-sizing:border-box” in CSS

    Since HTML file was rejected as attachment, here is the code:

    <?xml version="1.0" encoding="utf-8" ?>
    <!DOCTYPE html>
    <html lang="en">
        <meta charset="UTF-8">
            * {
            body, td, div, b, th {
                font-family: Arial, Helvetica, sans-serif;
            td {
                border: solid 1px #000000;
            table {
                border-spacing: 0;
                border-collapse: collapse;
            .fixed {
                height: 500px;
                overflow: hidden;
            .page {
                padding: 95px;
        <div class="page">
            <table style="width:100%">
                    <td style="border:none">TEST STRING</td><td>TEST STRING</td>
                    <td>TEST STRING</td><td>TEST STRING</td>
            <div class="fixed">
                <table style="width:100%">
                        <td style="border:none">TEST STRING</td><td>TEST STRING</td>
                        <td>TEST STRING</td><td>TEST STRING</td>

    in reply to: Technical questions / Troubleshooting

    We use Java 21 and Tomcat 9.
    There are two “versions” of the same “version”, one Jakarta and one not-Jakarta.

    Which are the differences?

    We use PD4MLv3 and there are:

    Which one is the correct one?

    in reply to: What is Jakarta version?

    The difference between the versions is in use of jakarta.servlet.* instead of javax.servlet.*. Both are built with Tomcat 9.0’s servlet-api.jar and jsp-api.jar

    If your environment is strict javax-less, use the jakarta version. If not, then the regular one since currently it is a bit advanced at the patch level.

    in reply to: Licensing / Purchasing of PD4ML

    Hi Team,

    I have to purchase license for below dependency.

    How can i purchase the license for this above dependency. Which license i should purchase Single, Site License or Enterprise ? I have a spring application where i just need to convert the html into pdf.


    in reply to: Technical questions / Troubleshooting


    I’ld like to know where exactly I can find documentation about all JSP custom tags (i.e. pd4ml:page.header etc.) and all their attributes, etc.

    On the programmers manual there are no details about.

    many thanks

    A. de Manzano

Viewing 15 posts - 4,186 through 4,200 (of 4,217 total)