Re: Help in XML Rendering to PostScript

2001-06-26 Thread Hitesh Bagchi

I tried setting the PJL ENTER LANGUAGE = PCL
and then sending the output to the printer but the printer printed the same old
junk characters it was doing earlier
Here is my piece of code:
>>

  FileOutputStream fos = new FileOutputStream("Melstar\\Melprn");
  fos.write("\033%-12345X@PJL ENTER LANGUAGE = PCL\r\n".getBytes());
  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();
  fos.write("\033%-12345X@PJL ENTER LANGUAGE = POSTSCRIPT\r\n".getBytes());
  fos.close();
<<

I used the jdk 1.4 beta which has much better printing support than it's
predecessors and used it's
new java printing service API to query my printer. Whichever way I query my
printer it always tells
me that the supported file format to print is gif, jpeg and png.
If I try to set the DocFlavor as POSTSCRIPT or PDF it throws me an exception.
I hitting a dead end it seems.

Thanks,
Hitesh


Art Welch wrote:

> I think that it is probably most likely that something is altering the
> escape characters in the print stream before the printer gets it. The text
> renderer of course has no escape characters in it's output.
>
> If your printer was PS only then the plain text output would not have
> printed correctly either (unless something interpreted it for the printer).
> PCL however will print plain text properly (depending on line feeds and form
> feeds being appropriate).
>
> OK! I just did some more looking on the HP site and it looks like the 6MP
> should support both PCL and PostScript. If the default is PS and you want to
> leave the printer that way then you may need to use the PJL commands to
> switch the language in software (see
> http://www.hp.com/cposupport/printers/support_doc/bpl01378.html). If you
> want to try this, after you open the file output stream you would write the
> enter language PCL command "\033%-12345X@PJL ENTER LANGUAGE = PCL\r\n" to
> the output stream before giving the stream to Driver. After Driver has
> rendered the PCL you could reset the language to PS before closing the
> stream with "\033%-12345X@PJL ENTER LANGUAGE = POSTSCRIPT\r\n".
>
> I hope that this solves the problem for you,
> Art
>
> -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 dire

Re: Help in XML Rendering to PostScript

2001-06-22 Thread Hitesh Bagchi

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
> > 

Re: Help in XML Rendering to PostScript

2001-06-22 Thread Hitesh Bagchi

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 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
> > >
>

Re: Help in XML Rendering to PostScript

2001-06-20 Thread Hitesh Bagchi

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 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: Printing PDF using FOP...

2001-06-20 Thread Hitesh Bagchi

thanks denis.
but when i try this from my application it is printing all junk characters.
Maybe my printer doesn't understand a PDF stream. It is a HP Laser Jet 6P/6MP
printer.

Thanks,
Hitesh

Denis Kranjcec wrote:

> I'm printing with acrobat reader 4.0
>
> here is print.bat that I call from my application
> acrobat /t C:\Java\xml-fop\pdf\file.pdf "\\K2\HP LaserJet 1100 (MS)" "HP
> LaserJet 1100 (MS)" "\\K2\HP LaserJet 1100 (MS)"
>
> This is documentation from adobe:
>
> How Do I Use Command Lines with Acrobat and Acrobat Reader on
> Windows?
> These are unsupported command lines, but have worked for some developers.
> There
> is no documentation for these commands other than what is listed below. You
> can
> display and print a PDF file using command lines with Acrobat and Acrobat
> Reader.
> AcroRd32.exe filename - Executes the Reader and displays a file.
> Other options for the command line are:
> AcroRd32.exe /p filename - Executes the Reader and prints a file.
> AcroRd32.exe /t path printername drivername portname - Initiates
> Acrobat Reader, prints a file while suppressing the Acrobat print dialog
> box, then
> terminates Reader.
> The four parameters of the /t option evaluate to path, printername,
> drivername, and portname (all strings).
> printername - The name of your printer.
> drivername -Your printer driver's name. Whatever appears in the Driver Used
> box
> when you view your printer's properties.
> portname - The printer's port. portname cannot contain any "/" characters;
> if it
> does, output is routed to the default port for that printer.
> If using Acrobat, substitute Acrobat.exe in place of AcroRd32.exe in the
> command lines.
> option meaning
> /n Launch a separate instance of the Acrobat application, even if one is
> currently open.
> /s Open Acrobat, suppressing the splash screen.
> /o Open Acrobat, suppressing the open file dialog.
> /h Open Acrobat in hidden mode.
>
> I hope this helps,
>
> Denis
>
> -Original Message-
> From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 16, 2001 7:10 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Printing PDF using FOP...
>
> I downloaded a fresh set of code from the fop cvs and did find the
> PCLRenderer
> and the other latest source code. But as far I could make out
> PCLRenderer does
> not print to a printer instead it prints to a file in pcl format. Now in
> case of
> pcl as well I do have to send the output to the printer. So my previous
> problem
> remains.
> I am actually not getting how can I send the output to the printer. I
> think if
> somebody can
> provide with a code fragment then it would be of great help.
>
> Thanks,
> Hitesh
>
> -
> 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

2001-06-19 Thread Hitesh Bagchi

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]




Re: Printing PDF using FOP...

2001-06-19 Thread Hitesh Bagchi

I downloaded a fresh set of code from the fop cvs and did find the
PCLRenderer
and the other latest source code. But as far I could make out
PCLRenderer does
not print to a printer instead it prints to a file in pcl format. Now in
case of
pcl as well I do have to send the output to the printer. So my previous
problem
remains.
I am actually not getting how can I send the output to the printer. I
think if
somebody can
provide with a code fragment then it would be of great help.

Thanks,
Hitesh




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Printing PDF using FOP.

2001-06-16 Thread Hitesh Bagchi

I downloaded a fresh set of code from the fop cvs and did find the
PCLRenderer
and the other latest source code. But as far I could make out
PCLRenderer does
not print to a printer instead it prints to a file in pcl format. Now in
case of
pcl as well I do have to send the output to the printer. So my previous
problem
remains.
I am actually not getting how can I send the output to the printer. I
think if
somebody can
provide with a code fragment then it would be of great help.

Thanks,
Hitesh

Art Welch wrote:

> To use the PCLRenderer you just need to tell the Driver to use the
> PCLRenderer either by passing the symbolic constant for this or by passing
> an instance of the PCLRenderer class. For example:
>
> fopDriver.setRenderer(Driver.RENDER_PCL);
> or
> fopDriver.setRenderer(new PCLRenderer());
>
> If you are invoking FOP from the command line then you can use the -pcl
> switch to invoke the PCL Renderer.
>
> I am not sure what was in the various ZIP files. I would have thought that
> everything should be in there.
>
> Art
>
> -Original Message-
> From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2001 8:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Printing PDF using FOP...
>
> I downloaded the 0.18 version of FOP (Fop-0.18.1-DEV-src.zip).
> In it I did find the PCLRenderer class but found no example explaining how
> to
> use it.
> Also the code I found in the src directory do not contain the
> org.apache.fop.render.pcl package and all the new packages of 0.18 although
> the
> javadocs has them. Did I downloaded the wrong zip file.?
> Can somebody provide me with a code snippet as to how to use PCLRenderer.
> Hitesh..
>
> Art Welch wrote:
>
> > I think that you will want to upgrade to a newer version of FOP. I believe
> > that the PrintCommandLine/AWTRenderer were not functioning in earlier
> > versions. The PCLRenderer is also a fairly recent addition.
> >
> > HTH,
> > Art
> >
> > -Original Message-
> > From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 13, 2001 8:04 AM
> > To: [EMAIL PROTECTED]
> > Subject: Printing PDF using FOP...
> >
> > Hi,
> > I am new to fop and I am not sure whether this is the right place to post
> > this
> > question.
> > Actually what I intend to do is:
> > Write an application which will generate a pdf file using fop and then
> send
> > it
> > to the printer without user intervention. I am able to generate the pdf
> file
> > using fop. It works perfectly. But I am struggling for the past few days
> as
> > to
> > how to print the pdf using fop. I went through the mailing list archives
> and
> > found some references to AWTRenderer and PCLRenderer but I couldn't work
> out
> > a
> > solution. Moreover I didn't find the PCLRenderer in fop 0.17. Is it a new
> > addition.?
> > I tried running the PrintCommandLine program in fop but it always gives me
> > an
> > error:
> > using SAX parser org.apache.xerces.parsers.SAXParser
> > using element mapping org.apache.fop.fo.StandardElementMapping
> > using element mapping org.apache.fop.svg.SVGElementMapping
> > using property list mapping
> > org.apache.fop.fo.StandardPropertyListMapping
> > using property list mapping org.apache.fop.svg.SVGPropertyListMapping
> > building formatting object tree
> > WARNING: Unknown formatting object
> > http://www.w3.org/1999/XSL/Transform^stylesheet
> > FATAL ERROR: null
> >
> > Can somebody please help. My query is how to send the generated pdf
> document
> > to
> > the printer to print with the default options.
> >
> > Thanks,
> > Hitesh
> >
> > -
> > 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]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Printing PDF using FOP...

2001-06-15 Thread Hitesh Bagchi

I downloaded a fresh set of code from the fop cvs and did find the PCLRenderer
and the other latest source code. But as far I could make out PCLRenderer does
not print to a printer instead it prints to a file in pcl format. Now in case of
pcl as well I do have to send the output to the printer. So my previous problem
remains.
I am actually not getting how can I send the output to the printer. I think if
somebody can
provide with a code fragment then it would be of great help.

Thanks,
Hitesh

Art Welch wrote:

> To use the PCLRenderer you just need to tell the Driver to use the
> PCLRenderer either by passing the symbolic constant for this or by passing
> an instance of the PCLRenderer class. For example:
>
> fopDriver.setRenderer(Driver.RENDER_PCL);
> or
> fopDriver.setRenderer(new PCLRenderer());
>
> If you are invoking FOP from the command line then you can use the -pcl
> switch to invoke the PCL Renderer.
>
> I am not sure what was in the various ZIP files. I would have thought that
> everything should be in there.
>
> Art
>
> -Original Message-
> From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2001 8:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Printing PDF using FOP...
>
> I downloaded the 0.18 version of FOP (Fop-0.18.1-DEV-src.zip).
> In it I did find the PCLRenderer class but found no example explaining how
> to
> use it.
> Also the code I found in the src directory do not contain the
> org.apache.fop.render.pcl package and all the new packages of 0.18 although
> the
> javadocs has them. Did I downloaded the wrong zip file.?
> Can somebody provide me with a code snippet as to how to use PCLRenderer.
> Hitesh..
>
> Art Welch wrote:
>
> > I think that you will want to upgrade to a newer version of FOP. I believe
> > that the PrintCommandLine/AWTRenderer were not functioning in earlier
> > versions. The PCLRenderer is also a fairly recent addition.
> >
> > HTH,
> > Art
> >
> > -Original Message-
> > From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 13, 2001 8:04 AM
> > To: [EMAIL PROTECTED]
> > Subject: Printing PDF using FOP...
> >
> > Hi,
> > I am new to fop and I am not sure whether this is the right place to post
> > this
> > question.
> > Actually what I intend to do is:
> > Write an application which will generate a pdf file using fop and then
> send
> > it
> > to the printer without user intervention. I am able to generate the pdf
> file
> > using fop. It works perfectly. But I am struggling for the past few days
> as
> > to
> > how to print the pdf using fop. I went through the mailing list archives
> and
> > found some references to AWTRenderer and PCLRenderer but I couldn't work
> out
> > a
> > solution. Moreover I didn't find the PCLRenderer in fop 0.17. Is it a new
> > addition.?
> > I tried running the PrintCommandLine program in fop but it always gives me
> > an
> > error:
> > using SAX parser org.apache.xerces.parsers.SAXParser
> > using element mapping org.apache.fop.fo.StandardElementMapping
> > using element mapping org.apache.fop.svg.SVGElementMapping
> > using property list mapping
> > org.apache.fop.fo.StandardPropertyListMapping
> > using property list mapping org.apache.fop.svg.SVGPropertyListMapping
> > building formatting object tree
> > WARNING: Unknown formatting object
> > http://www.w3.org/1999/XSL/Transform^stylesheet
> > FATAL ERROR: null
> >
> > Can somebody please help. My query is how to send the generated pdf
> document
> > to
> > the printer to print with the default options.
> >
> > Thanks,
> > Hitesh
> >
> > -
> > 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]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Printing PDF using FOP...

2001-06-14 Thread Hitesh Bagchi

I downloaded the 0.18 version of FOP (Fop-0.18.1-DEV-src.zip).
In it I did find the PCLRenderer class but found no example explaining how to
use it.
Also the code I found in the src directory do not contain the
org.apache.fop.render.pcl package and all the new packages of 0.18 although the
javadocs has them. Did I downloaded the wrong zip file.?
Can somebody provide me with a code snippet as to how to use PCLRenderer.
Hitesh..


Art Welch wrote:

> I think that you will want to upgrade to a newer version of FOP. I believe
> that the PrintCommandLine/AWTRenderer were not functioning in earlier
> versions. The PCLRenderer is also a fairly recent addition.
>
> HTH,
> Art
>
> -Original Message-----
> From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 13, 2001 8:04 AM
> To: [EMAIL PROTECTED]
> Subject: Printing PDF using FOP...
>
> Hi,
> I am new to fop and I am not sure whether this is the right place to post
> this
> question.
> Actually what I intend to do is:
> Write an application which will generate a pdf file using fop and then send
> it
> to the printer without user intervention. I am able to generate the pdf file
> using fop. It works perfectly. But I am struggling for the past few days as
> to
> how to print the pdf using fop. I went through the mailing list archives and
> found some references to AWTRenderer and PCLRenderer but I couldn't work out
> a
> solution. Moreover I didn't find the PCLRenderer in fop 0.17. Is it a new
> addition.?
> I tried running the PrintCommandLine program in fop but it always gives me
> an
> error:
> using SAX parser org.apache.xerces.parsers.SAXParser
> using element mapping org.apache.fop.fo.StandardElementMapping
> using element mapping org.apache.fop.svg.SVGElementMapping
> using property list mapping
> org.apache.fop.fo.StandardPropertyListMapping
> using property list mapping org.apache.fop.svg.SVGPropertyListMapping
> building formatting object tree
> WARNING: Unknown formatting object
> http://www.w3.org/1999/XSL/Transform^stylesheet
> FATAL ERROR: null
>
> Can somebody please help. My query is how to send the generated pdf document
> to
> the printer to print with the default options.
>
> Thanks,
> Hitesh
>
> -
> 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: Printing PDF using FOP...

2001-06-13 Thread Hitesh Bagchi

Is there a way to know what kind of printer I have.
Our printer is HP LaserJet 6P/6MP-standard.
Now how do I know what kind of printer is this.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Printing PDF using FOP...

2001-06-13 Thread Hitesh Bagchi

Hi,
I am new to fop and I am not sure whether this is the right place to post this
question.
Actually what I intend to do is:
Write an application which will generate a pdf file using fop and then send it
to the printer without user intervention. I am able to generate the pdf file
using fop. It works perfectly. But I am struggling for the past few days as to
how to print the pdf using fop. I went through the mailing list archives and
found some references to AWTRenderer and PCLRenderer but I couldn't work out a
solution. Moreover I didn't find the PCLRenderer in fop 0.17. Is it a new
addition.?
I tried running the PrintCommandLine program in fop but it always gives me an
error:
using SAX parser org.apache.xerces.parsers.SAXParser
using element mapping org.apache.fop.fo.StandardElementMapping
using element mapping org.apache.fop.svg.SVGElementMapping
using property list mapping org.apache.fop.fo.StandardPropertyListMapping
using property list mapping org.apache.fop.svg.SVGPropertyListMapping
building formatting object tree
WARNING: Unknown formatting object
http://www.w3.org/1999/XSL/Transform^stylesheet
FATAL ERROR: null

Can somebody please help. My query is how to send the generated pdf document to
the printer to print with the default options.

Thanks,
Hitesh


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]