You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Christopher R. Maden" <cr...@maden.org> on 2001/12/01 08:47:41 UTC

Re: fo:external-graphic question

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 10:28 30-11-2001, Savino, Matt C wrote:
>But every time I try to use something like this:
><fo:external-graphic
>src="file://./config/isappdev/applications/RVWebApp1/WEB-INF/lib/ClinTrialLo
>goGreenBig.gif" />

I wouldn't expect that to work; that says make a file connection to the 
host '.', which is the root of the entire Internet.

If you want a relative URI, why not just use a relative URI?  I.e., 
src="config/isappdev/applications/RVWebApp1/WEB-INF/lib/ClinTrialLogoGreenBig.gif"? 
Then the current protocol, host, and directory will be used as the base URI 
and the relative URI interpreted relative to that.

~Chris
- -- 
Christopher R. Maden, Principal Consultant, HMM Consulting Int'l, Inc.
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://www.hmmci.com/ > <URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4  5DFC AC52 F825 AFEC 58DA
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8

iQA/AwUBPAiLHKxS+CWv7FjaEQJr5wCdEwscbmOp7ol0fOokVKmMTAcJhwQAn0o6
ubOxz9sc2W5+AWugaMWMAbkm
=BJwq
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: fo:external-graphic question

Posted by Todd McGrath <mc...@supergloo.com>.
Thank you, absolute file paths definitely help when using static images.
However, I have servlets that produce PNG graphs.  I don't think I can
specify an absolute file path for dynamically generated images.

-----Original Message-----
From: Matt Savino [mailto:matt@synergizethis.com]
Sent: Wednesday, December 05, 2001 1:09 AM
To: fop-dev@xml.apache.org
Subject: Re: fo:external-graphic question


Ours is an SSL site. Like I wrote I just sue the absolute file path
below.

It works for all the Unix boxes. PDF imbeds the image anyway, rather
than just linking to it and letting the browser server it up like HTML
does. So you shouldn't see that secure-to-insecure error.



Todd McGrath wrote:
>
> Will this work for SSL sites?
>
> I have servlets that produce images (graphs) and I'm try to include them
in
> the generated PDFs.  I wasn't sure that you could use relative path for
> "src" attribute?  Since I wasn't able to get it working, I needed to
create
> a separate site in order to use absolute path to servlets (example:
> http://localhost/Pie, where Pie is the graph producing servlet)
Obviously,
> I would like to use relative so users do not see pop-up message about "not
> secure"
>
> Is anyone using FOP in SSL enabled sites with external-graphic that are
not
> static filebased?
>
> Todd
>
> -----Original Message-----
> From: Max Froumentin [mailto:mf@w3.org]
> Sent: Monday, December 03, 2001 10:26 AM
> To: fop-dev@xml.apache.org
> Subject: Re: fo:external-graphic question
>
> You wrote:
>
> > If you want a relative URI, why not just use a relative URI?  I.e.,
> >
>
src="config/isappdev/applications/RVWebApp1/WEB-INF/lib/ClinTrialLogoGreenBi
> g.gif"?
> > Then the current protocol, host, and directory will be used as the base
> URI
> > and the relative URI interpreted relative to that.
>
> And of course this should ideally be
>
> src="url(config/isappdev...)"
>
> Max.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: fo:external-graphic question

Posted by Matt Savino <ma...@synergizethis.com>.
Ours is an SSL site. Like I wrote I just sue the absolute file path
below. 

It works for all the Unix boxes. PDF imbeds the image anyway, rather
than just linking to it and letting the browser server it up like HTML
does. So you shouldn't see that secure-to-insecure error.



Todd McGrath wrote:
> 
> Will this work for SSL sites?
> 
> I have servlets that produce images (graphs) and I'm try to include them in
> the generated PDFs.  I wasn't sure that you could use relative path for
> "src" attribute?  Since I wasn't able to get it working, I needed to create
> a separate site in order to use absolute path to servlets (example:
> http://localhost/Pie, where Pie is the graph producing servlet)  Obviously,
> I would like to use relative so users do not see pop-up message about "not
> secure"
> 
> Is anyone using FOP in SSL enabled sites with external-graphic that are not
> static filebased?
> 
> Todd
> 
> -----Original Message-----
> From: Max Froumentin [mailto:mf@w3.org]
> Sent: Monday, December 03, 2001 10:26 AM
> To: fop-dev@xml.apache.org
> Subject: Re: fo:external-graphic question
> 
> You wrote:
> 
> > If you want a relative URI, why not just use a relative URI?  I.e.,
> >
> src="config/isappdev/applications/RVWebApp1/WEB-INF/lib/ClinTrialLogoGreenBi
> g.gif"?
> > Then the current protocol, host, and directory will be used as the base
> URI
> > and the relative URI interpreted relative to that.
> 
> And of course this should ideally be
> 
> src="url(config/isappdev...)"
> 
> Max.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


RE: fo:external-graphic question

Posted by Todd McGrath <mc...@supergloo.com>.
Will this work for SSL sites?

I have servlets that produce images (graphs) and I'm try to include them in
the generated PDFs.  I wasn't sure that you could use relative path for
"src" attribute?  Since I wasn't able to get it working, I needed to create
a separate site in order to use absolute path to servlets (example:
http://localhost/Pie, where Pie is the graph producing servlet)  Obviously,
I would like to use relative so users do not see pop-up message about "not
secure"

Is anyone using FOP in SSL enabled sites with external-graphic that are not
static filebased?

Todd


-----Original Message-----
From: Max Froumentin [mailto:mf@w3.org]
Sent: Monday, December 03, 2001 10:26 AM
To: fop-dev@xml.apache.org
Subject: Re: fo:external-graphic question


You wrote:

> If you want a relative URI, why not just use a relative URI?  I.e.,
>
src="config/isappdev/applications/RVWebApp1/WEB-INF/lib/ClinTrialLogoGreenBi
g.gif"?
> Then the current protocol, host, and directory will be used as the base
URI
> and the relative URI interpreted relative to that.

And of course this should ideally be

src="url(config/isappdev...)"

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: fo:external-graphic question

Posted by Max Froumentin <mf...@w3.org>.
You wrote:

> If you want a relative URI, why not just use a relative URI?  I.e., 
> src="config/isappdev/applications/RVWebApp1/WEB-INF/lib/ClinTrialLogoGreenBig.gif"? 
> Then the current protocol, host, and directory will be used as the base URI 
> and the relative URI interpreted relative to that.

And of course this should ideally be

src="url(config/isappdev...)"

Max.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org