You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xmlgraphics.apache.org by Ricuzzo <ri...@gmail.com> on 2008/09/02 09:48:27 UTC
PDF over SSL, images not avaliable.
Hello.
I have this problem generating PDF documents dinamically under SSL. I
finally got to display the document under HTPPS, using some headers in my
response (pragma 'public' and cache-control ...), but the problem now is
that images are not displayed, if seems that under https, FOP cannot
recognize or display my logos and pictures embeded in the document. It is
not a certificate problem, not an agreement problem, its like fop cannot
manage or has some kind of problem with retrieving images under encription.
In my xsl-fo, i am invoking the images via example:
<fo:external-graphic src="https://xxxx./ quaestor/img/LogoMinisterio.jpg"
content-width="13em"/>
Any ideas? any other way to get images?
I really need to get rid of this problem, it is mandatory get this thing
done as soon as posible in my job.
ty very much!!!
--
View this message in context: http://www.nabble.com/PDF-over-SSL%2C-images-not-avaliable.-tp19265631p19265631.html
Sent from the Xml Graphics - General mailing list archive at Nabble.com.
---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org
Re: PDF over SSL, images not avaliable.
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
In addition to what Manuel said, the following might help, too:
http://wiki.apache.org/xmlgraphics-fop/HowTo/BasicHttpAuthentication
On 02.09.2008 14:38:56 Manuel Mall wrote:
> I am assuming fop is invoked from a servlet running under weblogic?
>
> Then you need to make sure that from the server weblogic (and in turn fop)
> runs on you can retrieve the image via https. The browser you used verify
> the image retrieval below does it run on the weblogic server? If not, then
> you are not testing in the same environment.
>
> And again my original recommendation stands. Write a simple few line Java
> program to retrieve the image and run it on the same machine as your
> weblogic server using the same Java JRE.
>
> Manuel
>
> > -----Original Message-----
> > From: Ricuzzo [mailto:ricuzzo@gmail.com]
> > Sent: Tuesday, 2 September 2008 8:14 PM
> > To: general@xmlgraphics.apache.org
> > Subject: Re: PDF over SSL, images not avaliable.
> >
> >
> > Hello,
> >
> > Actually, I am able to retrieve the image outside fop, by typing the url
> > of
> > the servlet that generates de image (it gets a blob from the data base and
> > tranforms it into a image), under https. The only problem that really
> > exists
> > is calling an image under https inside my xsl-fo, as i showed below.
> >
> > <fo:external-graphic src="https://xxxx./ quaestor/img/LogoMinisterio.jpg"
> > content-width="13em"/>
> >
> > And there is no any problem with getting the image by typing this in the
> > browser:
> >
> > https://xxxx./ quaestor/binaryServlet?image=1 ... (a stream generated
> > image)
> >
> > or this:
> >
> > https://xxxx./ quaestor/img/LogoMinisterio.jpg (directly invoking an
> > image file inside the java project)
> >
> > By the way, i am using weblogic 8.1.
> >
> > I really dont get it...
> >
> >
> >
> > Ricuzzo wrote:
> > >
> > > Hello.
> > > I have this problem generating PDF documents dinamically under SSL. I
> > > finally got to display the document under HTPPS, using some headers in
> > my
> > > response (pragma 'public' and cache-control ...), but the problem now is
> > > that images are not displayed, if seems that under https, FOP cannot
> > > recognize or display my logos and pictures embeded in the document. It
> > is
> > > not a certificate problem, not an agreement problem, its like fop cannot
> > > manage or has some kind of problem with retrieving images under
> > > encription.
> > >
> > > In my xsl-fo, i am invoking the images via example:
> > >
> > > <fo:external-graphic src="https://xxxx./
> > quaestor/img/LogoMinisterio.jpg"
> > > content-width="13em"/>
> > >
> > > Any ideas? any other way to get images?
> > >
> > > I really need to get rid of this problem, it is mandatory get this
> > thing
> > > done as soon as posible in my job.
> > >
> > > ty very much!!!
> > >
> >
> > --
> > View this message in context: http://www.nabble.com/PDF-over-SSL%2C-
> > images-not-avaliable.-tp19265631p19269031.html
> > Sent from the Xml Graphics - General mailing list archive at Nabble.com.
> >
Jeremias Maerki
---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org
Re: PDF over SSL, images not avaliable.
Posted by Jan Cumps <jc...@gmail.com>.
As Manual Mall wrote, it might work from your browser. But FOP is not
accessing the url via the browser. It goes via Java http/s api.
Have you tried the simple Java test that Manuel proposed? That should
tell you if you can access the resource over https from Java.
Regards, Jan
2008/9/2, Ricuzzo <ri...@gmail.com>:
>
> Hello,
>
> Actually, I am able to retrieve the image outside fop, by typing the url of
> the servlet that generates de image (it gets a blob from the data base and
> tranforms it into a image), under https. The only problem that really exists
> is calling an image under https inside my xsl-fo, as i showed below.
>
> <fo:external-graphic src="https://xxxx./ quaestor/img/LogoMinisterio.jpg"
> content-width="13em"/>
>
> And there is no any problem with getting the image by typing this in the
> browser:
>
> https://xxxx./ quaestor/binaryServlet?image=1 ... (a stream generated
> image)
>
> or this:
>
> https://xxxx./ quaestor/img/LogoMinisterio.jpg (directly invoking an
> image file inside the java project)
>
> By the way, i am using weblogic 8.1.
>
> I really dont get it...
>
>
>
> Ricuzzo wrote:
> >
> > Hello.
> > I have this problem generating PDF documents dinamically under SSL. I
> > finally got to display the document under HTPPS, using some headers in my
> > response (pragma 'public' and cache-control ...), but the problem now is
> > that images are not displayed, if seems that under https, FOP cannot
> > recognize or display my logos and pictures embeded in the document. It is
> > not a certificate problem, not an agreement problem, its like fop cannot
> > manage or has some kind of problem with retrieving images under
> > encription.
> >
> > In my xsl-fo, i am invoking the images via example:
> >
> > <fo:external-graphic src="https://xxxx./ quaestor/img/LogoMinisterio.jpg"
> > content-width="13em"/>
> >
> > Any ideas? any other way to get images?
> >
> > I really need to get rid of this problem, it is mandatory get this thing
> > done as soon as posible in my job.
> >
> > ty very much!!!
> >
>
> --
> View this message in context: http://www.nabble.com/PDF-over-SSL%2C-images-not-avaliable.-tp19265631p19269031.html
> Sent from the Xml Graphics - General mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
> To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: general-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org
Re: PDF over SSL, images not avaliable.
Posted by Ricuzzo <ri...@gmail.com>.
Hello,
Actually, I am able to retrieve the image outside fop, by typing the url of
the servlet that generates de image (it gets a blob from the data base and
tranforms it into a image), under https. The only problem that really exists
is calling an image under https inside my xsl-fo, as i showed below.
<fo:external-graphic src="https://xxxx./ quaestor/img/LogoMinisterio.jpg"
content-width="13em"/>
And there is no any problem with getting the image by typing this in the
browser:
https://xxxx./ quaestor/binaryServlet?image=1 ... (a stream generated
image)
or this:
https://xxxx./ quaestor/img/LogoMinisterio.jpg (directly invoking an
image file inside the java project)
By the way, i am using weblogic 8.1.
I really dont get it...
Ricuzzo wrote:
>
> Hello.
> I have this problem generating PDF documents dinamically under SSL. I
> finally got to display the document under HTPPS, using some headers in my
> response (pragma 'public' and cache-control ...), but the problem now is
> that images are not displayed, if seems that under https, FOP cannot
> recognize or display my logos and pictures embeded in the document. It is
> not a certificate problem, not an agreement problem, its like fop cannot
> manage or has some kind of problem with retrieving images under
> encription.
>
> In my xsl-fo, i am invoking the images via example:
>
> <fo:external-graphic src="https://xxxx./ quaestor/img/LogoMinisterio.jpg"
> content-width="13em"/>
>
> Any ideas? any other way to get images?
>
> I really need to get rid of this problem, it is mandatory get this thing
> done as soon as posible in my job.
>
> ty very much!!!
>
--
View this message in context: http://www.nabble.com/PDF-over-SSL%2C-images-not-avaliable.-tp19265631p19269031.html
Sent from the Xml Graphics - General mailing list archive at Nabble.com.
---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org
Re: PDF over SSL, images not avaliable.
Posted by Ricuzzo <ri...@gmail.com>.
Hi to all, thank you for your responses.
As i mentioned before, there is no problem in getting via https the image
through java in the server outside
the xsl-fo document, so yes, i have verified that i get the image form a
servlet in my weblogic server under https.
So i think Manuel is right, pdf documents cannot simply validate
certificates like browsers do, i ´ve seen some other forums in wich the same
problem exists with pdf´s created with cold fusion (i think not sure), and
their solution, wich makes sense with what Manuel said, was based in getting
the images needed with a relative path, so there is not an https call to get
the images (that is a absolute path), that prevents us from throwing https
requests from a pdf document, that just cannot validate my certicate.
Well...the fact is that i have static images, but also i need dinamycally
generated images from a servlet, so to get some of the images, i need to
call the servelt that generates them inside the pdf, that is , using Https
(=absolute path). I have to check about autentification under pdfs, so thank
you for that link !!!!
Ricuzzo wrote:
>
> Hello.
> I have this problem generating PDF documents dinamically under SSL. I
> finally got to display the document under HTPPS, using some headers in my
> response (pragma 'public' and cache-control ...), but the problem now is
> that images are not displayed, if seems that under https, FOP cannot
> recognize or display my logos and pictures embeded in the document. It is
> not a certificate problem, not an agreement problem, its like fop cannot
> manage or has some kind of problem with retrieving images under
> encription.
>
> In my xsl-fo, i am invoking the images via example:
>
> <fo:external-graphic src="https://xxxx./ quaestor/img/LogoMinisterio.jpg"
> content-width="13em"/>
>
> Any ideas? any other way to get images?
>
> I really need to get rid of this problem, it is mandatory get this thing
> done as soon as posible in my job.
>
> ty very much!!!
>
--
View this message in context: http://www.nabble.com/PDF-over-SSL%2C-images-not-avaliable.-tp19265631p19278329.html
Sent from the Xml Graphics - General mailing list archive at Nabble.com.
---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org