RE: PCL Problems on HP Deskjet 400
Hrm...plain text might be ok if we could have a small image and some variable size text - any idea of I could use extensions for this? -Original Message- From: Art Welch [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 12:58 PM To: '[EMAIL PROTECTED]' Subject: RE: PCL Problems on HP Deskjet 400 Another thought... I am not sure if it has been suggested before, but perhaps it may be better (easier) to just have a stylesheet generate plain text and not use FOP at all. We have done this for some of our more simple reports (that do not need to look pretty). This has the added benefit of processing much faster (in our case anyway). You may even be able to add some extension functions to your XSLT processor to enhance the plain text output somewhat. Art -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 12:21 PM To: [EMAIL PROTECTED] Subject: RE: PCL Problems on HP Deskjet 400 Very interesting and helpful information. My understanding was that the renderer would render the page as it is laid out in the XSL file, and since the header is near the top (with text and graphics) I find it odd that it is rendered and appears at the bottom of the page. The text itself looks like it is in a much smaller font, but the sizes on the page on relative to each other. My main concern now is getting things to appear in the proper order - either with or without an image. If I take out the header portion, things seem to work better. Thanks again for the help, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: PCL Problems on HP Deskjet 400
Very interesting and helpful information. My understanding was that the renderer would render the page as it is laid out in the XSL file, and since the header is near the top (with text and graphics) I find it odd that it is rendered and appears at the bottom of the page. The text itself looks like it is in a much smaller font, but the sizes on the page on relative to each other. My main concern now is getting things to appear in the proper order - either with or without an image. If I take out the header portion, things seem to work better. Thanks again for the help, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: PCL Problems on HP Deskjet 400
Correct, it is rendered as PCL 5, but it seems almost all of the Deskjets only go up to PCL 3. I have a Deskjet 820 that has a pretty good result from the same document. HP told me that the older printers can't adapt as well as the newer ones to the more complex PCL. -Tony -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 9:21 AM To: [EMAIL PROTECTED] Subject: Re: PCL Problems on HP Deskjet 400 I've had a quick look at the HP website. Your DJ 400 is a PCL 3 printer. Art Welch said the PCL renderer produces PCL5, so this might actually be the real problem. Concerning my comment about banding, unfortunately, I haven't found any information at the HP website. On Thu, 13 Sep 2001 08:44:55 -0400 avespa wrote: > Interesting how might I go about testing this? Could I change the > renderer and how would I do it? Could I test this by re-arranging PCL code > in the document I produce? > > I render an XML stream into a PCL document, then I send it to the printer in > a separate step. How could I 'band' this? > > -Tony > > -Original Message- > From: Jeremias Maerki > To: [EMAIL PROTECTED] > Sent: 9/13/01 2:34 AM > Subject: Re: PCL Problems on HP Deskjet 400 > > Hi > > I don't know much about PCL, but I know this: PCL laser printers usually > build a whole page in memory and then print it to paper. They normally > have a decent amount of memory. Especially older ink jet printers like > yours only have a small buffer, so the page has to be delivered in bands > (I think). That's probably what causes your problems. Maybe the PCL > renderer would have to be changed so it can output a page as a sequence > of bands. To visualize, see here: > > +-+ > | Band 1 | > +-+ > | Band 2 | > +-+ > | Band 4 | > +-+ > | etc.| > +-+ > | | > +-+ > > I think this is really what messes up your headers and footers. > > On Wed, 12 Sep 2001 17:32:48 -0400 avespa wrote: > > > > Question - I am testing a PCL generated file on an HP DeskJet 400 > Printer, > > circa 1995 with Windows 95. I am seeing rather funky behavior, with > the > > headers and footers being messed up (it looks like a few of the lines > were > > written and then written over - perhaps a page break issue in our > XSL)- our > > XSL is quite heavy and complex, so I am not sure where to start. I am > > wondering if I need to take the approach of looking at our XSL and > seeing > > where it can be tuned or tweaked to change this behavior, or do I need > to go > > to the PCL itself? I'm wondering if someone could nudge me in a > certain > > direction? > > > > The output looks fairly decent on an HP8000 or HP820. I called HP and > they > > weren't much help. > > > > Thanks for any help or input, > > > > Tony > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > Freundliche Grüsse > OUTLINE AG > Jeremias Märki > > mailto:[EMAIL PROTECTED] > > Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern > Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029 > Internet http://www.outline.ch > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] Freundliche Grüsse OUTLINE AG Jeremias Märki mailto:[EMAIL PROTECTED] Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029 Internet http://www.outline.ch - 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: PCL Problems on HP Deskjet 400
Interesting how might I go about testing this? Could I change the renderer and how would I do it? Could I test this by re-arranging PCL code in the document I produce? I render an XML stream into a PCL document, then I send it to the printer in a separate step. How could I 'band' this? -Tony -Original Message- From: Jeremias Maerki To: [EMAIL PROTECTED] Sent: 9/13/01 2:34 AM Subject: Re: PCL Problems on HP Deskjet 400 Hi I don't know much about PCL, but I know this: PCL laser printers usually build a whole page in memory and then print it to paper. They normally have a decent amount of memory. Especially older ink jet printers like yours only have a small buffer, so the page has to be delivered in bands (I think). That's probably what causes your problems. Maybe the PCL renderer would have to be changed so it can output a page as a sequence of bands. To visualize, see here: +-+ | Band 1 | +-+ | Band 2 | +-+ | Band 4 | +-+ | etc.| +-+ | | +-+ I think this is really what messes up your headers and footers. On Wed, 12 Sep 2001 17:32:48 -0400 avespa wrote: > > Question - I am testing a PCL generated file on an HP DeskJet 400 Printer, > circa 1995 with Windows 95. I am seeing rather funky behavior, with the > headers and footers being messed up (it looks like a few of the lines were > written and then written over - perhaps a page break issue in our XSL)- our > XSL is quite heavy and complex, so I am not sure where to start. I am > wondering if I need to take the approach of looking at our XSL and seeing > where it can be tuned or tweaked to change this behavior, or do I need to go > to the PCL itself? I'm wondering if someone could nudge me in a certain > direction? > > The output looks fairly decent on an HP8000 or HP820. I called HP and they > weren't much help. > > Thanks for any help or input, > > Tony > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] Freundliche Grüsse OUTLINE AG Jeremias Märki mailto:[EMAIL PROTECTED] Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
PCL Problems on HP Deskjet 400
Question - I am testing a PCL generated file on an HP DeskJet 400 Printer, circa 1995 with Windows 95. I am seeing rather funky behavior, with the headers and footers being messed up (it looks like a few of the lines were written and then written over - perhaps a page break issue in our XSL)- our XSL is quite heavy and complex, so I am not sure where to start. I am wondering if I need to take the approach of looking at our XSL and seeing where it can be tuned or tweaked to change this behavior, or do I need to go to the PCL itself? I'm wondering if someone could nudge me in a certain direction? The output looks fairly decent on an HP8000 or HP820. I called HP and they weren't much help. Thanks for any help or input, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: ClassDefNotFound for FOP for VAJ
Actually, I still need answers to them - I seem to be having intermitten issues -Original Message- From: COFFMAN Steven [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 6:24 PM To: '[EMAIL PROTECTED]' Subject: RE: ClassDefNotFound for FOP for VAJ So ignore your earlier questions, or do you still need answers to those? -Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 4:48 PM To: [EMAIL PROTECTED] Subject: ClassDefNotFound for FOP for VAJ Importance: High Hello again... I seem to be working through my issues but this one has me stuck - when I try to create a new driver, my program crashes on Uncaught exception (java.lang.NoClassDefFoundError: org.apache.fop.fo.LengthProperty$Maker) - I have this class in my repository and have re-imprted the source - any ideas? Please help! Debugger Stack Trace Report: Thread[main,5,main] (Alive) Uncaught exception (java.lang.NoClassDefFoundError: org.apache.fop.fo.LengthProperty$Maker) StandardPropertyListMapping.addToBuilder(TreeBuilder) this=(org.apache.fop.fo.StandardPropertyListMapping) org.apache.fop.fo.StandardPropertyListMapping@78bc builder=(org.apache.fop.fo.TreeBuilder) org.apache.fop.fo.FOTreeBuilder@33ab uri=(java.lang.String) http://www.w3.org/1999/XSL/Format Driver.addPropertyList(PropertyListMapping) this=(org.apache.fop.apps.Driver) org.apache.fop.apps.Driver@1f7e mapping=(org.apache.fop.fo.PropertyListMapping) org.apache.fop.fo.StandardPropertyListMapping@78bc Driver.addPropertyList(String) this=(org.apache.fop.apps.Driver) org.apache.fop.apps.Driver@1f7e listClassName=(java.lang.String) org.apache.fop.fo.StandardPropertyListMapping mapping=(org.apache.fop.fo.PropertyListMapping) org.apache.fop.fo.StandardPropertyListMapping@78bc Driver.setupDefaultMappings() this=(org.apache.fop.apps.Driver) org.apache.fop.apps.Driver@1f7e Driver() this=(org.apache.fop.apps.Driver) org.apache.fop.apps.Driver@1f7e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: Adding Properties to the FOP driver
I actually tried that and still get the error - only now I can't view the source since I used the classes vs the java. Any other suggestions? I'm kinda stuck... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 6:04 PM To: [EMAIL PROTECTED] Subject: Re: Adding Properties to the FOP driver I'm also using .18 in VAJ and the org.apache.fop.fo.properties package did not import for me. I got similar errors to what you are describing. Try exporting these class files from fop.jar and importing them into VAJ. There were a few other class files that were not in the source, I used the same deal. JohnPT fop-dev-return-10181-jthaemlitz=oreillyauto.com@XML. APACHE.ORG To: [EMAIL PROTECTED] cc: 09/07/01 04:49 PM Subject: Adding Properties to the FOP driver Please respond to fop-dev Hello, In my code to render a PCL/PDF from XML, I set the following properties: driver.addElementMapping("org.apache.fop.fo.StandardElementMapping"); driver.addElementMapping("org.apache.fop.svg.SVGElementMapping"); driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping"); driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping"); These seem to work fine except now that I have the FOP .18 in VAJ, I get class non defined errors in the .fo.* package. I also got errors in the driver=new driver() statement, which seem to stem from these same lines of code in the constructor of that class. Is there a reason why this is happening? The NonDefClass errors seem to be on subclasses of other classes - not sure why this isn't working. Thanks for any insight. Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Adding Properties to the FOP driver
Hello, In my code to render a PCL/PDF from XML, I set the following properties: driver.addElementMapping("org.apache.fop.fo.StandardElementMapping"); driver.addElementMapping("org.apache.fop.svg.SVGElementMapping"); driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping"); driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping"); These seem to work fine except now that I have the FOP .18 in VAJ, I get class non defined errors in the .fo.* package. I also got errors in the driver=new driver() statement, which seem to stem from these same lines of code in the constructor of that class. Is there a reason why this is happening? The NonDefClass errors seem to be on subclasses of other classes - not sure why this isn't working. Thanks for any insight. Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
ClassDefNotFound for FOP for VAJ
Hello again... I seem to be working through my issues but this one has me stuck - when I try to create a new driver, my program crashes on Uncaught exception (java.lang.NoClassDefFoundError: org.apache.fop.fo.LengthProperty$Maker) - I have this class in my repository and have re-imprted the source - any ideas? Please help! Debugger Stack Trace Report: Thread[main,5,main] (Alive) Uncaught exception (java.lang.NoClassDefFoundError: org.apache.fop.fo.LengthProperty$Maker) StandardPropertyListMapping.addToBuilder(TreeBuilder) this=(org.apache.fop.fo.StandardPropertyListMapping) org.apache.fop.fo.StandardPropertyListMapping@78bc builder=(org.apache.fop.fo.TreeBuilder) org.apache.fop.fo.FOTreeBuilder@33ab uri=(java.lang.String) http://www.w3.org/1999/XSL/Format Driver.addPropertyList(PropertyListMapping) this=(org.apache.fop.apps.Driver) org.apache.fop.apps.Driver@1f7e mapping=(org.apache.fop.fo.PropertyListMapping) org.apache.fop.fo.StandardPropertyListMapping@78bc Driver.addPropertyList(String) this=(org.apache.fop.apps.Driver) org.apache.fop.apps.Driver@1f7e listClassName=(java.lang.String) org.apache.fop.fo.StandardPropertyListMapping mapping=(org.apache.fop.fo.PropertyListMapping) org.apache.fop.fo.StandardPropertyListMapping@78bc Driver.setupDefaultMappings() this=(org.apache.fop.apps.Driver) org.apache.fop.apps.Driver@1f7e Driver() this=(org.apache.fop.apps.Driver) org.apache.fop.apps.Driver@1f7e - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Xalan causing issue in FOP?
Hello, I am still trying to get my java to work with FOP - I'm using Xalan to parse and I have an error when I hit the: processor.process(responseSource, stylesheetSource, target); line. I get: Input XSL; Line 1; Column 45518 XSL Error: Could not parse Input XML document! XSL Error: SAX Exception As errors. I am declaring the procesor as: XSLTProcessor processor = XSLTProcessorFactory.getProcessor(); Any hints on how to troublehsoot? Thanks! Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Looking for Simple FOP Rendering Example
Hello, I'm trying to test a piece of FOP code that someone else wrote within an application as a standalone. I basically need to have three inputs: An XML file An XSL (the fo file) PCL.PDF or TXT flag. I am trying to write something leveraging the code we have but I feel I am getting 'lost in the woods' and that it should be simple just to send these params through as a benchmark. Please help, as I'm up against a very tight time window! Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: FOP Speed
Hrm - the XSLs (written by a third party) that I'm using are triple nested includes - so basically I have one file, which includes two files, and in those files two more files are included which is where the actual data gets populated. Could this be part of the hit in performance I'm seeing? T -Original Message- From: Art Welch [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 10:14 AM To: '[EMAIL PROTECTED]' Subject: RE: FOP Speed In our application we have found FOP to be a bit slow. In the previous version that had distinct format and render steps, the render phase was very rapid. My preliminary performance analysis indicated that something like 90% of the time was spent handling the properties. I do not know if I would call this "low hanging". More like a great big juicy one - way up top. This analysis was also done on a bit older version of the code. We have recently updated some of the code to include Mark's changes, etc. We need to look at the performance again. But at this point I do not think that there are any big gains to be had with minimal effort. I had some ideas about enhancing the property stuff - but I am going to re-analyze performance before I do anything else. Art -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 9:02 AM To: [EMAIL PROTECTED] Subject: FOP Speed Hello, I am rendering a two page document in PDF/PCL using FOP. I notice that the actual loading and render steps of the stylesheet take a rather long time (close to 10 seconds on a large server) I'm wondering if there are any XSL guidelines for FOP, best practicies, things to not do etc, or are there any low hanging fruits per se that I thought look for and fix? -Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: FOP Speed
Well, a big chunk of the time seems to be in the loading of the stylesheet, ala the line: XSLTInputSource stylesheetSource = new XSLTInputSource (stylesheet); I think it may be the XSLT itself -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 10:08 AM To: [EMAIL PROTECTED] Subject: Re: FOP Speed I wouldn't call that complex. I'm doing similar things (more than 50 fields, 1-2 pages, 2 images) in less than half a second (XSLT+FOP). Maybe you really have something wierd in your XSLT. Have you been able to identify if it's FOP or XSLT that takes such a long time? On Thu, 6 Sep 2001 09:49:37 -0400 avespa wrote: > No, it is implemented within a server. How do you define 'complex' > document? I am filling in many fields into the document, maybe 50 - 60 at > least. Only one image. > > > > -Original Message- > From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 06, 2001 9:54 AM > To: [EMAIL PROTECTED] > Subject: Re: FOP Speed > > > > On Thu, 6 Sep 2001 09:01:59 -0400 avespa wrote: > > I am rendering a two page document in PDF/PCL using FOP. I notice that > the > > actual loading and render steps of the stylesheet take a rather long time > > (close to 10 seconds on a large server) I'm wondering if there are any XSL > > guidelines for FOP, best practicies, things to not do etc, or are there > any > > low hanging fruits per se that I thought look for and fix? > > I hope you don't start a new VM each time you want to process a document. > If not, are you trying to render particularly complex documents or big > images? Freundliche Grüsse OUTLINE AG Jeremias Märki mailto:[EMAIL PROTECTED] Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029 Internet http://www.outline.ch - 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: FOP Speed
No, it is implemented within a server. How do you define 'complex' document? I am filling in many fields into the document, maybe 50 - 60 at least. Only one image. -Original Message- From: Jeremias Maerki [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 9:54 AM To: [EMAIL PROTECTED] Subject: Re: FOP Speed On Thu, 6 Sep 2001 09:01:59 -0400 avespa wrote: > I am rendering a two page document in PDF/PCL using FOP. I notice that the > actual loading and render steps of the stylesheet take a rather long time > (close to 10 seconds on a large server) I'm wondering if there are any XSL > guidelines for FOP, best practicies, things to not do etc, or are there any > low hanging fruits per se that I thought look for and fix? I hope you don't start a new VM each time you want to process a document. If not, are you trying to render particularly complex documents or big images? Regards, OUTLINE AG Jeremias Märki mailto:[EMAIL PROTECTED] Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029 Internet http://www.outline.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FOP Speed
Hello, I am rendering a two page document in PDF/PCL using FOP. I notice that the actual loading and render steps of the stylesheet take a rather long time (close to 10 seconds on a large server) I'm wondering if there are any XSL guidelines for FOP, best practicies, things to not do etc, or are there any low hanging fruits per se that I thought look for and fix? -Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
FOP PCL Rendering - Please help!
Hello, I am trying to render a document using FOP -> PCL. I am seeing a few issues though: 1) I have a little image in GIF format that I am rendering in the page - it comes all distroted and blurry - do I have to change it to another format? 2) I get errors in the log file from my app, such as WARNING: Number of cell columns under table-row not equal to number of table-columns repeated six or so times. The formatting of the printout looks a bit off (it seems to be missing a few spaces at the top ) but this looks fine when rendered as a PDF. Are there any good guidelines folks have for a stylesheet that would be used to render PCL vs PDF? 3) Finally, does anyone know what level of PCL is actually being generated? I want to make sure this will work and be interpretted on as many HP printers as possible - the two that I have tried it on have the above issues of blurry images and header spacing. I'd really appreciate anyone willing to help! Thanks very much, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Help in XML Rendering to PostScript
In terms of the solution for streaming to an LPT port or network printer, is there a way to catch an error if this fails? Lets say I have a network printer and it is offline, how can I know if it worked or not? It's a blind process. Thanks! -Original Message- From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]] Sent: Friday, June 22, 2001 3:56 AM To: [EMAIL PROTECTED] Subject: Re: Help in XML Rendering to PostScript also if I use driver.setRenderer(Driver.RENDER_TXT); and send the output to the printer straight away the printer is able to understand the output and is able to print the text output. But the quality of the output falls far short of what a pdf output can provide. Thanks, Hitesh Hitesh Bagchi wrote: > I used the following piece of code to send the pcl output to the printer(HP > Laser Jet 6P/6MP network printer): > > FileOutputStream fos = new FileOutputStream("Melstar\\Melprn"); > Driver driver = new Driver(); > driver.setRenderer(Driver.RENDER_PCL); > driver.addElementMapping("org.apache.fop.fo.StandardElementMapping"); > driver.addElementMapping("org.apache.fop.svg.SVGElementMapping"); > driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping"); > driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping"); > driver.setOutputStream(fos); > driver.buildFOTree(parser, new InputSource(args[0])); > driver.format(); > driver.render(); > > And everything went smoothly. > Only the printer printed a lot of junk characters like you would get if you > write the pcl output to a file and send the file to a printer as a text file. > Does it mean my printer do not understand pcl output. > > Thanks, > Hitesh > > Art Welch wrote: > > > I am not sure if I have the syntax exactly correct (and I do not have FOP > > installed on my Windows 2000 or NT workstations at the moment), but in the > > past I have successfully printed directly to a network printer, just by > > opening a file stream to it. For example in your example only the first line > > would need to change something like: > > > > FileOutputStream fos = new > > FileOutputStream("hostname\\printername"); > > > > For a local printer you should be able to do something like: > > > > FileOutputStream fos = new FileOutputStream("lpt1"); > > > > HTH, > > Art > > > > -Original Message- > > From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, June 21, 2001 12:35 AM > > To: [EMAIL PROTECTED] > > Subject: Re: Help in XML Rendering to PostScript > > > > I am using windows NT and I am trying to print the PCL output directly to > > the > > printer which is a > > HP Laser Jet 6P/6MP network printer from my application. Here is my piece of > > code : > > >>-- > > --- > > > > FileOutputStream fos = new FileOutputStream("../temp/tTest.pcl"); > > Driver driver = new Driver(); > > driver.setRenderer(Driver.RENDER_PCL); > > driver.addElementMapping("org.apache.fop.fo.StandardElementMapping"); > > driver.addElementMapping("org.apache.fop.svg.SVGElementMapping"); > > driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping"); > > driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping"); > > driver.setOutputStream(fos); > > driver.buildFOTree(parser, new InputSource(args[0])); > > driver.format(); > > driver.render(); > > > > ---<< > > > > Now instead of printing to the Test.pcl file I want to send the output > > directly > > to the HP Laser Jet 6P/6MP > > printer on the network. > > > > Thanks, > > Hitesh > > > > Art Welch wrote: > > > > > I thought that I had answered a question about direct printing PCL > > recently. > > > If you will tell me what platform you are using (Windows/Unix) and how you > > > are invoking FOP (application or command line). I will try to answer this. > > > > > > Art > > > > > > -Original Message- > > > From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]] > > > Sent: Saturday, June 16, 2001 1:50 AM > > > To: [EMAIL PROTECTED] > > > Subject: Re: Help in XML Rendering to PostScript > > > > > > Hello, > > > Can somebody tell me how to stream PCL output to a network printer without > > > writing to a file. > > > > > > Thanks, > > > Hitesh > > > > > > [EMAIL PROTECTED] wrote: > > > > > > > Hello, > > > > > > > > I am fairly new to FOP and to Java as well. I am wondering if anyone > > has > > > > written a rendering to convert an XML stream to Postscript with FOP > > > (similar > > > > to the PCL or PDF renderer) - I am in desperate need of a mechanism to > > do > > > > this. We have a current Java app that converts an XML stream into PDF, > > > but > > > > printing through Adobe Acrobat is too resource intensive on the lower > > end > > > > machines. I have tried converting to PCL and then streaming to a
RE: Help in XML Rendering to PostScript
Hello, I am using FOP from within a java application and writing a PCL file. I then pass that PCL file to the LPT port for printing. I want to be able to render it as Postscript, not PCL. Any advice or insight you have into post script or direct printing would be gratefully appreciated! Tony -Original Message- From: Art Welch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 2:01 PM To: '[EMAIL PROTECTED]' Subject: RE: Help in XML Rendering to PostScript I thought that I had answered a question about direct printing PCL recently. If you will tell me what platform you are using (Windows/Unix) and how you are invoking FOP (application or command line). I will try to answer this. Art -Original Message- From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 16, 2001 1:50 AM To: [EMAIL PROTECTED] Subject: Re: Help in XML Rendering to PostScript Hello, Can somebody tell me how to stream PCL output to a network printer without writing to a file. Thanks, Hitesh [EMAIL PROTECTED] wrote: > Hello, > > I am fairly new to FOP and to Java as well. I am wondering if anyone has > written a rendering to convert an XML stream to Postscript with FOP (similar > to the PCL or PDF renderer) - I am in desperate need of a mechanism to do > this. We have a current Java app that converts an XML stream into PDF, but > printing through Adobe Acrobat is too resource intensive on the lower end > machines. I have tried converting to PCL and then streaming to a port, > which works pretty well, but is not a 100% compatibile (PCL beng only HP) > > If anyone knows of a way to convert an XML to PS format using a custom FOP > piece they've written, or knows of a better mechanism, I'd be forever > grateful! > > Thanks very much, > > Tony > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - 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: Help in XML Rendering to PostScript
Hello, It is for a company in South American, and the low end platforms are either P133/32 or P200/64 - launching it in Adobe Acrobat to print takes a long time/ -Original Message- From: Alex McLintock [mailto:[EMAIL PROTECTED]] Sent: Monday, June 18, 2001 11:36 AM To: [EMAIL PROTECTED] Subject: Re: Help in XML Rendering to PostScript --- [EMAIL PROTECTED] wrote: > Hello, > I have tried converting to PCL and then streaming to a port, > which works pretty well, but is not a 100% compatibile (PCL beng only HP) IMHO a large number of printers are PCL compatible nowadays - even those not made by HP. I'd say they were more common than postscript - Why are you doing this on low spec machines? Alex = Alex McLintock[EMAIL PROTECTED]Open Source Consultancy in London OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ DR WHO COMPETITION: http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104 Get Your XML T-Shirt at http://www.inversity.co.uk/ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Help in XML Rendering to PostScript
Hello, I am fairly new to FOP and to Java as well. I am wondering if anyone has written a rendering to convert an XML stream to Postscript with FOP (similar to the PCL or PDF renderer) - I am in desperate need of a mechanism to do this. We have a current Java app that converts an XML stream into PDF, but printing through Adobe Acrobat is too resource intensive on the lower end machines. I have tried converting to PCL and then streaming to a port, which works pretty well, but is not a 100% compatibile (PCL beng only HP) If anyone knows of a way to convert an XML to PS format using a custom FOP piece they've written, or knows of a better mechanism, I'd be forever grateful! Thanks very much, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]