HTML to PDF / DOCX / RTF Java converter library Forums PD4ML v3 Archived Forums (Read Only) Troubleshooting Not able to extract a PDF attachment from DXL File

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #26839

    Hi PD4ML support,

    I have emailed you a file in which I could not extract the PDF inside the DXL.Your help is greatly appreciated.Since the DXL file size is bigger I am not able to attache the file here.
    Thanks.

    #29322

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

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

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

    #29324

    Current XSL by an occurrence of an lookups a matching .

    You would only need to implement (before the closing ) an iterator through tags, which tests that there is no referenced .

    The solution is not going to impact the remaining XSL logic.

    #29325

    Hi,

    I tried on my own to implement the logic of extracting the embedded documents which are not inside the tag.Actually the file content is inside the tag d:item/d:object/d:file/d:filedata.In the XSL file ,for 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"><br /> <xsl:variable name="attkey"><xsl:value-of select="@name"/></xsl:variable><br /> <pd4ml-attachment icon="Area"><br /> <xsl:attribute name="description"><xsl:value-of select="@displayname"/></xsl:attribute><br /> <xsl:attribute name="height"><xsl:value-of select="d:picture/@height"/></xsl:attribute><br /> <xsl:attribute name="width"><xsl:value-of select="d:picture/@width"/></xsl:attribute><br /> <br /> <xsl:call-template name="getbody"><br /> <xsl:with-param name="p1" select="$attkey"/><br /> </xsl:call-template><br /> <br /> </pd4ml-attachment><br /> <img><br /> <xsl:attribute name="height"><xsl:value-of select="d:picture/@height"/></xsl:attribute><br /> <xsl:attribute name="width"><xsl:value-of select="d:picture/@width"/></xsl:attribute><br /> <xsl:attribute name="src">data:image/gif;base64,<xsl:value-of<br /> select="normalize-space(d:picture/d:gif)" disable-output-escaping="yes"/><xsl:value-of<br /> select="normalize-space(d:picture/d:notesbitmap)" disable-output-escaping="yes"/></xsl:attribute><br /> <xsl:attribute name="border">0</xsl:attribute><br /> </img><br /> </xsl:template>

    #29326

    The attached implements the missing functionality.

Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.