Forum Replies Created

Viewing 15 posts - 3,781 through 3,795 (of 4,234 total)
  • Author
    Posts
  • in reply to: demo banners appear on code using v3
    #33945

    I am using 4.0.9-SNAPSHOT but I have the same issue. Where would store the pd4ml.lic ? I have store the .lic in my ressource classpath but I have same issue and pd4ml instance still in demo mode.

    in reply to: demo banners appear on code using v3
    #33946

    It is possible to store the .lic file to the classpath root, however there could be some not obvious issues (i.e. .lic file is loaded by different class loader than used by the PD4ML classes).

    As the first step try to save .lic file to the work dir of your application, point to the .lic file location with applyLicense() API call ( https://pd4ml.tech/javadoc/com/pd4ml/PD4ML.html#applyLicense-java.lang.String- ) and enable diagnostics output (pd4ml.setLogLevel(255)).

    If the demo banner has gone, remove the applyLicense() call: the work dir is a location, where it tries to find the file by default.

    If the banner is still there, inspect the diagnostics output for possible issues

    in reply to: Cannot acces to source repository
    #33947

    Ok thanks, but I have purchased this license PD4ML Java Site PRO License. https://pd4ml.tech/maven2-src/ is accessible for all license ?

    in reply to: Cannot acces to source repository
    #33948

    An access to the product source code is an additional option for PD4ML Site DMS and UA licenses. See https://pd4ml.tech/products/

    You may upgrade to PD4ML Site DMS/SRC by paying the license list price difference.

    in reply to: Technical questions / Troubleshooting
    #33949

    I created a pdf.
    But I found out that the fonts were broken.
    The cause was missing temp folder in tomcat was.
    If the font is not loaded, we would like to process an exception to prevent pdf generation.

    To sum up
    Read the font to generate a pdf.
    I wnat to check if there is no temp folder for reading font
    or if I don’t have the right to read temp folder.

    Attachments:
    You must be logged in to view attached files.
    #33953

    You can determine the actual temp dir location by an inspecting of the system property System.getProperty("java.io.tmpdir");. Also you may override the property with JVM command-line parameter.

    However in your particular case the problem reason seems to be other: try to explicitly define the document encoding. Now your on screenshots it looks like a two-bytes encoding is treated as a default single byte encoding (ISO-8859-1) – that causes the garbage texts in the output.

    in reply to: Technical questions / Troubleshooting
    #33954

    Evaluating pd4ml and trying to apply the license information but still getting inverted page with demo banner.

    It’s a small web app using Maven / Spring Boot. 4.0.9 and 4.0.9-SNAPSHOT tried.

    Tried to add license file to various locations in the classpath and then apply with pd4ml.applyLicense(‘pd4ml.lic’) but code can’t find the license file (set log level to 255).

    I’ve also tried to supply the license as a string to the constructor of pdf4ml, but same result there.

    String license = "xxxxxxx"; PD4ML pd4ml = new PD4ML(license);

    Any clues or pointers where to look?

    in reply to: How to apply the demo license?
    #33957

    Hi!
    You did everything correctly. If you do not apply an evaluation license, PD4ML is in demo mode. The difference between demo and evaluation mode is not that big: the banner is not suppressed, but it is not annoyingly contrast. And there are few minor differences.

    Is the banner “demo mode” or “evaluation mode”?

    BTW: I’ve just tested your license code and it appears to be valid.

    > getting inverted page with demo banner

    “inverted page” sounds as a program issue. Could you please email us an HTML sample and its resulting PDF tp helpdesk pd4ml com?

    in reply to: How to apply the demo license?
    #33958

    Hi!

    It’s “evaluation mode”

    Great – I’ll email you the details! Thanks.

    in reply to: Technical questions / Troubleshooting
    #33959

    Hello, I have a problem with my table of content behavior, and I find nowhere how to solve it.

    First, I use an autogenerated toc as the following :
    <div id="toc"> <header>Table of content</header> <pd4ml:toc> </div>

    Everything works fine.

    My issue scenario is :
    I open my PDF (with Acrobat Reader, and others non-web browser embedded readers),
    I change the zoom (full page, 100%, whatever),
    I scroll to the Table of content,
    I click on a link.

    The scroll goes to the right page : OK !
    The zoom is reset to the very first value : my issue.

    Do you know how to solve it ?

    Thank you.

    in reply to: Zoom after click on internal link
    #33960

    Hi! We’ll investigate for possible workarounds. There is a couple of ideas…

    in reply to: Zoom after click on internal link
    #33961

    OK, thank you very much !

    #33962

    I tested it when there was and when there was no temp folder.
    If there is no temp folder, pd4ml cannot read font. If there is a temp folder, read font normally.
    Can you confirm the failure to read the font with api?

    #33963

    The temp dir is needed not by PD4ML itself, but by the font subsystem of JVM.

    java.awt.Font.createFont() creates java.awt.Font instance from a given byte array, but as a rule (obviously it is platform-dependent) it needs to create a corresponding font file in the temp dir. We cannot control the internal java.awt.Font.createFont() logic, it is only possible to re-define temp dir location with java.io.tmpdir system property.

    #33964

    I understand your answer.
    Thank you very much for your reply.

Viewing 15 posts - 3,781 through 3,795 (of 4,234 total)