Re: Creating PDF with graphics

2002-10-25 Thread Ralph Seidl
Hi Michael,

J.Pietschmann is right, I also had trouble with the batik and fop jars.
The jar-Files I use now:

fop.jar (V20.4) 1.694.560 Bytes
batik.jar (from fop V20.4) 2.163.538 Bytes

I'm using: 
cocoon 2.0.3 
tomcat 4.0.4
jdk 1.3.1

under NT 4.0 and Solaris (under Solaris I use the PJA-Toolkit because I
have no X-Windows on this server)

If you use this jars and you get no java.lang.NoClassDefFoundError I
guess my original code should work

Hope this helps,

Ralph

[EMAIL PROTECTED] wrote:
> 
> Ralph, many thanks, this is, what I expected. If it works, I only have to
> add "svg:" to the graphics tag. But it currently doesn't work. The result
> is a broken PDF output - only about the 10 first bytes from the PDF. I
> played a bit with your code and I found, that the line " (closed with the matching end tag) killed the PDF creation.
> 
>  
>
>  
>  
>
>  
> 
> As you can see, I replaced the "800.0" and "8.0" values, because I got a
> error message about a missing transformation parameter or so. After doing
> this, the last log entry in "catalina.out", that seems to be written in
> the case of the "svg:svg" block, is:
> 
> java.lang.NoClassDefFoundError: org/apache/batik/dom/svg/DefaultSVGContext
> 
> I wonder about this, because the SVG-Demo from Cocoon works fine and
> contains similar code as yours.
> 
> Do I have to reconfigure anything or install something? I installed the
> normal Cocoon 2.0.3 package and Tomcat 4.1.8 on a Linux box. There is a
> package "batik-all-1.5b2.jar" installed in the cocoon lib-directory. I
> didn't understand what's wrong. I use the J2SDK 1.4.0 from the Sun site ;-
> ).
> 
> Meanwhile, I read some docs about "instream-foreign-object" and found,
> that your code looks 100% correct. So I assume it's my mistake.
> 
> Other messages here in the list are also about
> a "java.lang.NoClassDefFoundError", but for other classes. It looks like a
> typical configuration- oder dependency problem. But I found no solution
> anywhere.
> 
> Any suggestion?
> 
> [EMAIL PROTECTED] wrote at
> Thu, 24 Oct 2002 17:36:21 +0200:
> 
> >Hi,
> >
> >try something like
> >
> > 
> >   
> > http://www.w3.org/2000/svg"; width="800.0"
> >height="8.0">
> >   
> > 
> >   
> > 
> >   
> > 
> >
> >If you are looking for examples take a look at the batik-project also
> >from apache ( http://xml.apache.org/batik ).
> 
> Michael Fridrich
>

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Creating PDF with graphics

2002-10-24 Thread Ralph Seidl
Hi,

try something like

 
   
 http://www.w3.org/2000/svg"; width="800.0"
height="8.0">
   
 
   
 
   
 

If you are looking for examples take a look at the batik-project also
from apache ( http://xml.apache.org/batik ).

Greetings,

Ralph

Ryan Agler wrote:
> 
> If you set up your sitemap right, you can pull this off (well, most of
> it, not sure how you would do borders). First, you want to create
> pipelines for the images you want to create:
> 
> 
>
>
>
> 
> 
> Then, in your fo: stylesheet --
> 
> http://www.mysite.com/pic1.dynamic.jpeg"/>
> http://www.mysite.com/pic2.dynamic.jpeg"/>
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:michael.fridrich@;everymail.net]
> Sent: Thursday, October 24, 2002 10:34 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Creating PDF with graphics
> 
> Bert, a good idea, using graphics from an external source.
> I think, I will use it too. But what I need is a way to
> draw graphics (like the SVG-sample) inside my text
> document, to draw fancy borders or other layout elements.
> 
> SVG seems to be good for this, the SVG sample is
> impressive! I found some good looking SVG samples in the
> net. But I don't know, how to include the SVG elements into
> my stylesheet or whereever, to make them appear in the PDF
> result.
> 
> Are there any samples for Cocoon where I can learn how to
> do this? I'm almost new to Cocoon, so I think, sample files
> or applications will be the best to learn how this works.
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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