Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #38232

    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));
    pd4ml.setHtmlWidth(1024);
    pd4ml.setPageSize(pd4ml.changePageOrientation(format)); 

    ..

    #38233

    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

    pd4ml.pd4mlNew.applyLicense(code);

    #39534

    Hi,
    I am using an evaluation license for PD4ML version 4.

    I am trying to convert an HTML document containing characters in various languages to PDF. Does the license allow it because it does not appear to be working and I see question mark signs instead of the actual characters.

    When I open the HTML document on the browser, it shows the characters correctly.

    Thanks

    #39535

    Question marks instead of international characters usually indicate that you have configured the TTF embedding feature incorrectly, and PD4ML can only use built-in Acrobat’s core fonts, which are limited to Latin charset.

    Obviously, the “Licensing/Purchasing” section is not the right place for such questions. Please ask in “Technical questions / Troubleshooting” next time

    #40431

    Hello Team,

    we have got username and password and activation key how to use in our maven structured project, I have followed steps mentioned in programmers manual, But dependency not being resolved.

    #41932

    Hello,

    Maven doesn't take repository credentials from pom.xml. They have to go into your settings.xml, in a [server] entry whose id is exactly the same as the id of the repository in your pom. A mismatch is the most common reason for "dependency could not be resolved" (401/403 or "not found").

    1) ~/.m2/settings.xml (use the username and password from your license e-mail):

    <settings>
      <servers>
        <server>
          <id>pd4ml</id>
          <username>YOUR_USERNAME</username>
          <password>YOUR_PASSWORD</password>
        </server>
      </servers>
    </settings>
    

    2) pom.xml (use the repository URL from the manual or your license e-mail. The URL below is only a placeholder, so replace it with yours):

    <repositories>
      <repository>
        <id>pd4ml</id>
        <url>REPOSITORY_URL_FROM_YOUR_LICENSE_EMAIL</url>
      </repository>
    </repositories>
    

    3) Force Maven to retry. Failed lookups are cached, so run this:

    mvn -U clean compile

    If you work in Eclipse, also use Maven > Update Project with "Force Update of Snapshots/Releases" ticked.

    Please also check these:
    – The artifact version in your dependency matches a version that exists in the repository. Your maintenance is valid until 2027-01-16.
    – Your build doesn't use a mirror with mirrorOf set to "*" in settings.xml. It would redirect the PD4ML repository to another server. Use mirrorOf "*,!pd4ml" instead.
    – The username and password have no typos, and special characters in the password are XML-escaped.

    The activation key is separate from Maven. It isn't used for downloading. It goes into the pd4ml.lic file, which must be in the application working directory or at the classpath root.

    If it still fails, please post the exact error from "mvn -U -X" (remove the password), your dependency and repository sections, and the PD4ML version you want to use. Then we can see where it breaks.

    Best regards,
    PD4ML Support

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.