Forum Replies Created

Viewing 15 posts - 2,341 through 2,355 (of 4,243 total)
  • Author
    Posts
  • in reply to: How to add sent date in the header of the document
    #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
    #26840

    Hi,
    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
    #29327

    1. needs to be nested to
    2. str_pdfFilePath should point not to a file, but to a directory

    in reply to: Text running off the page and same email content repeating
    #29318

    1. 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
    #29299

    Currently 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
    #29216

    Please 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
    in reply to: Background-color: transparent not rendering correctly
    #29129

    We 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
    #29309

    Hi,
    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
    #29217

    No there is nothing like that.

    in reply to: MIME.HTM in the converted PDF
    #29288

    So no way to completly fix the problem?

    in reply to: Not able to extract a PDF attachment from DXL File
    #29323

    The 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
    #29319

    Thanks.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
    #29218

    So 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
    #29289

    A 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.

Viewing 15 posts - 2,341 through 2,355 (of 4,243 total)