Forum Replies Created
-
AuthorPosts
-
in reply to: I can´t apply css February 6, 2012 at 15:35#28802
First you need to resolve the CSS selector error.
I’ve just checked http://www.czplus.es:8080/at/consultar_facturas/estilos_consulta_detallada_factura.css – it seems to be correct. Probably there are inline styles in your source HTML.
in reply to: Problem removing anchor underline using text-decoration February 3, 2012 at 21:22#28737We’ve just fixed the issue in the development build. The fix will be available with the next maintenance release.
in reply to: Problem removing anchor underline using text-decoration February 3, 2012 at 15:21#28736Try
text-decoration: none !important;
If it does not help, try to impact its internal representation.
text-decoration-u: none;It seems there is a bug with it in the recent versions.
in reply to: How to open pdf file in new window February 3, 2012 at 14:12#28855You can control the behavior via HTTP header:
response.setHeader("Content-Disposition","inline; filename="doc.pdf";");
Forces browser to open PDF inlineresponse.setHeader("Content-Disposition","attachment; filename="doc.pdf";");
Forces web browser to popup a Save/Open dialog.In PD4ML JSP taglib you may control that with inline=”true/false” attribute of tag.
in reply to: Watermark Cache Problem February 3, 2012 at 14:02#28856Obviously the problem is caused by a reusing of custom tag object instances by the JSP framework. We never experienced exactly such issues on our test environment, but I can imagine that could happen.
We’ll check what can be done in the taglib code to prevent that. In the meantime you could check if there is a configuration switch by your application server to disable the optimization.
in reply to: Large PDF Issue February 3, 2012 at 13:57#28857I hope you compared similar functions of the tools: HTML-to-PDF conversion.
The PDF output itself by PD4ML is quite quick: 2-3% of the conversion time.
But HTML rendering – the first phase of the conversion – is a resource consuming task.PD4ML does not use native HTML rendering engines (like Webkit or Mozilla), PD4ML is managed .NET code (and 100% Java). Managed code has its benefits and, of course, disadvantages like performance penalties.
For example it instantiates a .NET object even for any standalone whitespace. Bearing in mind generic .NET overhead in CPU/RAM usage, we simply would not recommend to convert such big documents.
If you definitely need that, I would recommend to revise the document layout. First make sure the document is not a huge table. PD4ML does all the layout of all the pages in memory, before it writes anything out. Any cell on, let’s say, page #350 whose width is a bit wider than previous cells of the same column requires re-layouting of previous 349 pages – as it impacts the entire table layout.
So split big tables to smaller ones.
Second, try to avoid nesting of tables where it is possible. Each table cell layouts 3 times: MIN, MAX, OPTIMAL. Each table cell of a nested table layouts 9 times. If the nesting level is 2, a cell layouts 27 times etc.
in reply to: images won’t render January 31, 2012 at 18:12#28830Your server must be able to establish a TCP/IP connection to https://s3.amazonaws.com/… (probably you’ll need to route HTTP(S) requests from the server via proxy).
in reply to: cannot render greeks using TTF Embedding feature January 31, 2012 at 12:53#28843Glad it works now.
I suspected Std as in the debug output
version: PD4ML 380 (eval)
there was no “Pro” suffix.in reply to: HTML to PDF issue January 31, 2012 at 12:01#28844Could you please post such PDF sample?
in reply to: cannot render greeks using TTF Embedding feature January 30, 2012 at 18:55in reply to: Css style inheritance January 27, 2012 at 16:49#28808To be honest I even did not know, that there is such type of selectors.
We need to check if ss_css2.jar (CSS library PD4ML relies on) correctly parses double selectors. If yes, the feature implementation does not seem to be a complex task.
in reply to: images won’t render January 27, 2012 at 13:41#28827Typical reasons of the issue could be like that:
there are 3 nodes in the scenario: client browser (A), document/PD4ML server (B), images server (C).
In regular web browsing scenario A establishes a connection to B to download HTML, and after that to C to download the images.
A – B
A – CIn PD4ML scenario A only establishes a connection to B (to get PDF). In order to produce PDF B connects to C itself to load images.
A – B
B – CAs a rule A has all needed routing info and “knows” how to connect to B and to C even if there is a firewall/reverse-proxy in-between.
But very often server (B) does not know how to resolve name of image server (C), especially if the name is defined for outside world like images.corporation.com, but within intranet it is known under a paranoid cryptic name i.e. b3462346x.intranet.corporation.com; or when the C is belong to another net, and due to security policy B has no routing to C.
in reply to: display current date every time the PDF is opened January 27, 2012 at 13:27#28790Currently the method signature is like that:
public void addDocumentActionHandler( String actionType, String javaScript );
We’ll see during the testing if any extra parameters are needed.We could send you a development version to test closer to the end of the next week.
in reply to: display current date every time the PDF is opened January 26, 2012 at 13:48#28788We successfully prototyped the feature and were able to auto-insert the date info into a form field. Unfortunately we did not enabled the feature in the just-released v380fx2, as there was not enough time to extensively test it. It is going to be available with the next beta-release of PD4ML.
FYI: we achieved that with
this.getField("i1").value = new Date().toDateString()
JavaScript code, assigned to OpenAction of PDF.The source HTML document supposed to define:
<input name=i1 type=text style="border: none">PD4ML must explicitly enable PDF form output:
pd4ml.generatePdfForms(true, null);in reply to: TTF issues Pro Eval Version 3.8 vs 3.7 January 26, 2012 at 13:37#28821We’ve just published a new version of PD4ML, which also addresses some TTF substitution issues. Please give it a try and let us know if it solves the problem on your side.
-
AuthorPosts
