Memory bug?

2002-03-04 Thread Stefano Angelici
Hi all, I'm trying to produce a 235 pages and over 40 gif images PDF
file (each image is about over 150K). When I run fop, I receive the
following message:

rendering areas to PDF
writing out PDF
Exception in thread "main" java.lang.OutOfMemoryError:
at
org.apache.fop.pdf.PDFBinaryStream.encode(PDFBinaryStream.java:96)
at org.apache.fop.pdf.PDFXObject.output(PDFXObject.java:109)
at org.apache.fop.pdf.PDFDocument.output(PDFDocument.java:970)
at
org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:183)
at org.apache.fop.apps.Driver.render(Driver.java:444)
at org.apache.fop.apps.CommandLine.run(CommandLine.java:154)
at org.apache.fop.apps.CommandLine.main(CommandLine.java:249)

I reserved 400Mb for jvm, but it doesn't seems to be enough, and I can't
reserve other memory for my process (the server I'm using is a
developing server, so many other apps need memory). Can anobody give me
a suggestion?
Thanks all

Stefano


Problems with SVG and PDF

2002-02-13 Thread Stefano Angelici
Hi all, I'm trying to import a SVG file into a PDF document. The code in
my xml file is
 

  
http://cesab.elogic.it/shopcesab/immagini/arcs.svg

 
and the relative xsl file has processing instructions as follow
 



 
FOP seems to work well (I have no errors nor warnings) but the produced
PDF document has a blank space instead of the image. The image is an
example of SVG coming with FOP zip file. I can read it well with
Netscape.
Could anybody give me suggestions?
TNX.
 


Basic-link in tables

2002-02-11 Thread Stefano Angelici
Hi, I', trying to do a toc using a table. The xsl code is 








































Pag. 











Everything seems to work, but link areas are placed in a wrong way (but
internal links work fine!), outside the cells containing the links. I'm
using fop 0.15 to do this. Could anyone help me please?
Thank you

--
Stefano Angelici - Sviluppo Software
eLogic S.r.l. - Sistemi Internet per le Aziende - www.elogic.it
Via Paolo Nanni Costa, 30 - 40133 Bologna
Tel: 0513145611 Fax: 0513145699



FOP 0.15 and Cocoon

2002-01-25 Thread Stefano Angelici
Hi everybody. I've got cocoon 1.8 installed in a server. Cocoon had
fop_0.13 as PDF render library; now I put fop_0.15 and w3c.jar(I deleted
the previous fop symbolic link and created a new one) in tomcat/lib. I
tryed to create a PDF (from xml and xsl files) using XalanCommandLine in
command line and everything works, but as I recall the same script using
Netscape fop creates this error:

java.lang.NullPointerException: 
at java.util.Hashtable.get(Hashtable.java:317)
at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:253)
at org.apache.fop.apps.Driver.buildFOTree(Driver.java:360)
at
org.apache.cocoon.formatter.FO2PDFFormatter.format(FO2PDFFormatter.java:
85)
at org.apache.cocoon.Engine.handle(Engine.java:375)
at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnec
tion(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
at java.lang.Thread.run(Thread.java:475)

Can anybody gives me an explanation?
Thanks.

Stefano Angelici


R: Problems with FOP and internal links

2002-01-11 Thread Stefano Angelici
Michael, thank you for your suggestion, but I can't still make my script
working right.
Maybe I have to quit with internal links :-)
Best regards.

Stefano

-Messaggio originale-
Da: Smethurst, Michael [mailto:[EMAIL PROTECTED]
Inviato: venerdì 11 gennaio 2002 11.44
A: '[EMAIL PROTECTED]'
Oggetto: RE: Problems with FOP and internal links


I'm not sure if this is the same problem i've had because your code was
a
little too complex to work through but...
i've found that you can't create internal links between elements in
different page-sequences.

as far as i can see this is a bug and i've submitted it to bugzilla; see

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5718

hopefully it may one day be fixed...

[EMAIL PROTECTED]


Problems with FOP and internal links

2002-01-11 Thread Stefano Angelici
 TABLE


Ciao questa e' la categoria
TABLE







BARBARA


Ciao questa e' la
categoria BARBARA







FLOOR


Ciao questa e' la categoria
FLOOR









Everything seems to work fine, but, when I click on an internal link,
nothing happens (the external link works fine). Could you give me help?
Thank you so much.
Best greetings.

Stefano Angelici

P.S. I edited the pdf document created by cocoon and i found "Producer
(FOP 0.12.2 [dev])" even if the .jar in cocoon libs is fop_0_13_0.jar.

--
Stefano Angelici - Sviluppo Software
eLogic S.r.l. - Sistemi Internet per le Aziende - www.elogic.it
Via Paolo Nanni Costa, 30 - 40133 Bologna
Tel: 0513145611 Fax: 0513145699