Forum Replies Created
-
AuthorPosts
-
in reply to: demo banners appear on code using v3 August 3, 2020 at 09:13#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 August 3, 2020 at 09:29#33946It 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 August 3, 2020 at 09:43#33947Ok 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 August 3, 2020 at 09:48#33948An 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 August 13, 2020 at 07:44#33949I 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.in reply to: How to check when there is no temp folder to use the font cache ? August 13, 2020 at 08:52#33953You 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 August 25, 2020 at 15:44#33954Evaluating 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? August 25, 2020 at 18:42#33957Hi!
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? August 25, 2020 at 18:55in reply to: Technical questions / Troubleshooting September 2, 2020 at 07:07#33959Hello, 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 September 2, 2020 at 10:17#33960Hi! We’ll investigate for possible workarounds. There is a couple of ideas…
in reply to: Zoom after click on internal link September 2, 2020 at 13:42#33961OK, thank you very much !
in reply to: How to check when there is no temp folder to use the font cache ? September 14, 2020 at 07:15#33962I 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?in reply to: How to check when there is no temp folder to use the font cache ? September 14, 2020 at 09:00#33963The temp dir is needed not by PD4ML itself, but by the font subsystem of JVM.
java.awt.Font.createFont()
createsjava.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 internaljava.awt.Font.createFont()
logic, it is only possible to re-define temp dir location withjava.io.tmpdir
system property.in reply to: How to check when there is no temp folder to use the font cache ? September 17, 2020 at 05:07#33964I understand your answer.
Thank you very much for your reply. -
AuthorPosts