I will describe my situation.
I have an application server (Domino) and on it running a web application.
On this web application users have a basic editor (uses xhtml) to input basic text/formats/tables and upload images that are included in the document
Images are uploaded in notes database and url is passed into this editor (xml source for this is standard html like <img src="" />) and I parse it like this:
part of xsl file:
. <xsl:template match="img">
<fo:block space-after="12pt">
<fo:external-graphic src="" PROTECTED]">
<xsl:if test="@width">
<xsl:attribute name="width"><xsl:choose><xsl:when test="contains(@width, 'px')"><xsl:value-of select="@width"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(@width, 'px')"/></xsl:otherwise></xsl:choose></xsl:attribute>
</xsl:if>
<xsl:if test="@height">
<xsl:attribute name="height"><xsl:choose><xsl:when test="contains(@height, 'px')"><xsl:value-of select="@height"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(@height, 'px')"/></xsl:otherwise></xsl:choose></xsl:attribute>
</xsl:if>
</fo:external-graphic>
</fo:block>
</xsl:template>
Users have a possibility to create pdf of created document from this application. All works fine - I generate xml on demand and transform it with xsl file that is prepared.
The problem is when transformer fetches image from database I do not know how to pass username and password for authentication and the
process that requests the image now gets a Login Page instead (html response) and when trying to include it into PDF an error that is printed in the log:
[ERROR] Could not load external SVG: White spaces are required between publicId and systemId.
[ERROR] Error while creating area : No ImageReader for this type of image (http://domino.example.com/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif)
So my question is:
Is there a way to set username and password for fop to use when fetching image from publicly not accessible database resources?
Thank you all for helping.
Jelka
- how to pass to fop user and password needed for basic auth... jelka . kosir
- Re: how to pass to fop user and password needed for b... David Delbecq
- Re: how to pass to fop user and password needed f... jelka . kosir
- Re: how to pass to fop user and password need... David Delbecq
- Re: how to pass to fop user and password ... Jeremias Maerki
- Re: how to pass to fop user and pass... jelka . kosir
- Re: how to pass to fop user and ... Jeremias Maerki
- Re: how to pass to fop user ... Jeremias Maerki
- Re: how to pass to fop user ... Jeremias Maerki
- Re: how to pass to fop user ... jelka . kosir
- Re: how to pass to fop user ... David Delbecq
