Forum Replies Created
-
AuthorPosts
-
in reply to: Anybody had problems with PD4ML on Lion for Mac? May 31, 2012 at 19:14#28962
I’ve just sent to you a link to an updated version. Please check if our workaround helps.
in reply to: Some times empty pdf while convering dxl to pdf’s May 31, 2012 at 13:13#29015Hmm… Try to dump as many info as possible: DXL just before it is passed to conversion, HTML transformed from DXL, switch debug attributes to “true” in XSLT, etc. It must reasons of blank PDF appear somewhere there.
in reply to: Extended arabic char not rendering correctly May 30, 2012 at 14:36#29005To build correct “character chains” PD4ML currently utilizes Arabic ligaturizer, ported from a reference C implementation from IBM (I believe). To be honest we are not 100% sure how it works, as nobody from our team understands Arabic scripting. We’ll try to find an updated version of the ligaturizer – hopefully it exists. If not, it is going to be a challenge to update the current one.
in reply to: Anybody had problems with PD4ML on Lion for Mac? May 24, 2012 at 11:51#28959Thank you for the input!
So, most probably, it hangs in the following code:
private boolean hasCanvasInterpreter() { Class c; try { try { c = Class.forName(PD4Constants.PD4ML_EXTERNAL_CANVAS_HANDLER); } catch (ClassNotFoundException e) { try { c = Thread.currentThread().getContextClassLoader().loadClass(PD4Constants.PD4ML_EXTERNAL_CANVAS_HANDLER); } catch (ClassNotFoundException e1) { c = ResourceCache.class.getClassLoader().loadClass(PD4Constants.PD4ML_EXTERNAL_CANVAS_HANDLER); } } } catch (Exception e) { return false; } if ( c != null ) { return true; } return false; }I see nothing dangerous in it. It looks like it hits some class loader implementation specific issues.
in reply to: Custom fonts in header/footer May 23, 2012 at 15:24#29003Try to enable debug info and inspect the output: it should report which TTF files it tries to load and fails.
in reply to: Large PDF Issue May 23, 2012 at 15:22#28859A usual reason of such problems is that the document layout is built as a single huge table. If it is your case, try to split it to smaller ones.
Also sometimes a borderless table with a single cell is used to limit horizontal width of content. If it is your case, replace it with a
<div>in reply to: Anybody had problems with PD4ML on Lion for Mac? May 21, 2012 at 18:08#28956Does your product or Tomcat installation includes GWT-DEV.jar?
in reply to: NullPointerException sometimes during render May 16, 2012 at 19:38#28992The exception is thrown in the following code (in StringTokenizer constructor)
for (int i = 1; (headerName = conn.getHeaderFieldKey(i)) != null; i++) { if (headerName.equalsIgnoreCase(SET_COOKIE)) { Map cookie = new HashMap(); StringTokenizer st = new StringTokenizer(conn.getHeaderField(i), COOKIE_VALUE_DELIMITER); ...Where conn is URLConnection.
It seems, conn.getHeaderField(i) returns null, which should not be possible according to the method specification.We added an extra check for the null value to the development build. The fix will be available with the new beta release.
in reply to: Anybody had problems with PD4ML on Lion for Mac? May 15, 2012 at 12:44#28954Currently on my workstation is installed OSX 10.7.2 – no problems with PD4ML at all.
Just noticed:
> I’ve been trying to run the command-line pd4ml class but whatever I do I get:
>java.io.IOException: Cannot run program "/Applications/Preview.app": error=13, Permission deniedPd4Cmd does not try to run Preview.app. Probably you are trying to convert with PD4Browser. Run Pd4Cmd instead:
https://pd4ml.com/html-to-pdf-command-line-tool.htmin reply to: How to auto-split a table, that does not fit a single page? May 15, 2012 at 12:18#27225I am afraid PD4ML cannot replicate multiple levels of headers from page to page.
Currently as a table header it interprets the first table rows, consist of
<th>elements only.<thead>tags or similar are not supported.in reply to: Question about header areaHeight May 15, 2012 at 11:46#29001Most probably the first page header height difference effect is caused by the
<body>top margin. Try to define:BODY { margin-top: 0; margin-bottom: 0 }in reply to: Conversion of DXL File to PDF other than English May 11, 2012 at 17:33#29000In order to display non-latin characters you need to utilize TTF embedding feature.
https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
If you use dxl2pdf command line tool, there is a dedicated -ttf parameter.
in reply to: Junk characters while converting DXL to PDF May 11, 2012 at 17:30#28999Please publish or email as a DXL sample to analyze.
in reply to: Paragraph indentation not working in generated RTF May 10, 2012 at 18:17#28765Please publish or email us an HTML sample to test
in reply to: Junk characters while converting DXL to PDF May 10, 2012 at 18:14#28997The actual XSL stylesheet contains the following section
<xsl:for-each select="/d:document/d:item/d:rawitemdata[@type='502']"> <xsl:if test="../@name='From' or ../@name='SendTo' or ../@name='Subject' or ../@name='CopyTo'"> <tr> <td valign="top"><xsl:value-of select="../@name"/>:</td> <td><span style="text-transform: base64"><xsl:copy-of select="text()"/></span></td> </tr> </xsl:if> </xsl:for-each>
intended to process the DXL code.
Your code should be transformed to
<span style="text-transform: base64"> DgAIAAAAJQAEAAIAJwAiQWxpIEJvem9nbHUiIDxBbGkuQm96b2dsdUBndW4uYXYudHI+RnJvbTog IkFsaSBCb3pvZ2x1IiA8QWxpLkJvem9nbHVAZ3VuLmF2LnRyPg0K</span>
PD4ML makes from it
“Ali Bozoglu”<Ali.Bozoglu@gun.**.tr>Please give a try to XSL+JAR from dxl2pdf2012.05.zip, currently available for download.
-
AuthorPosts
