Forum Replies Created
-
AuthorPosts
-
in reply to: How to add sent date in the header of the document April 22, 2013 at 12:07#29298
Thank you very much for your help on this issue.The date is printing now but format is not working if the posted date is raw item data.
The date is printing in below format.
Tue, 13 Dec 2011 13:49:31 +0200
Kindly help.
in reply to: General questions / FAQ April 22, 2013 at 12:33#26840Hi,
I have developed one jsp contains output of Pdf file using Pd4ml. Jsp file is displayed successfully in Pdf format. But Pdf file is not generated in Server folder. Following is the code. Please solve this ASAP.
in reply to: Not Saving pdf file usig Jsp Tld April 22, 2013 at 12:39#293271. needs to be nested to
2. str_pdfFilePath should point not to a file, but to a directoryin reply to: Text running off the page and same email content repeating April 22, 2013 at 13:27#293181. htmlWidth is a conversion parameter. If you change it for particular conversion call – it impacts the only conversion result. If you change it for all conversions (permanently in your agent code, for example) – it will impact all conversions.
In principle, you may measure the document right side edge with a fake conversion call (http://pd4ml.com/cookbook/pd4ml_conversion_status.htm ) and if it exceeds the default htmlWidth – increase its value.
Another approach would be to limit generated HTML width in XSL. Currently it is set to stretchable value “100%”. Set it absolute in “px”, more-less matching your htmlWidth parameter value.
[language=xml:xyqcxmxg]…
Page $[page] of $[total] …[/language:xyqcxmxg]
If the document has, for example, an image, which is wider than the table width/htmlWidth – the trick do not help.
2. DXL format (especially its embedded objects, like bitmaps, attachments, mime-messages) is not well-documented. We workaround problems, learning them by example, but unfortunately we cannot be sure we covered all the species of DXL’s MIME format. In the particular case you faced with something, that does not match the patterns we worked on.
in reply to: How to add sent date in the header of the document April 22, 2013 at 13:44#29299Currently raw item data is converted to HTML to base64-data tag. CSS style “text-transform: base64” is non-standard, only PD4ML knows how to deal with it. Currently it simply decodes it (and tries to parse/reformat if it is a MIME message).
Currently the decoding module cannot recognise if an encoded raw item is a date and it does not know a target date format. So a solution for the issue would be to implement a new proprietary attribute dateFormat (or something like that) and perform a date conversion when the attribute is present.
The implementation is doable, but it is out of scope of free email support we offer.
Another solution would be to decode the base64 with XSLT means (I just googled http://gandhimukul.tripod.com/xslt/base64-xslt.html ), to cut Lotus specific header bytes from it and to reformat the date as needed, with means of XSLT (as far as I know, there is needed functionality in XSL spec).
in reply to: Out of memory error while converting a dxl file April 22, 2013 at 14:11#29216Please check if your Lotus agent (or standalone converter) calls extractAttachments( String dxl ) and after the call the attachment is replaced with something like that:
file:/…/Temp/attachment13685.Undertaking.pdf in reply to: MIME.HTM in the converted PDF April 22, 2013 at 14:16#29287I replied to the question (to some extend) in the topic:
pdf-generation-troubleshooting-f4/text-running-off-the-page-and-same-email-content-repeating-t704.htmlin reply to: Background-color: transparent not rendering correctly April 23, 2013 at 10:02#29129We have alse seen the same issue in 3.8.0fx8 and fx9 but not exactly the same. Is there any update on this?
In the following code, the second SPAN section appears as BLACK whereas the 4th is seen transparent.
<html><br /> <head><br /> <meta http-equiv=Content-Type content="text/html; charset=utf-8"><br /> </head><br /> <body><br /> <span></span><br /> <br /> <span style="BACKGROUND-COLOR: transparent;">Bloque 1 que debería salir en negro con la versión fx7</span><BR><br /> <br /> <span>Bloque 2 sin background</span><BR><br /> <br /> <span style="BACKGROUND-COLOR: transparent;">Bloque 3 que debería salir en negro con la versión fx7</span><BR><br /> <br /> <span>Bloque 4 sin background</span><BR><br /> </body><br /> </html>
in reply to: Stop displaying dynamic data when user saves the document April 23, 2013 at 10:28#29309Hi,
Please provide your response on my earlier approach ? If my approach is not correct please let me know how can i implement this.in reply to: Out of memory error while converting a dxl file April 23, 2013 at 10:36#29217No there is nothing like that.
in reply to: MIME.HTM in the converted PDF April 23, 2013 at 10:38#29288So no way to completly fix the problem?
in reply to: Not able to extract a PDF attachment from DXL File April 23, 2013 at 10:52#29323The DXL file has attachment when I open in Lotus Notes.Yes the attachment is not tagged under
tag but why did the PD4ML doesn’t handle this type of files.If we change the XSL code for this file alone it is not guaranteed that the solution is permanently fixed.We need your help to fix this type of issues. in reply to: Text running off the page and same email content repeating April 23, 2013 at 11:32#29319Thanks.For the issue 1 I will try the solution you suggested and get back to you.For issue 2 is there no way to fix this type of issues?
in reply to: Out of memory error while converting a dxl file April 23, 2013 at 14:22#29218So it seems extractAttachments() method call takes no effect.
Make sure the method code is in the most actual state (and invoked from your code):
[language=java:1wluxbkf]public static final String extractAttachments( String body ) throws IOException {
if (body != null) {
int index01 = body.indexOf( “” ); index02 = body.indexOf( ““, index01 + 1 );
String fileName = “bin”;
int name01 = body.lastIndexOf(“name='”, index02);
if ( name01 > 0 ) {
name01 += 6;
int name02 = body.indexOf(''', name01);
if ( name02 > 0 ) {
fileName = body.substring(name01,name02);
}
}int endtag = body.indexOf( “>”, index01 + 1 );
String fileContent = body.substring( endtag + 1, index02 );
byte[] bytes = Base64.decode( fileContent );File file = File.createTempFile(“attachment”, “.” + fileName);
FileOutputStream fos = new FileOutputStream(file);
fos.write(bytes);String tmpFileName = file.toURI().toString();
sb.append( tmpFileName );
sb.append( “” );index02 += 11;
index01 = body.indexOf( “in reply to: MIME.HTM in the converted PDF April 23, 2013 at 14:27#29289A solution is to learn and parse MIME format of Lotus notes, and to choose the right MIME part to be shown. Currently it simply skips “garbage characters” of binary header and scans the remaining content for known patters. As we see the trick works not in 100% of cases.
AuthorPosts