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 › Re: Re: Not able to extract a PDF attachment from DXL File
Hi,
I tried on my own to implement the logic of extracting the embedded documents which are not inside the
<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>