Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer
Been doing some fairly sophisticated XML FO transformations. However, when I try to view the finished PDF, The Acrobat reader reports this error in the status bar: An error has occurred while trying to use this document. What is interesting is that if I serialize FO to xml rather than using fo2pdf, then the FO works fine. If I save the XML and create a new pipeline entry to render that saved xml as a pdf using fo2pdf then it works. So the transformation seems to be OK, and rendering static XML as PDFs is OK. Has anyone experienced similar problems - and if so how did you resolve it ?? Please Help Me , James __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: London Cocoon users
Hi Alex, I'm a London based Cocoon developer/hacker and know nobody in London using Cocoon, so would love to actually get to talk about this stuff. regards, James Ashton --- Jeremy Aston [EMAIL PROTECTED] wrote: Hi Alex, This is of interest to me. Are you thinking of a once a month affair? Also, are you interested in knowing what preferences are for days of the week? Regards Jeremy --- Alex McLintock [EMAIL PROTECTED] wrote: Hi folks, Are there any London based Cocoon users on this list who want to meet other Cocoon users - perhaps for a pub meeting? We could perhaps piggy back on the recently started London Content Management pub meeting. (That is London, United Kingdom, not London, Canada) Alex McLintock Openweb Analysts Ltd, London. Software For Complex Websites http://www.OWAL.co.uk/ Open Source Software Companies please register here http://www.OWAL.co.uk/oss_support/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The plot thickens !! (RE: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer)
Cheers Robert (I'll test that out tomorrow - am away from my dev machine now - although another test described below seems to suggest that my Cocoon installation is fine.) Earlier I decided to load the page in netscape 6 instead - it worked, switch back to IE 6 - doesn't work. Has anybody else experienced problems where PDFs are delivered to Netscape but not IE. Everything works fine under Tomcat 4.0.1, but not 4.0.3 or 4.1.12 , and as far as I am aware, everything else is the same in terms of the Cocoon installation, and everything else that I've tested works in all three Tomcat versions. any help will be much appreciated. --- [EMAIL PROTECTED] wrote: James, Ran into something similar...this may help: Make sure that the fop JAR file version inside Cocoon is the same as the one you use when you serialize. I had fop-0.20.4.jar running from the command line and fop-0.20.3.jar running inside Cocoon and noticed some anomalies. Hope this helps! Bob -Original Message- From: [EMAIL PROTECTED] [mailto:jamesashton;yahoo.com] Sent: Thursday, October 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer Been doing some fairly sophisticated XML FO transformations. However, when I try to view the finished PDF, The Acrobat reader reports this error in the status bar: An error has occurred while trying to use this document. What is interesting is that if I serialize FO to xml rather than using fo2pdf, then the FO works fine. If I save the XML and create a new pipeline entry to render that saved xml as a pdf using fo2pdf then it works. So the transformation seems to be OK, and rendering static XML as PDFs is OK. Has anyone experienced similar problems - and if so how did you resolve it ?? Please Help Me , James __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html 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. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer
Thanks Antonio, I think that may be the problem (I then installed netscape and it worked fine) - I'll check my browser when I'm on my work machine tomorrow. cheers again, James --- Antonio Gallardo Rivera [EMAIL PROTECTED] wrote: Try to send a response with a clear PDF extension. Example: foo.pdf. I had this problem before with MSIE 6.0 SP1 and it corrects the error. Have a nice xsl-fo coding :-D Antonio Gallardo. El Jueves, 24 de Octubre de 2002 08:47, Ryan Agler escribió: I played around with fo for the first time yesterday and ran into the same thing. Turns out if I enclosed everything after fo:flow flow-name=xsl-region-body with an fo:block, and then also enclosed anything within an fo:cell with fo:block things worked out fine. -Original Message- From: James Ashton [mailto:jamesashton;yahoo.com] Sent: Thursday, October 24, 2002 7:42 AM To: [EMAIL PROTECTED] Subject: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer Been doing some fairly sophisticated XML FO transformations. However, when I try to view the finished PDF, The Acrobat reader reports this error in the status bar: An error has occurred while trying to use this document. What is interesting is that if I serialize FO to xml rather than using fo2pdf, then the FO works fine. If I save the XML and create a new pipeline entry to render that saved xml as a pdf using fo2pdf then it works. So the transformation seems to be OK, and rendering static XML as PDFs is OK. Has anyone experienced similar problems - and if so how did you resolve it ?? Please Help Me , James __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html 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. http://xml.apache.org/cocoon/faq/index.html 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. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SVG image tag fails: 'xlink:href' required
I posted a similar problem (although got no replies or help from this list!) instead of putting your reference to xmlns:xlink in your svg header, put it in your stylesheet header as follows. (The transformer engine won't be able to validate the stylesheet otherwise.) xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xlink=http://www.w3.org/1999/xlink; That should fix the problem. I got it working so that it would produce me the svg with embedded images. However, as soon as I try to then serialize the svg into a jpeg, you get a broken image symbol rendered in the final output. I'm trying to get the bottom of why the svg2jpeg serializer breaks with embedded png images. I would be eternally greatful (OK slight exagerration) if anyone has got that to work. Hope that helps, and let me know if you can serialize to jpeg. cheers, James Ashton --- Upayavira [EMAIL PROTECTED] wrote: Dear All, I have been experimenting with SVG, in that I need to overlay a number of transparent images. I have created a simple SVG file, shown below. When I try to access this via Cocoon, I get the error: The attribute 'xlink:href' of the element image is required When I use the Batik rasterizer which I downloaded (batik1.5beta4b), it works fine. Any ideas? SVG file svg width=740 height=499 xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; image xlink:href=base.png x=0 y=0 width=740 height=499/ image xlink:href=overlay.png x=0 y=0 width=740 height=499/ /svg Sitemap fragment: map:pipelines map:pipeline map:match pattern=test.jpg map:generate src=test.svg/ map:serialize type=svg2jpeg/ /map:match /map:pipeline I am using Cocoon 2.0.2 on Tomcat 4.0.3 on Windows 2000 Professional. Regards, Upayavira - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svg2jpeg not working properly.
Hi, I'm a fairly new Cocoon user and have encountered a weird problem that I've not been able to solve. I have an SVG File which consists of a JPEG image and a Text string. I have broken that up into a Stylesheet. Once the transform is done, it is serialized to JPEG before rendering to the browser. I've done this so that I can automatically put a copyright notice (or other message) on images before web delivery. I did get this working (honest!) but it seemed to just stop working (in that I'm not aware that I did anything that could have broken it). However if I serialize to SVGXML it works fine (so I'm 99.9% sure the stylesheet is still fine). If I try to serialize the original SVG file to JPEG it doesn't work. Here are the relavent sections of my site map to illustrate what I'm saying: !-- This works -- map:match pattern=picture.svg map:generate src=docs/picture.xml/ map:transform src=stylesheets/picture.xsl/ map:serialize type=svgxml/ /map:match !-- These don't work -- map:match pattern=picture.jpg map:generate src=docs/picture.xml/ map:transform src=stylesheets/picture.xsl/ map:serialize type=svg2jpeg/ /map:match map:match pattern=testpicture.jpg map:generate src=picture.svg/ map:serialize type=svg2jpeg/ /map:match The strange thing is that there are no log messages and a jpeg IS rendered. I've made that available on http://www10.brinkster.com/jamesashton/broken.jpg However it only renders the text layered over the top. The png which is the source image does not render. The other interesting this is that the Sample Jpeg render no longer works. I have not touched the main site map or any of the samples code. Any Help would be much appreciated, regards, James __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]