Forum Replies Created
-
AuthorPosts
-
in reply to: Maintenance PD4ML v381 (Java) released – changes? February 18, 2013 at 16:07#29224
You may find an actual changes description in the release notes document:
https://pd4ml.com/relnotes.htmin reply to: PDF Pages are all blank February 18, 2013 at 16:04#29223It seems the binary PDF document data is corrupted. Usually that happens by a HTTP transfer, when an undesired character encoding conversion is applied to a binary PDF document.
In PD4ML JSP taglib byte[] result PDF data is sent 2 ways:
sr.setContentLength(result.length); ServletOutputStream sos = sr.getOutputStream(); if ( this.getEncoding() != null && this.getEncoding().equals("default") ) { sos.write(result); } else { sos.print( new String( result, "ISO8859_1" ) ); } sos.close();Try both in your Tomcat app.
Another more rare reason of such corruption is a replacement of UNIX-style new line characters with Win-style double chars. The problem may happen, but it is quite unlikely to face with in web scenarios.
in reply to: PDF page headers/footers definition options February 15, 2013 at 15:49#27288There is a number of header-definition methods:
https://pd4ml.com/cookbook/pdf_header_footer_generation.htmWith Java API you may either merge header definition like
<pd4ml:page.header scope="2+">with HTML content (the header definition needs to be before opening<html>tag) or to customize PD4PageMark instance;PD4PageMark header = new PD4PageMark() { public String getHtmlTemplate(int pageNumber) { if ( pageNumber > 1 ) { return "<html><body>some document header stuff..."; } else { return ""; } } }; pd4ml.setPageHeader(header);in reply to: Background image to the html page not visible in the pdf February 15, 2013 at 15:43#29209I am not sure if I understand your approach with stretched background image right.
Try to apply a PD4ML-specific style “background-repeat: scale-xy” to a DIV – it should do the trick.
in reply to: Out of memory error while converting a dxl file February 15, 2013 at 14:34#29211In most of the cases “This is a multipart message in MIME format” means the email message includes 2 content versions: HTML and text-only.
I tested your DXL with PD4ML v381 – the build suppresses “This is a multipart message in MIME format”, however still outputs both content versions as PDF.
OutOfMemory error usually can be handled with an overriding of Max Heap Size JVM parameter (i.e. -Xmx512m). But first I would recommend to give a try to PD4ML v381 – since v380fx5 you currently use – we addressed a number of DXL converting issues.
in reply to: Headers missing in the first part of email content February 15, 2013 at 14:01#29210dxl4pd4ml.xsl stylesheet builds mail headers with the following code:
<tr> <td valign="top">:</td><td></td> </tr>
however in your DXL sample the structure differs: expected tags are nested to :
<text >"Fil...nov, ...der" <...der.Fil...nov@BAKERNET.com> <mg...n@mmm.com> RE: Meguiar's/ANR - T39863
A quick solution is to add a new XSL iteration:
<tr> <td valign="top">:</td><td></td> </tr>
in reply to: PDF page headers/footers definition options February 7, 2013 at 13:04#27285Try to temporarily set the height parameter to any defined value:
footer.setAreaHeight(50);
Does it change anything?in reply to: PDF page headers/footers definition options February 7, 2013 at 13:02in reply to: PDF page headers/footers definition options February 1, 2013 at 17:02#27280Which PD4ML version do you currently use? It can be checked in Document properties of any PDF, generated with the library.
in reply to: PDF page headers/footers definition options February 1, 2013 at 14:58#27278With PD4ML Pro it can be done like that:
PD4PageMark footer = new PD4PageMark(); footer.setHtmlTemplate("<font color="red"><i>page $[page] of $[total]</i></font>"); footer.setAreaHeight(-1); pd4ml.setPageFooter(footer);Use pd4ml.setPageHeader() for headers.
in reply to: Xhtml to pdf conversion January 31, 2013 at 13:10#29030Could you please add enable=”false” attribute to
<pd4ml:transform>and to generate a HTML with the JSP placeholders substituted with a dynamic content. Save the HTML from a web browser and publish it here (or send to support pd4ml com)in reply to: Lotus Notes 8.5.3 troubles with ttf fonts January 29, 2013 at 16:05#29207I converted the DXL with the actual XSL and as for me it seems to be correct (except a missing barcode font issue).
I have attached the conversion result and the XSL stylesheet (which can be also taken from the actual Dxl2Pdf package: https://pd4ml.com/command-line-dxl-to-pdf-converter.htm )
in reply to: Lotus Notes 8.5.3 troubles with ttf fonts January 29, 2013 at 15:03#29205Could you please send the entire DXL and its resulting PDF to support pd4ml com?
I tried to convert the snippet you sent with our actual XSL and it printed only “ÀU+!!$Ô (well, we do not have the needed barcode font to test). Base64 portion has been suppressed by
<xsl:template match="d:compositedata" />directive.in reply to: Lotus Notes 8.5.3 troubles with ttf fonts January 29, 2013 at 11:34#29203The garbage looks like UTF-8 wrongly interpreted as Latin-1. Should be solvable with an XSL adjustment. Could you please publish a DXL sample, which causes such problem?
in reply to: 9 CSS hack in stylesheet – entire stylesheet ignored January 28, 2013 at 18:08#29195Give a try to the attached.
-
AuthorPosts
