Re: PostScript Renderer in redesign (was: strokeSVGText in Postscript format)
You're totally right. That was the stuff I've been talking about. The Transcoder is for Batik so it can convert SVG to PDF or PostScript without the XSL_FO-specific FOP renderers. You can just leave these out, but you're also welcome to help with these. :-) On 30.01.2003 22:48:14 George Yi wrote: > The PDFTranscoder is not referenced in current FOP source yet. Is it used by > Batik? > To my understanding, PSTranscoder has not adapted into Batik, am I right? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: PostScript Renderer in redesign (was: strokeSVGText in Postscript format)
Ok, as promised the PS renderer is setup as far as SVG output is possible. I haven't gotten through to the Batik transcoder, yet, but that's not necessary right now, anyway. I'm still pretty confident that we will be able to use the code from the redesign in the maintenance branch with relatively little work if that's necessary. I've introduced a new class: PSGenerator. This class is the central point where PostScript code is channeled through to the OutputStream. That means that PSRenderer writes to PSGenerator and PSGraphics2D also writes to PSGenerator. IMO PSGraphics2D should not call any methods on PSRenderer. Commands used both in PSRenderer (for XSL-FO) and PSGraphics2D (for SVG) should be implemented in PSGenerator. An example here are saveGraphicsState() and restoreGraphicsState(). I hope that'll get you started. If you have any questions fire away. I'll be glad to help. But I must say that I will be mostly away tomorrow and next week from Monday to Friday. On 23.01.2003 20:40:18 Jeremias Maerki wrote: > Deal. I'll start setting up the basic infrastructure for it tomorrow. I > hope we can get you started on this real fast. :-) > > On 23.01.2003 20:29:22 George Yi wrote: > > Sounds attractive to me. I don't know how much dedication I can put into > > this. My paid job has absolute No.1 priority. But if some committer take a > > lead, I am certainly willing to help to implement some features. > > Anyway, help me setup first. I can always learn something:-) Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: strokeSVGText in Postscript format
On Thursday, January 23, 2003, at 07:32 PM, George Yi wrote: Has anyone made or is making an effort to implement strokeSVGText==false feature in PS renderning? Not that I am aware of. I don't want to reinvent wheel here, if no effort is there, I would like to dive into this. Whenever I talk to my collegures or boss about how wonderful FOP is for PDF publishing, the feedback alway is "PS SVG sucks". It was written quickly quite some time ago and has been waiting for someone to say "it sucks" :). My goal is to make PS SVG rendering a decent one. Three things I wanted to achieve, display right color stroke, Quadratic Bezier Curve and text embedding. the first two are relatively easier, I have submitted two patch #16182 and #16306. So far, colors, curves and text are displayed correctly but the file size is huge when you have text in your SVG. This is because the PS renderer actually draws text in SVG. I would like to implement a strokeSVGText like feature in PDF here. Thats great. If any committer has this on his radar, that's a great news to me:-) ( Or give me a boot ) This is an area that would be best tackled with the redesigned code as far as development is concerned. The handling of this issue in the redesign has improved quite a bit (but still has some issues left). If you want it sooner then I can give you a few pointers. The PDF renderer handles this issue in the same way that the PS renderer should handle it. Batik uses a concept of a GVT (graphics vector toolkit) that has a TextPainter that handles text. The default TextPainter is the StrokingTextPainter, when not stroking text it replaces this with a PDFTextPainter. The PDFTextPainter then draws the text using the drawString method instead of creating shapes and drawing them. So for the PS renderer you will need to register a TextPainter in the same way which should do the same sort of thing as for the PDFRenderer. Keiron. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: strokeSVGText in Postscript format
Deal. I'll start setting up the basic infrastructure for it tomorrow. I hope we can get you started on this real fast. :-) On 23.01.2003 20:29:22 George Yi wrote: > Sounds attractive to me. I don't know how much dedication I can put into > this. My paid job has absolute No.1 priority. But if some committer take a > lead, I am certainly willing to help to implement some features. > Anyway, help me setup first. I can always learn something:-) Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: strokeSVGText in Postscript format
Sounds attractive to me. I don't know how much dedication I can put into this. My paid job has absolute No.1 priority. But if some committer take a lead, I am certainly willing to help to implement some features. Anyway, help me setup first. I can always learn something:-) -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:08 PM To: [EMAIL PROTECTED] Subject: Re: strokeSVGText in Postscript format On 23.01.2003 19:32:47 George Yi wrote: > Has anyone made or is making an effort to implement strokeSVGText==false > feature in PS renderning? No. > I don't want to reinvent wheel here, if no effort is there, I would like to > dive into this. > > Whenever I talk to my collegures or boss about how wonderful FOP is for PDF > publishing, the feedback alway is "PS SVG sucks". > > My goal is to make PS SVG rendering a decent one. Three things I wanted to > achieve, display right color stroke, Quadratic Bezier Curve and text > embedding. the first two are relatively easier, I have submitted two patch > #16182 and #16306. So far, colors, curves and text are displayed correctly > but the file size is huge when you have text in your SVG. This is because > the PS renderer actually draws text in SVG. I would like to implement a > strokeSVGText like feature in PDF here. > > If any committer has this on his radar, that's a great news to me:-) ( Or > give me a boot ) The problem is the following: FOP is being redesigned. Version 0.20.5 that will be released within the next days will most probably be the last version based on the maintenance branch. The next version to be released is planned to be 1.0dev based on the redesign code. So code you develop for the maintenance branch will likely be discarded after the 1.0dev of out. Developing for the maintenance branch is a dead end. What I propose you is the following: Keiron developed a PDFTranscoder for Batik that renders SVG as PDF. The same code is also used in the PDF renderer. I urge you to develop a similar thing, a PSTranscoder for Batik, in the redesign (trunk in CVS). We can then try to make sure that you can reuse that Transcoder in the PS renderer in the maintenance branch if you absolutely need that. That way we will avoid having to develop the whole thing twice. If you want I can help you set up the whole thing. I wanted to restart on the PS renderer anyway, just not that soon. But I can switch priorities. How does that sound? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: strokeSVGText in Postscript format
On 23.01.2003 19:32:47 George Yi wrote: > Has anyone made or is making an effort to implement strokeSVGText==false > feature in PS renderning? No. > I don't want to reinvent wheel here, if no effort is there, I would like to > dive into this. > > Whenever I talk to my collegures or boss about how wonderful FOP is for PDF > publishing, the feedback alway is "PS SVG sucks". > > My goal is to make PS SVG rendering a decent one. Three things I wanted to > achieve, display right color stroke, Quadratic Bezier Curve and text > embedding. the first two are relatively easier, I have submitted two patch > #16182 and #16306. So far, colors, curves and text are displayed correctly > but the file size is huge when you have text in your SVG. This is because > the PS renderer actually draws text in SVG. I would like to implement a > strokeSVGText like feature in PDF here. > > If any committer has this on his radar, that's a great news to me:-) ( Or > give me a boot ) The problem is the following: FOP is being redesigned. Version 0.20.5 that will be released within the next days will most probably be the last version based on the maintenance branch. The next version to be released is planned to be 1.0dev based on the redesign code. So code you develop for the maintenance branch will likely be discarded after the 1.0dev of out. Developing for the maintenance branch is a dead end. What I propose you is the following: Keiron developed a PDFTranscoder for Batik that renders SVG as PDF. The same code is also used in the PDF renderer. I urge you to develop a similar thing, a PSTranscoder for Batik, in the redesign (trunk in CVS). We can then try to make sure that you can reuse that Transcoder in the PS renderer in the maintenance branch if you absolutely need that. That way we will avoid having to develop the whole thing twice. If you want I can help you set up the whole thing. I wanted to restart on the PS renderer anyway, just not that soon. But I can switch priorities. How does that sound? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
strokeSVGText in Postscript format
Has anyone made or is making an effort to implement strokeSVGText==false feature in PS renderning? I don't want to reinvent wheel here, if no effort is there, I would like to dive into this. Whenever I talk to my collegures or boss about how wonderful FOP is for PDF publishing, the feedback alway is "PS SVG sucks". My goal is to make PS SVG rendering a decent one. Three things I wanted to achieve, display right color stroke, Quadratic Bezier Curve and text embedding. the first two are relatively easier, I have submitted two patch #16182 and #16306. So far, colors, curves and text are displayed correctly but the file size is huge when you have text in your SVG. This is because the PS renderer actually draws text in SVG. I would like to implement a strokeSVGText like feature in PDF here. If any committer has this on his radar, that's a great news to me:-) ( Or give me a boot ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]