Forum Replies Created
-
AuthorPosts
-
in reply to: Out of memory error while converting a dxl file May 13, 2013 at 05:47#29221
Where is these java files located (PdfAgent(R7).java or Dxl2Pdf.java) can you please provide the link?
in reply to: How to add sent date in the header of the document May 12, 2013 at 08:40#29300Hi,
I think that if we remove the +0200 from the date then it would be easy to format the date by calling format-date template .Is it possible to remove the +0200 from the date?
Thank you.
in reply to: Not able to extract a PDF attachment from DXL File May 12, 2013 at 08:10#29325Hi,
I tried on my own to implement the logic of extracting the embedded documents which are not inside the
<attachment-ref>tag.Actually the file content is inside the tag d:item/d:object/d:file/d:filedata.In the XSL file ,for<attachment-ref>tag you have written the logic as below. I would like to know what is the PDF4ML attachment tag will do? Does the attribute in this tags like description ,height are mandatory?Also you have written an image tag followed by pd4ml-attachment tag I would like to know what the image tag will do as well?<xsl:template match="d:attachmentref"> <xsl:variable name="attkey"><xsl:value-of select="@name"/></xsl:variable> <pd4ml-attachment icon="Area"> <xsl:attribute name="description"><xsl:value-of select="@displayname"/></xsl:attribute> <xsl:attribute name="height"><xsl:value-of select="d:picture/@height"/></xsl:attribute> <xsl:attribute name="width"><xsl:value-of select="d:picture/@width"/></xsl:attribute> <xsl:call-template name="getbody"> <xsl:with-param name="p1" select="$attkey"/> </xsl:call-template> </pd4ml-attachment> <img> <xsl:attribute name="height"><xsl:value-of select="d:picture/@height"/></xsl:attribute> <xsl:attribute name="width"><xsl:value-of select="d:picture/@width"/></xsl:attribute> <xsl:attribute name="src">data:image/gif;base64,<xsl:value-of select="normalize-space(d:picture/d:gif)" disable-output-escaping="yes"/><xsl:value-of select="normalize-space(d:picture/d:notesbitmap)" disable-output-escaping="yes"/></xsl:attribute> <xsl:attribute name="border">0</xsl:attribute> </img> </xsl:template>
in reply to: Text running off the page and same email content repeating May 6, 2013 at 08:54#29320Thanks.Yes the solution provided by you really helped to overcome the pagewidth issue but the font size of the PDF content decreased.Is there any way to increase it?
in reply to: Out of memory error while converting a dxl file May 6, 2013 at 06:56#29219Hi ,
I am not sure where you want me to add the above portion of the code.Looking at the code it seems to be like you are creating the file in temp folder and adding some temprefrence tag to the html body.But after adding if you could give the details of what we need to do this return value it would be very helpful.
I also don’t want to store the file in temp loaction I just want to store the file in some file path other than temp folder.I will also give the code snippet of what I currenlty do to convert DXL to PDF and to extract attachements from the converted PDF File.
I am using below method to conver the html to pdf.
pd4ml.render(new StringReader(inputHTML), fos, new URL("file:."), "utf-8");
The inputHTML for the above function is framed as below.The contents of the DXL file is XMl source and the Pd4ml.xsl as xsl soruce.The below function returns the html content needed to pass to the above render function.try { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); javax.xml.transform.Source xmlSource = new javax.xml.transform.stream.StreamSource(new StringReader(xml)); javax.xml.transform.Source xsltSource = new javax.xml.transform.stream.StreamSource(new StringReader(xsl)); javax.xml.transform.Result result = new javax.xml.transform.stream.StreamResult(baos); javax.xml.transform.TransformerFactory transFact = javax.xml.transform.TransformerFactory.newInstance(); javax.xml.transform.Transformer trans = transFact.newTransformer(xsltSource); trans.transform(xmlSource, result); return baos.toString("utf-8"); }After the PDF file has been rendered I am extracting the attachement from that PDF file.
Kindly let me know if I have to do in some alrternate way.
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: 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
<attachment-ref>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: MIME.HTM in the converted PDF April 23, 2013 at 10:38#29288So no way to completly fix the problem?
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: How to add sent date in the header of the document April 22, 2013 at 12:07#29298Thank 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
<xsl:if test="d:rawitemdata"> <td> <span style="text-transform: base64"> <xsl:copy-of select="."/> </span> </td> </xsl:if>
Kindly help.
in reply to: Text running off the page and same email content repeating April 22, 2013 at 09:49#293171. If I increase the pd4ml.setHtmlWidth() parameter , this problem will be cured only for this file or for all the DXL files?
2. I don’t want two email versions.Is it not possible to suppress the HTML version?Why only for specific files has this porblem?
in reply to: Out of memory error while converting a dxl file April 22, 2013 at 09:35#29215Please provide an update on this issue.
in reply to: MIME.HTM in the converted PDF April 22, 2013 at 09:34#29286Please provide an update on this issue.
in reply to: How to add sent date in the header of the document April 18, 2013 at 16:12#29295Hi ,
I tired this but it works for some file but for some of the files the date is printed with junk characters.Attached the sample DXL and converted PDF which prints the junk characters.Also I want to display date in below format 4/18/2013 9:37 PM.Is that possible?
in reply to: Out of memory error while converting a dxl file April 16, 2013 at 12:45#29214Please update.
-
AuthorPosts
