Hi,
        I got the desired output using Batik. I am now trying to integrate it
into my application.

        Since Batik uses the PDFTranscoder class from FOP, what are the
various jar's that I need to include in my project path. I understand that I
should remove the fop.jar (from version 0.20.5) from my project path. Which
are the jar's from batik 1.5.1 that I need to include.

        A few requirements in my application is that I'll be embedding custom
fonts and using batik just for SVG to PDF conversion.

Thanks.
Saptarshi.

-----Original Message-----
From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 23, 2004 5:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Handling multiple spaces


Same here. That's why I said earlier, that you should use the PDF
Transcoder (not FOP itself) if you can live without XSL-FO, because if
you need XSL-FO (which I don't know) then you've got bad luck because
there's currently no work-around. The CVS HEAD code is our code
currently being redesigned and it will probably not work for any
real-life application at the moment.

I've just verified the following with success:
- Download Batik 1.5.1 (http://xml.apache.org/batik/)
- Extract the SVG from the FO file into a plain SVG file.
- On the command-line say: 
java -jar batik-rasterizer.jar -m application/pdf pieUnicode.svg

(This uses FOP's PDF Transcoder to convert SVG to PDF. No XSL-FO
involved.)

Produces a nice PDF with spaces respected. If you need to integrate that
in a Java application, then look at the Transcoder documentation here:
http://xml.apache.org/batik/rasterizerTutorial.html
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/E
xampleSVG2PDF.java?rev=HEAD

On 23.12.2004 12:07:50 Saptarshi Sen wrote:
> Hi,
>       I tried to download the latest Code from
> http://cvs.apache.org/snapshots/xml-fop/xml-fop_20041223052817.tar.gz and
> then did a build on it. While converting the fo file into a PDF, I get the
> error:
> 
> Exception in thread "main" java.lang.OutOfMemoryError
>         <<no stack trace available>>
> 
> Attaching the fo file. What could be the possible reason?
> 
> Thanks,
> Saptarshi.
> 
> P.S. I performed the build using the "build.bat" file from FOP 0.20.5; The
> build was successful. Could this have anything to do with this error?


Jeremias Maerki


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

-----------------------------------------------------------------------------------------------------------------------------
Disclaimer
-----------------------------------------------------------------------------------------------------------------------------

"This message(including attachment if any)is confidential and may be 
privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not 
be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If 
you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or 
dissemination of this message in whole or in part is strictly prohibited.  
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission."

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

Reply via email to