Forum Replies Created
-
AuthorPosts
-
in reply to: Pd4ml Pro version TTF issue March 11, 2016 at 19:27#29853
> pd4ml.useTTF(“C:EpicFontsabc.ttf”, true);
It will not work that way. It should always point to a font mapping .properties file or to a directory where pd4fonts.properties is.in reply to: How to center the result of ‘fitPageVertically’ March 11, 2016 at 19:30#28300As far as I remember last time we had troubles to implement that. I’ve reopened the ticket. We’ll see if we’ll have a luck this time.
in reply to: How to render page with boostrap stylesheet by pd4ml? March 11, 2016 at 19:36#29866Unfortunately current HTML/CSS support of PD4ML has its limitations and it renders not always perfectly when an HTML or CSS is created for an interactive web experience.
For web site capturing tasks we develop PD4ML Web product (which is available separately, but will be an integral part of PD4ML v4)
in reply to: Trouble understanding differencies between Linux and Windows March 11, 2016 at 19:41#29616I’ve just inspected the current version. The output depends on “pd4ml.document.id” system property.
String s = null; try { // A document ID override mostly makes sense for testing purposes. // Here it is used as a trigger to exclude version- and // environment- specific diagnostics info (to make possible a binary comparison of documents // produced, for example, on different platforms) s = System.getProperty("pd4ml.document.id"); } catch ( Throwable e ) { } if ( s == null ) { callParameters.append( "% PD4ML version: " + getVersion() + "n" ); callParameters.append( "% JDK version: " + System.getProperty( "java.version" ) + "n" ); callParameters.append( "% OS version: " + System.getProperty( "os.name" ) + " " ); callParameters.append( System.getProperty( "os.version" ) + "n" ); }in reply to: Trouble understanding differencies between Linux and Windows March 14, 2016 at 10:15#29619At the time being, we use the release 3.9.6 and it’s work !
The problem was the initialisation of the property.
The property pd4ml.document.id must set before the “new PD4ML()” and not after.
We fixed this and now it’s work perfectly.Thanks for your time and your response.
Best regards,
in reply to: HTML/CSS rendering issues March 17, 2016 at 04:36#27068I have a problem where the background image is not getting rendered in the generated PDF. Sending the HTML and the css
HTML
<html> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <link rel="stylesheet" href="samplecss.css" type="text/css" /> </head> <body> Page #1 <span class="iconRequiredRight">test</span> <pd4ml:page.break> Page #2 <pd4ml:page.break> Page #3 <pd4ml:page.break> Page #4 </body> </html>
CSS
body { font-family: arial; }
h1 { background-color:#CCC; border: 1px solid; color:#39F; text-align: center; }
table { background-color: #F60; border: 1px solid #39F; width: 100%; }
td { border: 0px; text-align: center; }
p { color:#09F; text-indent: 20px; }
.iconRequiredRight{
background-image: url(“asterisk.gif”);
background-color: #cccccc;
}in reply to: PD4ML Tips & Tricks March 17, 2016 at 07:19#27069Hello
I am using Freemarker template to generate dynamic html. I have embedded the header and footer in the html, but they are not getting rendered in the pdf format. The header and footer have images.
I am using v3.20.1 of pd4ml. Please let me know if this version supports images in header and footer.
in reply to: Background image not rendering in the pdf March 17, 2016 at 12:42#29868The actual version of PD4ML does not allow to apply background images to tags. Use
<div>instead (probably with “display: inline-block” style)in reply to: The header and footer are not getting rendered in pdf March 17, 2016 at 12:44#29869Please post an HTML code snippet, to illustrate the issue.
Also make sure you use PD4ML Pro (or derived PD4ML Volume). A regular PD4ML Std does not support images in headers/footer.
in reply to: General questions / FAQ March 21, 2016 at 05:24#27070Hi,
I am able to render Hebrew fonts in PDF usinf times.ttf in Windows but what is the Linux dejavu equivalent ttf files to render hebrew fonts. I used DejaVuSerif but it did not work.
Can anyone tell me the ttf file required in Linux.
Regards,
Ranjana Sinhain reply to: The header and footer are not getting rendered in pdf March 31, 2016 at 05:26#29870The version i am using is PD4ML v3.2.0 Pro. Does it support images in header and footer?
I am not using it from html but from java. I used the following code for adding header, but the header is not getting added at all –
PD4PageMark header = new PD4PageMark();
header.setAreaHeight(30);
header.setPageBackgroundColor(new Color(0x090000));
pdfDoc.setPageHeader(header);in reply to: General questions / FAQ March 31, 2016 at 05:32#27071Hello
I have upgraded to jre1.7.0_91 for running the application. With this upgrade the PDF generation with PD4ML is failing. I am getting the below error in console –
java.lang.InternalError.
java.lang.InternalError
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:85)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at sun.awt.windows.WToolkit.getFontMetrics(WToolkit.java:596)
at org.zefer.b.d.<init>(Unknown Source)
at org.zefer.c.i.super(Unknown Source)
at org.zefer.d.c.m.╪00000(Unknown Source)
at org.zefer.d.c.s.<init>(Unknown Source)
at org.zefer.d.c.n.╪╓0000(Unknown Source)
at org.zefer.pd4ml.PD4ML.super(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)Caused By: java.lang.ClassNotFoundException: sun.awt.X11FontManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:278)
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:82)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at sun.awt.windows.WToolkit.getFontMetrics(WToolkit.java:596)
at org.zefer.b.d.<init>(Unknown Source)
at org.zefer.c.i.super(Unknown Source)
at org.zefer.d.c.m.╪00000(Unknown Source)
at org.zefer.d.c.s.<init>(Unknown Source)
at org.zefer.d.c.n.╪╓0000(Unknown Source)
at org.zefer.pd4ml.PD4ML.super(Unknown Source)
at org.zefer.pd4ml.PD4ML.render(Unknown Source)The same code was working with jre1.6.0_26. Please help me identify the issue.
PD4ML version being used – Pro 3.2.0
OS – Windows 7Tried installing java 1.7.0_91 and using it in compilation as well, but still facing the same issue. Will upgrading to latest PD4ML version help?
in reply to: Encoding problem (pdf only) March 31, 2016 at 07:34in reply to: HTML/CSS rendering issues April 3, 2016 at 10:50#27072Hi,
I want to add listings to pdf documents. Html provides
- /
- for that.
But also a user can add sub or subsub listing and so on. So I add HTML CSS code:
ol.list_iNQvgxANSh { counter-reset:list_iNQvgxANSh; list-style-type:none; } ol.list_iNQvgxANSh li:before { content: counter(list_iNQvgxANSh,decimal) ")"; counter-increment:list_iNQvgxANSh; }But the result ist a listing without ANY sign. Is :before and :after supported?
in reply to: List problem with li:before April 4, 2016 at 11:01#29872Unfortunately the current version of PD4ML supports almost nothing, from the CSS sample you sent.
-
AuthorPosts
