Forum Replies Created
-
AuthorPosts
-
in reply to: Not Saving pdf file usig Jsp Tld April 22, 2013 at 12:39#29327
1. 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 19, 2013 at 19:32#29316In 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 April 19, 2013 at 18:10#29322The 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 April 18, 2013 at 17:22#29297here is an updated XSL…
in reply to: How to add sent date in the header of the document April 18, 2013 at 16:37#29296Yes, 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 April 18, 2013 at 11:55#29294You 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 April 17, 2013 at 12:31#29307I 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 April 16, 2013 at 12:58#29285Tomorrow 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 April 16, 2013 at 12:56#29275As 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 April 15, 2013 at 13:43#29305Do you use Acrobat Reader or Acrobat to save PDFs?
in reply to: Extracted attachment from DXL says it is damaged April 15, 2013 at 11:18#29273Did you try to export DXL and to force to uncompress attachments? Did it help?
in reply to: Message on Footer April 10, 2013 at 15:17#29302It 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 April 10, 2013 at 13:34#28801I replied to the question in the thread:
html-pdf-faq-f1/stop-displaying-dynamic-data-when-user-saves-the-document-t702.html
in reply to: Stop displaying dynamic data when user saves the document April 10, 2013 at 13:33#29303The 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 April 10, 2013 at 11:49#29291You 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>
-
AuthorPosts
