Forum Replies Created
-
AuthorPosts
-
in reply to: Creating a custom resource loader for https only? October 1, 2015 at 15:48#29795
In general PD4ML should work correctly with HTTPS resources by default without custom resource loaders.
The only exceptions are Weblogic and WebSphere, which implement proprietary SSL layers, not derived from the standard Java classes (and cause ClassCastException)
in reply to: How to add inline footer to last page only? October 1, 2015 at 15:25#29824PD4ML API/custom tags allow to define a scope for page header/footer. For example: scope=”1,2″, scope=”2+”, scope=”even”, scope=”skiplast”.
scope=”last” support is problematic to implement. In an extreme case the last page may have no space to place a footer: it should force a page break and the trailing footer goes to new page with no content, which is undesired.
In order to prevent it you may use a conditional page break to move some content (to make the last page not totally blank) and a footnote.
Example:
.... .... text text text ... the last text section... .... .... totals section
The page break will take effect only if the remaining vertical page space is less than 200px (and the last text section + footnote do not presumably fit it)
ifSpaceBelowLessThan parameter value for your document structure/layout needs to be found an empiric way.
in reply to: ByteArray loading of PD4ML October 1, 2015 at 15:04#29836Could you please send a corrupted PDF sample to support pd4ml com?
Also:
1. In the section only the last setPermissions() call takes effect:
pd4ml.setPermissions("empty", PD4Constants.AllowPrint, true); pd4ml.setPermissions("empty", PD4Constants.AllowModify, false); pd4ml.setPermissions("empty", PD4Constants.AllowCopy, true);Correct API call:
pd4ml.setPermissions("empty", PD4Constants.AllowPrint | PD4Constants.AllowModify | PD4Constants.AllowCopy, true);2. Right MIME type for PDF is
response.setContentType("application/pdf");in reply to: Debugging PD4ML in a .NET Windows Service October 1, 2015 at 13:46#29841Thank you for sharing the info!
WCF supports a number of service initialization methods: http://blogs.msdn.com/b/wenlong/archive/2006/01/11/511514.aspx
A straightforward way would be to redirect the console by WCF service start in AppInitialize() (and instantly test it with Console.Error.WriteLine() if needed)
Note: if AutoFlush is not disabled, you may see the first log output only after an output buffer is full.
in reply to: pd4ml:include not working as an alternative of $[page], $[to September 29, 2015 at 17:40#29833The issue has been fixed in DEV build. The fix will be available with v398fx2 in about two weeks. Contact support pd4ml com if the issue is critical and you need an interrim fixed version sooner.
in reply to: pdf to png September 29, 2015 at 17:20#27876PD4ML is PDF-producing library. In order to convert PDF to PNG, you would need a library, which can render PDF. Here is some discussion about:
in reply to: Debugging PD4ML in a .NET Windows Service September 29, 2015 at 15:47#29839I’ve forwarded the question to our .NET team. I’ll let you know as soon as we have new info.
in reply to: Issue with registered sign on bookmark September 29, 2015 at 14:22#29835pd4ml.useTTF(“java:defaultfonts”, true) would take effect only in a case, if your application includes a JAR with TTF font files placed defaultfonts/ folder of the JAR.
Try to do the following:
1. Upgrade to v398fx1 and test. If it does not resolve the issue, proceed to #22. Try to generate a font mapping file for the standard OS fonts: https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
i.e.
java -jar pd4ml.jar -configure.fonts c:/windows/fonts c:/work/
In the case useTTF() API call should look like that:
pd4ml.useTTF( "c:/work/", true );
Test it.3. If the above helped, create a JAR file with chosen fonts, as described by the link above
in reply to: pd4ml:include not working as an alternative of $[page], $[to September 21, 2015 at 14:02#29832Thank you for the report. We’ll check what is wrong with the tag in inline header/footer definitions.
in reply to: Licensing … Volume Licence vs. Enterprise version September 16, 2015 at 13:10#29827Sekvoj,
earlier today I have replied to Milan’s email with an identical question. Are you in contact with him?
in reply to: Issue with font family on chinese characters September 10, 2015 at 11:29#29822A workaround is to preprocess input HTML and to isolate CJK portions of text to separate spans.
WENJUN Money 育暮趣所及定平関島指形由幹設 Laundering in UNITED KINGDOM IS NOT functional now
to
WENJUN Money 育暮趣所及定平関島指形由幹設 Laundering in UNITED KINGDOM IS NOT functional now
Is it doable on your side?
in reply to: can not read ‘arial’ from java:fonts/arial.ttf: problem read September 8, 2015 at 16:16#29708Manooj,
glad the issue is solved on your side!in reply to: Why Trial version cannot generate PDF with Asian font ? September 8, 2015 at 10:23#29714Please follow the instructions:
https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htmMake sure, you use PD4ML Pro trial.
in reply to: What are restrictions of PD4ML Pro Trial Version? September 8, 2015 at 10:12#29825PD4ML trial versions are fully functional, but they watermark PDF output with a “trial version” banner.
> What benefits do we get from moving to the PD4ML Pro version?
You may see potential upgrade benefits in PD4ML comparison chart:
https://pd4ml.com/products.htmin reply to: Can I create multipe line/row header or footer? September 1, 2015 at 15:29#27757The best way would be to define header/footer in HTML, i.e.:
header.setHtmlTemplate("<font color="red"><i>page $[page] of $[total]</i></font><br>second line");However in text-only headers/footers ‘n’ character should break a line.
-
AuthorPosts
