Yes, I did try this notation and the error came up the same (Could not load external SVG: ... error)
If I try to use such url in a web browser for example, when first requesting this url a "page not found" is displayed and all next responses to this
same request retrieve an empty page (there is some html but the <body> tag is empty so blank page is displayed).
I also noticed that with using wget with this type of url, the image is retrieved from the server correctly.
Thank you David for the suggestion, I was kind of sad to notice that this doesn't work as I thought it would.
David Delbecq <[EMAIL PROTECTED]>
13.10.2005 15:33
|
|
Did you try this kind of url?
http://user:[EMAIL PROTECTED]/database.nsf/0/A3402F5B583F538AC1257093004C41C8/$File/image.gif
[EMAIL PROTECTED] a écrit :
>
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]