[xep-support] Adobe SVG

Nikolai Grigoriev grig at renderx.com
Tue Jun 22 07:42:37 PDT 2004


James,

your problem is not related to SVG, but rather to limitations in PNG support in XEP.
The file that you get from Illustrator contains >150 Kb of proprietary Adobe stuff
(non-SVG), plus a raster image in PNG, embedded using 'data:' URI scheme.
 
I attach the PNG image that I extracted. (It is only 3.4 Kb when decoded, and is the 
only meaningful contents of the 190+ Kb SVG file. I wonder why do you need all this 
SVG dressing at all?)

The PNG image uses a transparent background. Unfortunately, PNG transparency 
support in XEP is limited: see http://xep.xattic.com/xep/doc/spec.html#PNG 
for details: we can only map one color as transparent. Your file uses more
transparent colors, and one of them happens to be black; XEP draws it 
as opaque, producing the effect you witness.

Right now, the only feasible way to work around this issue consists in using opaque
PNG with white background. 

Best regards,
Nikolai Grigoriev
RenderX

----- Original Message ----- 
From: "James Drayton" <James.Drayton at Solipsys.com>
To: "'Alex Peshkov'" <support at renderx.com>
Sent: Tuesday, June 22, 2004 6:16 PM
Subject: RE: Re[2]: [xep-support] Adobe SVG


Here you go...

-----Original Message-----
From: Alexander Peshkov [mailto:peshkov at renderx.com] 
Sent: Tuesday, June 22, 2004 4:47 AM
To: James Drayton
Cc: support at renderx.com
Subject: Re[2]: [xep-support] Adobe SVG

Hello James,

There was no attachment with your message. Please re-send it directly at
support at renderx.com.

Best regards,
Alexander Peshkov                             mailto:peshkov at renderx.com
RenderX


JD> Nikolai,

JD> Thank you.  I am sorry to have missed this obvious error.  One more
JD> question:

JD> I have attached a SVG that when viewed by itself in Internet Explorer or
in
JD> a PDF created with FOP maintains a white background.  However, in a PDF
JD> created with XEP the background is black.  Why does this happen?

JD> ...Thank you once again for your time and consideration...

JD> Regards,

JD> James

JD> -----Original Message-----
JD> From: owner-xep-support at renderx.com
[mailto:owner-xep-support at renderx.com]
JD> On Behalf Of Nikolai Grigoriev
JD> Sent: Monday, June 21, 2004 1:33 PM
JD> To: xep-support at renderx.com
JD> Subject: Re: [xep-support] Adobe SVG

JD> James,

>> I can do following and not receive an error:
>> ...
>> <arg line="-DROOT=${XEP_HOME} -Dcom.renderx.sax.entityresolver=foo 

JD> You are specifying these classes as arguments to XSLDriver class,
JD> whereas they should be arguments _to the Java machine itself_.
JD> In Ant, system variables for a forked Java call are set using <jvmarg>:

JD> <java classname="com.renderx.xep.XSLDriver" ...>
JD> <arg line="...."/>
JD> <jvmarg
JD>
value="-Dcom.renderx.sax.entityresolver=com.sun.resolver.tools.CatalogResolv
er"/>>
JD> <jvmarg
JD>
value="-Dcom.renderx.jaxp.uriresolver=com.sun.resolver.tools.CatalogResolver
"/>>
JD> </java>

JD> Regards,
JD> Nikolai


JD> ----- Original Message ----- 
JD> From: "James Drayton" <James.Drayton at Solipsys.com>
JD> To: <xep-support at renderx.com>
JD> Sent: Monday, June 21, 2004 8:26 PM
JD> Subject: RE: [xep-support] Adobe SVG


JD> Nikolai,

JD> It appears that the following:

JD> java 
JD>    -Dcom.renderx.sax.entityresolver=.sun.resolver.tools.CatalogResolver
JD>    -Dcom.renderx.jaxp.uriresolver=com.sun.resolver.tools.CatalogResolver

JD> I can do following and not receive an error:

JD> <propertycopy name="PDF_DOC" from="${docType}_PDF" />
JD>   <echo message="Building ${docType} PDF Document with XEP..." />
JD>     <java classname="com.renderx.xep.XSLDriver"
JD>           classpathref="docbook.classpath"
JD>           fork="true"
JD>           dir="."
JD>           maxmemory="${MAX_MEMORY}"
JD>           failonerror="true"
JD>     >
JD>     <arg line="-DROOT=${XEP_HOME} -Dcom.renderx.sax.entityresolver=foo
JD> -Dcom.renderx.jaxp.uriresolver=foo
JD> -fo ${DOC_TMP_DIR}/.tmp${docType}.PDF.fo -pdf ${PDF_DOC}" />
JD>     </java>


JD> -------------------
JD> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
JD> in the body of the message to majordomo at renderx.com from the address
JD> you are subscribed from.
JD> (*) By using the Service, you expressly agree to these Terms of Service
JD> http://www.renderx.com/tos.html



JD> -------------------
JD> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
JD> in the body of the message to majordomo at renderx.com from the address
JD> you are subscribed from.
JD> (*) By using the Service, you expressly agree to these Terms of Service
http://www.renderx.com/tos.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: RaytheonBlackSolipsys.png
Type: image/png
Size: 3395 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20040622/6cf527ac/attachment.png>


More information about the Xep-support mailing list