Forum Replies Created

Viewing 15 posts - 496 through 510 (of 1,410 total)
  • Author
    Posts
  • 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
    #29316

    In order to make the text fit the horizontal space try to increase pd4ml.setHtmlWidth() parameter.

    See https://pd4ml.com/cookbook/pdf_page_formatting.htm for more details.

    The content is repeating, because the MIME message includes two email versions: text only and HTML.

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

    The attachment is not embedded, as it is not referenced from the document (there is no corresponding <attachmentref> DXL tag).

    An XSL section, which lookups and embed not referenced attachments needs to be coded in the stylesheet.

    in reply to: How to add sent date in the header of the document
    #29297

    here is an updated XSL…

    in reply to: How to add sent date in the header of the document
    #29296

    Yes, with some XSL coding a date formatting is possible.

    The “junk characters” also represent a date, but it is base64-encoded. After decoding it will appear as “Wed, 4 Apr 2012 10:43:16 +0300”. In the case, a changing of the format to “4/18/2013 9:37” is more tricky (requires some changes in pd4ml.jar)

    I’ll adjust the XSL stylesheet for you, but normally you need MaxAttention support option for such level of support.

    It will take few hours.

    in reply to: How to add sent date in the header of the document
    #29294

    You are right, PostedDate is represented with a bit different XML structure. Below is a solution (a section at the bottom)

    ...
    <xsl:for-each select="/d:document/d:item/d:rawitemdata[@type='502']">
    <xsl:if test="../@name='From' or ../@name='SendTo' or ../@name='Subject' or ../@name='CopyTo' ">
    <tr>
    <td valign="top"><xsl:value-of select="../@name"/>:</td><td><span style="text-transform: base64"><xsl:copy-of select="text()"/></span></td>
    </tr>
    </xsl:if>
    </xsl:for-each>
    <xsl:for-each select="/d:document/d:item/d:text">
    <xsl:if test="text() and (../@name='From' or ../@name='SendTo' or ../@name='Subject' or ../@name='CopyTo' )">
    <tr>
    <td valign="top"><xsl:value-of select="../@name"/>:</td><td><xsl:copy-of select="text()"/></td>
    </tr>
    </xsl:if>
    </xsl:for-each>
    <xsl:for-each select="/d:document/d:item/d:textlist/d:text">
    <xsl:if test="text() and (../../@name='From' or ../../@name='SendTo' or ../../@name='Subject' or ../../@name='CopyTo')">
    <tr>
    <td valign="top"><xsl:value-of select="../../@name"/>:</td><td><xsl:copy-of select="text()"/></td>
    </tr>
    </xsl:if>
    </xsl:for-each>
    
    <xsl:for-each select="/d:document/d:item[@name='PostedDate']">
    <tr>
    <td valign="top"><xsl:value-of select="@name"/>:</td><td><xsl:copy-of select="."/></td>
    </tr>
    </xsl:for-each>

    in reply to: Stop displaying dynamic data when user saves the document
    #29307

    I am afraid, Reader cannot save edited copies of PDF. Well, it can save annotations to PDF, but collected PDF form data can be only exported as FDF. Please correct me if I am wrong.

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

    Tomorrow we’ll address MIME-related issues of DXL conversion. I’ll let you know.

    in reply to: Extracted attachment from DXL says it is damaged
    #29275

    As I wrote, Lotus Notes LZ1 compression is undocumented, which turns the feature implementation into an untrivial task. On the other hand we already invested quite a lot of time to an analyse and the implementation seems to be doable now (however there are still few questionable issues there).

    If your company ready to (partially) fund the development, please contact support pd4ml com by email.

    in reply to: Stop displaying dynamic data when user saves the document
    #29305

    Do you use Acrobat Reader or Acrobat to save PDFs?

    in reply to: Extracted attachment from DXL says it is damaged
    #29273

    Did you try to export DXL and to force to uncompress attachments? Did it help?

    in reply to: Message on Footer
    #29302

    It is possible with PD4ML Pro (and derived volume license binaries) like that:

    line 1<br>
    line 2<br>
    line 3<br>
    line 4<br>

    Actually in PD4ML Std it would work as well (I copied the below from our test suite):

    <%
    String s = "$[title]nsecond line";
    %>
    
    <pd4ml:header
    titleTemplate=""
    pageNumberTemplate="default"
    titleAlignment="left"
    fontSize="14"
    color="#008000"
    fontFace="Comic Sans MS"
    fontStyle="bolditalic"
    areaHeight="36"/>

    What is exactly in {4lines Message}? Can it be JSP runtime “optimises” the code and substitutes ‘n’ with whitespace chars in-place.

    in reply to: display current date every time the PDF is opened
    in reply to: Stop displaying dynamic data when user saves the document
    #29303

    The first parameter (actionType) of the method accepts the following values:
    “OpenAction”,
    “DC” (document close),
    “WS” (will save),
    “DS” (did save),
    “WP” (will print)
    “DP” (did print)

    Obviously you are interested in “WS”. However, I suspect, it is going to be tricky to implement the needed functionality with it (or I overcomplicate the things).

    You still may try to implement the feature with “OpenAction”. Just compare the document creation date and last modification date (if any and if possible), and display the last modification date if it is greater than the creation date.

    in reply to: How to add sent date in the header of the document
    #29291

    You may add the missing fields to .XSL style condition statements of the following section: ( i.e. ” or ../@name=’Bcc'”). For sent date the correct field name, I guess, is ‘PostedDate’.

    <xsl:for-each select="/d:document/d:item/d:rawitemdata[@type='502']">
    <xsl:if test="../@name='From' or ../@name='SendTo' or ../@name='Subject' or ../@name='CopyTo'">
    <tr>
    <td valign="top"><xsl:value-of select="../@name"/>:</td><td><span style="text-transform: base64"><xsl:copy-of select="text()"/></span></td>
    </tr>
    </xsl:if>
    </xsl:for-each>
    <xsl:for-each select="/d:document/d:item/d:text">
    <xsl:if test="text() and (../@name='From' or ../@name='SendTo' or ../@name='Subject' or ../@name='CopyTo')">
    <tr>
    <td valign="top"><xsl:value-of select="../@name"/>:</td><td><xsl:copy-of select="text()"/></td>
    </tr>
    </xsl:if>
    </xsl:for-each>
    <xsl:for-each select="/d:document/d:item/d:textlist/d:text">
    <xsl:if test="text() and (../../@name='From' or ../../@name='SendTo' or ../../@name='Subject' or ../../@name='CopyTo')">
    <tr>
    <td valign="top"><xsl:value-of select="../../@name"/>:</td><td><xsl:copy-of select="text()"/></td>
    </tr>
    </xsl:if>
    </xsl:for-each>

Viewing 15 posts - 496 through 510 (of 1,410 total)