You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Stuart Moore <st...@cam.ac.uk> on 2005/01/17 22:28:17 UTC
Fop and SVG with crippled network access.
I'm trying to use Fop 0.20.5 to convert a svg file into a pdf.
Unfortunately this computer is on a private IP address and all external
traffic has to go via a http or a socks proxy. We do not have NAT.
When running it, ZoneAlarm says the program is trying to connect to the
internet - specifically 128.30.52.24 which is a web server at w3.org - I
presume it is trying to download some kind of definition for the svg
file. The connection fails, and I get the message "[ERROR] Connection
timed out: connect". Telling ZoneAlarm to refuse the connection instead
gives me "[ERROR] www.w3.org"
Is there any way I can either tell fop how to connect to the web, or
find out which file it's after and store it locally somewhere?
Apologies if this is a silly question - I've tried googling etc. and got
nowhere.
I am using Java 1.4.2_05 on Windows XP
Stuart Moore
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Fop and SVG with crippled network access.
Posted by Jeremias Maerki <de...@greenmail.ch>.
This is probably caused by a DTD in one of your XML (Source, FO, SVG....)
files. It's probably not FOP that does this connection, but rather your
XML parser that fetches the DTD while parsing an XML file. There are
several paths you can go:
- Try removing unnecessary DTD references in your source XMLs.
- Use XML Commons Resolver [1] to rewrite the URLs that access those DTD
so you can load them from a local repository. This approach, however,
may be a bit difficult because FOP 0.20.5 doesn't support setting a
Resolver for parsing operations. You might need to hack the FOP source
code.
- You can also try to disable the loading of these references, but you
might also have to hack the FOP source code.
[1] http://xml.apache.org/commons/components/resolver/index.html
On 17.01.2005 22:28:17 Stuart Moore wrote:
> I'm trying to use Fop 0.20.5 to convert a svg file into a pdf.
> Unfortunately this computer is on a private IP address and all external
> traffic has to go via a http or a socks proxy. We do not have NAT.
>
> When running it, ZoneAlarm says the program is trying to connect to the
> internet - specifically 128.30.52.24 which is a web server at w3.org - I
> presume it is trying to download some kind of definition for the svg
> file. The connection fails, and I get the message "[ERROR] Connection
> timed out: connect". Telling ZoneAlarm to refuse the connection instead
> gives me "[ERROR] www.w3.org"
>
> Is there any way I can either tell fop how to connect to the web, or
> find out which file it's after and store it locally somewhere?
>
> Apologies if this is a silly question - I've tried googling etc. and got
> nowhere.
>
> I am using Java 1.4.2_05 on Windows XP
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Fop and SVG with crippled network access.
Posted by Barry Klawans <ba...@panscopic.com>.
It sounds like the XML parser is trying to download the SVG DTD from
the w3 server. You could try registering a custom entity resolver with
the parser, and then keep a local copy of the SVG DTD. When you get a
request to resolve the SVG DTD, return the local copy instead of going
to the W3C web site. You could also try turning off validation which
might prevent the parser from fetching the DTD, but that may not work.
(Do parsers fetch them anyway to handle any entity definitions in the
DTD?)
-Barry Klawans
On Jan 17, 2005, at 1:28 PM, Stuart Moore wrote:
> I'm trying to use Fop 0.20.5 to convert a svg file into a pdf.
> Unfortunately this computer is on a private IP address and all
> external traffic has to go via a http or a socks proxy. We do not have
> NAT.
>
> When running it, ZoneAlarm says the program is trying to connect to
> the internet - specifically 128.30.52.24 which is a web server at
> w3.org - I presume it is trying to download some kind of definition
> for the svg file. The connection fails, and I get the message "[ERROR]
> Connection timed out: connect". Telling ZoneAlarm to refuse the
> connection instead gives me "[ERROR] www.w3.org"
>
> Is there any way I can either tell fop how to connect to the web, or
> find out which file it's after and store it locally somewhere?
>
> Apologies if this is a silly question - I've tried googling etc. and
> got nowhere.
>
> I am using Java 1.4.2_05 on Windows XP
>
> Stuart Moore
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org