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]

Reply via email to