Forum Replies Created
-
AuthorPosts
-
in reply to: cannot render greeks using TTF Embedding feature January 30, 2012 at 18:45#28839
I have downloaded the pro demo version to do the proof of concept for this but when I do the debug I just get this:
version: PD4ML 380 (eval) done in 297ms.
It does not look like it is even trying to load the fonts. Is this not the correct PDML jar? If not where can I download the correct one and what is it’s name?
Megan
in reply to: images won’t render January 30, 2012 at 10:35#28828ahh I see-
In case anyone else has the problem, I have gotten around it by putting the full unc path to the server which servers up the images. Example:

that has sorted out the issue and the images are rendered.
Thanks
in reply to: images won’t render January 26, 2012 at 20:27#28826I forgot to mention, these images are not the same site as the PDF is being generated. They are being delivered by a different one.
in reply to: pd4ml in a .jspx file used with success – up to a point …. January 24, 2012 at 13:58#28755I have the latest version of pd4ml 3.8.0
Here’s the code (just change enable to “true” and it produces a .pdf, but with enable=”false” I get the exception):
<root xmlns:pd4ml="https://pd4ml.com/tlds/pd4ml/2.6" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core"><pd4ml:transform enable="false" pageFormat="A4" pageOrientation="Portrait" screenWidth="610" pageInsets="10,50,20,50,points" enableTableBreaks="true" inline="false" fileName="hello.pdf" debug="true"><pd4ml:usettf from="java:fonts" serif="Times New Roman" sansserif="Arial" monospace="Courier New"/><pd4ml:permissions password="empty" rights="2068" strongEncryption="false"/><html xmlns:html="http://www.w3.org/1999/xhtml" xmlns:tiles="http://tiles.apache.org/tags-tiles" xmlns:form="http://www.springframework.org/tags/form" xmlns:spring="http://www.springframework.org/tags" xmlns:roo="urn:jsptagdir:/WEB-INF/tags" xmlns:security="http://www.springframework.org/security/tags" version="2.0"> <jsp:output doctype-root-element="HTML" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml-strict.dtd"/> <jsp:directive.page contentType="text/html;charset=UTF-8" /> <jsp:directive.page pageEncoding="UTF-8" /> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=8" /> <link rel="stylesheet" href="/contabilita/css/int/general.css" type="text/css"/> <link rel="stylesheet" href="/contabilita/css/int/header.css" type="text/css"/> <script type="text/javascript" src="/javascript/mootools141.js"><!-- required by FF and opera --></script> <title>A title</title> </head> <body> <div id="wrapperVit"> <tiles:insertAttribute name="header" ignore="true" /> <div id="main" style="padding-top: 10px;"> <tiles:insertAttribute name="body"/> </div> </div> </body> </html> </pd4ml:transform> </root>
in reply to: Urgent -Bad pdf layout – it span only 1/4 of normal width December 22, 2011 at 20:49#28751Thanks for the explanation.
The reason that I add “converter.adjustHtmlWidth()” is to try to fix another issue reported by customer — sometimes, the content (or table column) was chopped off on the page right side.
Adding “converter.adjustHtmlWidth()” solves that issue. Unfortunately it causes current issue in certain pdf report -3/4 of page shows blank.
in reply to: Merge failing December 20, 2011 at 19:26in reply to: nullPointerException when rendering page December 19, 2011 at 13:28#27620@litacampbell wrote:
Also, one more bit of information — they server that just disregards the image is running on a Windows box, so if the image were on the c: drive, at least the drive would be found. The server that crashes is running on AIX where c: would have no meaning.
Hi to All,
Do you mean with server crash that application server crash or only that the servlets is arising the errror and the application continues to work.
We’ve the same issue and seems that after this exception the memory is not cleaned and the GC continue to work blocking the work.
Did you faced anything similar to this ?in reply to: Positioning – bottom ignored December 15, 2011 at 04:04#28688I am also looking forward for getting positioning support.
I have an urgent requirement of using this and pd4ml seemed to be most suitable for my html pages. but i am getting the same issue its not able to handle relative and absolute position combo. on just absolute its working fine…Any expected time line by which it is expected to be done??
in reply to: Problem with ampersand December 5, 2011 at 21:52#28719Yes, it looks like a bug in the converter.
I’ve just opened a ticket to be resolved with the next beta release.in reply to: initialPageNumber December 5, 2011 at 21:50#28399So the print jobs are going to be initiated from the server side (not from client PC)? In the case you’ll anyway need to execute some print command line. I have my doubts if there is an easy way to talk from an application server to a printer (and to render/print a PDF, which is another level of complexity).
As for me a print.bat file with a singe command like
AcroRd32.exe /t %1 “\serverprintername” “Kyocera FS-1010” “192.168.0.1”
is quite a straightforward solution to be executed from the server like that:String cmdstart[] = { "cmd.exe", "/c", "print.bat", tempPdfLocation }; Runtime.getRuntime().exec(cmdstart);
Of course, printer names/locations could be passed to the script as a parameter as well.in reply to: initialPageNumber November 30, 2011 at 01:10#28398Hello,
thank you very much for your answer…
The first part of the answer solved the problem completely.
That’s exactly the command I was looking for..The second part I explained very poorly. Within the company I work for, we use certain tags to label specific parts, kind of like price tags.
These tags are supposed to be containing consecutive numbers..
Therefore we have to make sure, that each number is only printed once..
If we open the PDF file, even with the printing dialog directly opened, there still is the chance, that the file with for example the numbers 1 through 30, is printed multiple times. We are looking for a way to properly print the PDFs once and only once.
Our current approach would be to create the file and save it on the server (temporarily) and sent it to a printer selected by the user via network. After it was successfully printed, the file will be deleted and the first new number to be used will be saved in a database and used for generating the next set of “tags” with new numbers.I think that might be the most practical solution, since using the command line in combination with a webserver will get really difficult very quickly…
If you can offer any other idea, we would be more than happy to give it a try…
Thank you for your help!
Kind regards
Niels Göranin reply to: initialPageNumber November 26, 2011 at 23:37#28396Hey…
I come across another questions while further implementing PD4ML.
We are trying got use “pd4ml.print.dialog.popup”, but again it is not available via PHP param feature.
Is there a different way to force the print window? Or do we have to implement it in the wrapper ourself? (If you could provide us with that feature as you did last time, that would be really great.).And the second questions relates unique numbers in printed documents.
We create PDF files with tags on each page, and each tag has its unique number.
Now we want to directly print that page out instead of opening the PDF in the user window (even when the print dialog opens directly, there is no way to tell if the tags were printed or not…).
Is there any simple to do that? One suggestion we found was to write the PDFs in a specific folder on the server, and have the server check for the files and each time it found one, that one will be printed.Thank you very much for your Help!
Kind regards
Niels Göranin reply to: Page-break cutting accent when page breaks November 18, 2011 at 18:51#28705Ok! Thank you!
I’m waiting…@PD4ML wrote:
We reproduced the issue – it seems to be a bug with header height computations.
We plan to find a solution till the next beta release.As a workaround I would recommend to use inline header definitions with
<pd4ml:page.header>; however there are some scenarios, where it is quite tricky to use the tag – for example if your source documents are read-only and cannot be modified.in reply to: How to find out if a page break has occurred November 16, 2011 at 16:30#28549I think I’ve found a solution: avoid having to know about the pagebreaks.
The trick is to unset/set the page headers the way shown to prevent having the country name printed twice.
The issue reported in this thread (multiple page headers) is fixed in version 3.8.I will not adapt the example to fit the older examples 🙂
<table style="page-break-inside: avoid;"> <pd4ml:page.header> </pd4ml:page.header> <tr> <th>Italy</th> </tr> <tr> <td>Item 1</td> </tr> </table> <pd4ml:page.header> <table> <tr> <th>Italy (Continued)<br>Company 1</th> </tr> </table> </pd4ml:page.header> <table> <tr> <td>Item 2</td> </tr> ... </table> <pd4ml:page.header> <tr> <th>Italy (Continued)</th> </tr> </pd4ml:page.header> <table style="page-break-inside: avoid;"> <tr> <td>Company 2</td> </tr> <tr> <td>Item 1</td> </tr> </table> <pd4ml:page.header> <table> <tr> <th>Italy (Continued)<br>Company 2</th> </tr> </table> </pd4ml:page.header> <table> <tr> <td>Item 2</td> </tr> .. </table>
Output:
Italy Company 1 Item 1 Item 2 Item 2 Item 3 Item 4 Item 5 Item 6 Item 7 Item 8 Item 9 <<pagebreak>> Italy (Continued) Company 2 Item 1 Item 2 Item 2 Item 3 Item 4 Item 5 Item 6 Item 7 Item 8 Item 9 <<pagebreak>> Italy (Continued) Company 2 Item 10 Item 11 Item 12 Item 13 Item 14 Item 15 Item 16
in reply to: CSS and PHP to PDF November 15, 2011 at 15:02#28374try to use full URL for your css
-
AuthorPosts
