Re: Batik Extension/FOP problem

2003-03-06 Thread Swapan Golla
Yes. I am using the 0.20.5rc2. May be for the batik
extensions to work through FOP, I need to tweak some
batik code also??

Swapan.



--- Keiron Liddle [EMAIL PROTECTED] wrote:
  Hi All,
 I am trying to use batik extensions through
  FOP. I added BatikElementMapping and BatikObj
 objects
  into my FOP src and then registered them in the
 driver
  class but I am still getting some exceptions. Can
  anybody help me out ? I am trying to embed the
  flowText.svg ( provided by batik distribution )
 into a
  simple fo document and then trying to convert into
 a
  pdf.
 
 As the exception is happening in batik it may be a
 version problem.
 Have you tried with the latest FOP rc.
 
  Swapan.
  
  [ERROR] svg graphic could not be built: null
  java.lang.ClassCastException
  at
 

org.apache.batik.bridge.CSSUtilities.getComputedStyle(CSSUtilities.java:96)
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



Batik Extension/FOP problem

2003-03-06 Thread Swapan Golla
Hi All,
   I am trying to use batik extensions through
FOP. I added BatikElementMapping and BatikObj objects
into my FOP src and then registered them in the driver
class but I am still getting some exceptions. Can
anybody help me out ? I am trying to embed the
flowText.svg ( provided by batik distribution ) into a
simple fo document and then trying to convert into a
pdf.

Swapan.


[ERROR] svg graphic could not be built: null
java.lang.ClassCastException
at
org.apache.batik.bridge.CSSUtilities.getComputedStyle(CSSUtilities.java:96)
at
org.apache.batik.bridge.CSSUtilities.convertDisplay(CSSUtilities.java:509)
at
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:176)
at
org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:148)
at
org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:188)
at
org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:148)
at
org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:76)
at
org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.java:513)
at
org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(PDFRenderer.java:472)
at
org.apache.fop.svg.SVGArea.render(SVGArea.java:58)
at
org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(PDFRenderer.java:456)
at
org.apache.fop.layout.inline.ForeignObjectArea.render(ForeignObjectArea.java:46)
at
org.apache.fop.render.AbstractRenderer.renderAreaContainer(AbstractRenderer.java:408)
at
org.apache.fop.layout.ColumnArea.render(ColumnArea.java:29)
at
org.apache.fop.render.AbstractRenderer.renderSpanArea(AbstractRenderer.java:57).


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



Re: Wrong operand type error in ASV 3.0

2003-03-02 Thread Swapan Golla
The error still persists even after I changed the
width to 1.

Swapan.


--- Keiron Liddle [EMAIL PROTECTED] wrote:
 
  !-- If I remove this line, everything seems to
 work
  fine --
  svg:line x1=58 y1=179 x2=403 y2=179
  stroke=#00 stroke-
  width=0.5 /
 
 IIRC It is probably an error caused by this line
 being 0.5 width. In PDF lines can 
 only be whole numbers and it might wrongly be
 inserting 0.5 in the PDF causing 
 the error.
 Try making it width 1.
 
 If you need a 0.5 width line it can be scaled.
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



Wrong operand type error in ASV 3.0

2003-02-27 Thread Swapan Golla
Hi All,
I have written a small svg document and embedding this
svg 
document in an FO document to covert to pdf. I guess
the FOP 
completely depends on batik for SVG2PDF conversion.
When I try to 
open the resulting pdf, it says wrong operand type.
Can anybody help ?

Thanks in advance,
Swapan.

?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master
margin-right=1.5cm
margin-left=1.5cm
margin-bottom=2cm
margin-top=1cm
page-width=21cm
page-height=29.7cm
master-name=first
fo:region-body margin-top=0cm margin-bottom=0cm/
fo:region-before extent=0cm/
fo:region-after extent=0cm/
/fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-reference=first
fo:static-content flow-name=xsl-region-before
fo:block line-height=14pt font-size=10pt
text-align=endEmbedding SVG examples/fo:block
/fo:static-content
fo:static-content flow-name=xsl-region-after
fo:block line-height=14pt font-size=10pt
text-align=endPage fo:page-number//fo:block
/fo:static-content

fo:flow flow-name=xsl-region-body
fo:block
fo:instream-foreign-object


svg:svg width=16.1925cm height=20.955cm
viewBox=0 0 8.5 11 
version=1.1 xmlns:svg=http://www.w3.org/2000/svg;
svg:g transform=matrix(1 0 0 1 0 0)
/svg:g
svg:g transform=matrix(0.01041667 0 0 0.01041667 0
0)
svg:text x=48 y=108 font-family=Times New Roman
font-
size=20pt font-weight=bold fill=#00
stroke=none text-
anchor=start 
svg:tspan x=48 y=108 textLength=57
ABC/svg:tspan
svg:tspan x=116 y=108 textLength=114
Company/svg:tspan
/svg:text
svg:text x=628 y=66.53516 font-family=Times New
Roman font-
size=15.6pt fill=#00 stroke=none
text-anchor=start 
svg:tspan x=628 y=66.53516 O/svg:tspan
/svg:text
svg:text x=644 y=66.53516 font-family=Times New
Roman font-
size=12pt fill=#00 stroke=none
text-anchor=start 
svg:tspan x=644 y=66.53516 textLength=107 
RGANIZATION/svg:tspan
/svg:text
!-- If I remove this line, everything seems to work
fine --
svg:line x1=58 y1=179 x2=403 y2=179
stroke=#00 stroke-
width=0.5 /

/svg:g
/svg:svg

/fo:instream-foreign-object
/fo:block 
/fo:flow
/fo:page-sequence
/fo:root


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



Re: XMLReader...

2003-02-26 Thread Swapan Golla
Any ways to instruct FOP to use a particular SAXParser
rather than setting as system property ? 

Swapan.

--- J.Pietschmann [EMAIL PROTECTED] wrote:
 Swapan Golla wrote:
  [ERROR] Could not load external SVG: SAX2 driver
 class
  weblogic.xml.jaxp.RegistryXMLReader loaded but
 cannot
  be instantiated
   (no empty public constructor?)
 This is something you should complain to your
 WebLogic
 support.
 
  Is there a way I can instruct the SVG transcoder
 API
  to use a specific xmlreader than the one used by
  weblogic ? 
 It depends. The easiest way would be to put the jar
 with the parser you want to use in the classpath
 before
 the WebLogic jar. If you use JDK 1.4 , you can copy
 the
 jar to the JDK's lib/endorsed directory. Another
 possiblity
 is to set the java.xml.parsers.SAXParserFactory
 service
 to the class name of the factory you want to use.
 
 J.Pietschmann
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



HTML to FO

2003-02-26 Thread Swapan Golla
I am having a need to convert html ( or xhtml ) to fo
documents and then to pdf. Any suggestions on the best
ways to achieve this ? I should be able to use/call 
this from my java program.

Thanks in advance,
Swapan.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



XMLReader...

2003-02-21 Thread Swapan Golla
I am trying to convert an svg document into pdf using
fo:external-graphic. It doesn't seem to work
properly on weblogic server. It gives the following
error:

[ERROR] Could not load external SVG: SAX2 driver class
weblogic.xml.jaxp.RegistryXMLReader loaded but cannot
be instantiated
 (no empty public constructor?)
[ERROR] Error while creating area : No ImageReader for
this type of image 
(http:///xxx//image.svg)

Is there a way I can instruct the SVG transcoder API
to use a specific xmlreader than the one used by
weblogic ? 


Thanks in advance,
Swapan.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



Trademark and copyright symbols

2002-10-07 Thread Swapan Golla

Hi All,
   I have text node which has copyright (#169;) 
and trademark (#x2122;) symbols embedded in it. When
I produce pdf using FOP 0.20.4, I get © for copyright
symbols on windows 2000 platform and Â#© on linux
redhat 7.2 platform. I am using jdk 1.3.1_03. Anybody
know why this is occuring ?

Any help is appreciated.

Swapan.


__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]