RE: Fop performance
Try to use cached stylesheets... it can improve performance. http://www.topxml.com/xsl/articles/java_xslt/default.asp See at bottom. From: Jason Timmins [mailto:[EMAIL PROTECTED] Sent: viernes, 29 de junio de 2007 11:58 To: fop-users@xmlgraphics.apache.org Subject: RE: Fop performance Hi There, I had much the same problem myself. I needed to create PDFs quickly for the web but also Postscript for high-volume laser printers. It was taking seven seconds to run Saxon, run FOP and get the PDF/PS. This was way too slow for my application. To be fair, FOP is pretty quick, the slow part seems to be the initialisation of the JavaVM (which I was doing once for Saxon and again for FOP.) I'm in the .NET environment so I gave up on Saxon and switch to a .NET implementation. I also used IKVM to translate FOP (0.20.X) into a .NET component so that now Windows doesn't have to use the JavaVM and all the code runs in the same IIS execution environment. The result of all this effort was that the generation time dropped from seven seconds to two seconds. I'd like to use the native Java version of FOP but how can I make it run really quickly for lots of small PDFs? Bye for now Jason. Jason Timmins (Technical Director) InterLinx http://www.interlinx.co.uk/ Ltd. Geo: West Mids, UK http://www.multimap.com/map/browse.cgi?lat=52.5363lon=-2.1866scale=10 000icon=x . Tele: +44 8707 430999. Fax: +44 8707 460999. Beyond here there be dragons! From: Laurent Berthelot [mailto:[EMAIL PROTECTED] Sent: 29 June 2007 06:57 To: fop-users@xmlgraphics.apache.org Subject: Fop performance Hello, I try to optimize FOP performance. I make litlle dynamical PDF (2 pages) on the fly for a web site, and i need several second to generate PDF. FOP need a lot of CPU... Have you the same problem ? Regards, Laurent Berthelot This email has been scanned for all viruses by the InterLinx Anti-Virus Email service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.interlinx.co.uk/anti-virus-anti-spam.htm -- This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. Este mensaje y los ficheros adjuntos pueden contener informacion confidencial destinada solamente a la(s) persona(s) mencionadas anteriormente. Pueden estar protegidos por secreto profesional Si usted recibe este correo electronico por error, gracias de informar inmediatamente al remitente y destruir el mensaje. Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin no se hace responsable por su contenido. Su contenido no constituye ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor no puede garantizar nada al respecto y no sera responsable de cualesquiera danos que puedan resultar de una transmision de virus --
Crimson +FOP + Tomcat
Hi all... I'va a problem with FOP in a web application environment with Tomcat If I run only with jdk (1.4.2), fop works with org.apache.crimson.jaxp.SAXParserFactoryImpl as SAXParserFactory and works well but when i call this same class from a web app in tomcat, it throws this exception org.xml.sax.SAXParseException Exception: can't declare any more prefixes in this context. As i can see, it isn't a XSL problem as i can run this same class without problems in jdk... And if i remove Xerces from TOMCAT_HOME/common/endorsed it works well and this exception desappears... How can i fix it? anybody knows? How can i set a different SAXParserFactory to Driver (with FOP 0.20)?? I've tried to do this System.setProperty(javax.xml.parsers.SAXParserFactory, org.apache.xerces.jaxp.SAXParserFactoryImpl); but it doesn't work, and driver.setXMLReader(new FOInputHandler(new File(Configuration.getStringValue(baseDir))).getParser()); doesn't work... Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Distribute fonts in jar
Hi all... I need to distribute all xsl-stuff in a jar file, including fonts (userconfig.xml, fonts.xml, and ttf files)... but can fop read fonts from a URL?? I mean, fop will try to read font from something like file:c:/folder/lib.jar!fonts/font.xml This is the problem if i try to do something like that [ERROR] Failed to read font metrics file file:/C:/lib/lib1.jar!/fuentes/ComicSansMSBold.xml: C:\lib\lib1.jar!\fuentes\ComicSansMSBold.xml (The system cannot find the path specified) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Font metrics, AWT vs. PDF and a possible workaround
Hi Daniel... I have the same problem as yours, where i must show pdf files in a something-like-swing environment. Finally, i'm trying with SWT (Eclipse) with ActiveX components embedding Look at http://www-128.ibm.com/developerworks/library/os-activex/ And give a try to embed a explorer and navigate to a pdf file I don't know if your problem is like this... Daniel Noll escribió: Cheffe wrote: I know of a java pdf-viewer that is gpl www.jpedal.org I tested it some time ago. That viewer allows to load TT T1C T1 fonts that are shown in a awt-panel. Perhaps you find a solution in this source-code. Shame it's GPL... and also slower (3 seconds per page compared to around 2 seconds per page for FOP.) I've tried a number of other libraries for convering PDF to TIFF, and as yet nothing has come close to Ghostscript which can do about 6 pages a second (and unfortunately Ghostscript is GPL too.) PDFBox had great promise but it renders every word on the line at the start of the line, which is a real mess. :-D To make matters worse all these companies which sell the PDF to TIFF conversion software have prohibitive per-computer licencing fees (most of them are above 10% of the cost of our own product) which seem to indicate that they are assuming we will be using the library in a server-based application (which we're not. :-/) Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AWT transparency
Thanks it solves my problem. As i can see, there are several developers with the same problems, and there are also several requests to improve awt-renderer (this is a cool feature and very neccesary for open-source community...). Thanks for your efforts. Jeremias Maerki escribi: Here's my explanation of the problem: http://www.nabble.com/Quality-of-included-image-degrades-when-png-rendering-is-used-tf2312286.html#a6453762 So, yes, you can turn it off if you hack the source code. A proper fix has to wait until we can do the image package redesign. On 18.01.2007 18:54:55 David Morales wrote: As i can see... fop-awt preview shows images and text lighter than pdf... can i turn off this feature?? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AWT FONTS
Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Does Fonts used in fop-awt are system/jdk fonts?? are they fop user-config's file fonts?? I've tried to set system properties to different values but it doesn't change Thanks in advance and sorry for my english - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AWT FONTS
Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Does Fonts used in fop-awt are system/jdk fonts?? are they fop user-config's file fonts?? I've tried to set system properties to different values but it doesn't change Thanks in advance and sorry for my english - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fonts AWT
Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Does Fonts used in fop-awt are system/jdk fonts?? are they fop user-config's file fonts?? I've tried to set system properties to different values but it doesn't change Thanks in advance and sorry for my english - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fonts AWT
Sorry... i had problems in other apache mailing lists... And then... can't i set my own fonts when using awt?? i mean, awt-fop stablishes fonts?, or awt-java? Thanks again. Chris Bowditch escribió: David Morales wrote: Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Why do you keep posting the same question. I already answered you here: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200701.mbox/[EMAIL PROTECTED] If that doesn't help you then please re-phrase the question. Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fonts AWT
Hi Adrian, And there isn't a programmatic way to achieve this??? I'va tried to set sun.java2d.fontpath system property... and also copying mt fonts to $jdk/jre/lib/fonts... What about org.apache.fop.render.java2d.FontSetup class can i extend this funcionality or anyother to add fonts?? Thanks. Adrian Cumiskey escribió: Hi David, This looks to be reasonably helpful on the subject :- http://java.sun.com/j2se/1.3/docs/guide/intl/addingfonts.html. Basically you just need to install the missing fonts on your operating system. If this doesn't work you might have to try tweaking your fonts.properties file that sits in the jre/lib folder of your java installation. Adrian. David Morales wrote: Sorry... i had problems in other apache mailing lists... And then... can't i set my own fonts when using awt?? i mean, awt-fop stablishes fonts?, or awt-java? Thanks again. Chris Bowditch escribió: David Morales wrote: Hi... Can anybody tell me how can i change fonts in fop-awt preview?? i mean, if i create a pdf with fop i can configure fonts, but when i do the same operation in awt fonts aren't the same... Why do you keep posting the same question. I already answered you here: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200701.mbox/[EMAIL PROTECTED] If that doesn't help you then please re-phrase the question. Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AWT transparency
As i can see... fop-awt preview shows images and text lighter than pdf... can i turn off this feature?? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]