RE: Printing PDF using FOP...

2001-06-20 Thread Denis Kranjcec

If you can print your pdf manually from reader then you should be able to
print it from application also.
Maybe you choose wrong driver when you run reader.

Denis

-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 16, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Printing PDF using FOP...


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]



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

2001-06-19 Thread Denis Kranjcec

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]




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

Actually the output goes to an output stream. Unfortunately sending the
output stream is a little platform dependent. On Windows 2000 I just open an
OutputStream to the desired printer. Under Unix I exec an "lp" command and
get the output stream for that:

proc = Runtime.getRuntime().exec("lp -d" + output + " -o -dp -");
out = proc.getOutputStream();

Similar things can be done at the command line, but I do not remember the
syntax off hand. For windows I think that specifying an URL for the printer
works. I do not remember exactly how I got the command line to print
directly under Unix - maybe specifying stdout for the file name and then
piping the output to "lp". I do not use the command line much. For my
application FOP is invoked by a servlet.

HTH,
Art

-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 15, 2001 7:14 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

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

Re: Printing Using acrobat (was: Re: Printing PDF using FOP...)

2001-06-15 Thread Jeremias Maerki

> I forgot to emphasis that I am talkink about Windows. BTW, where can I 
> get description of command-line options and parameters of Arcrobat 
> Reader 5.0 for Windows?

It's probably in one of those PDF lists on the page below:

http://partners.adobe.com/asn/developer/acrosdk/docs.html

Jeremias Märki


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




Printing Using acrobat (was: Re: Printing PDF using FOP...)

2001-06-15 Thread Petr Andrs

I forgot to emphasis that I am talkink about Windows. BTW, where can I 
get description of command-line options and parameters of Arcrobat 
Reader 5.0 for Windows?

pa

On 15 Jun 2001, at 16:13 Petr Andrs wrote about Re: Printing PDF using FOP... :

> That is interesting, but how can I print with displaying print dialog.
> In my java program I need to to print PDF generated by fop. I need to
> have print dialog displayed and I need acrobat to close automatically
> after printing. I tried acread32.exe /p "pdffile", which dispalys print
> dialog but arcorbat reader stays open after printing.
> 
> pa
> 
> On 15 Jun 2001, at 9:37 Maurice Rice wrote about Re: Printing PDF using
> FOP... :
> 
> > You can use the Acrobat reader to send a pdf file directly to your
> > printer.
> > 
> > Try building a command string using the information at
> > http://marc.theaimsgroup.com/?l=fop-dev&m=9865403484&w=2.
> > 
> > Execute the command using Runtime.exec().
> > 
> > - Original Message -
> > From: "Hitesh Bagchi" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, June 15, 2001 7:13 AM
> > 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: Printing PDF using FOP...

2001-06-15 Thread Petr Andrs

That is interesting, but how can I print with displaying print dialog. 
In my java program I need to to print PDF generated by fop. I need to 
have print dialog displayed and I need acrobat to close automatically 
after printing. I tried acread32.exe /p "pdffile", which dispalys print 
dialog but arcorbat reader stays open after printing.

pa

On 15 Jun 2001, at 9:37 Maurice Rice wrote about Re: Printing PDF using FOP... :

> You can use the Acrobat reader to send a pdf file directly to your
> printer.
> 
> Try building a command string using the information at
> http://marc.theaimsgroup.com/?l=fop-dev&m=9865403484&w=2.
> 
> Execute the command using Runtime.exec().
> 
> - Original Message -
> From: "Hitesh Bagchi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 15, 2001 7:13 AM
> 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]




Re: Printing PDF using FOP...

2001-06-15 Thread Maurice Rice

You can use the Acrobat reader to send a pdf file directly to your printer.

Try building a command string using the information at
http://marc.theaimsgroup.com/?l=fop-dev&m=9865403484&w=2.

Execute the command using Runtime.exec().

- Original Message -
From: "Hitesh Bagchi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 15, 2001 7:13 AM
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]




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

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]




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

I took a peek at
http://www.pandi.hp.com/pandi-db/prodinfo.summary?product=laserjet6p&Region=
non_us and it looks like it is a PCL 6 printer. I thought that the MP
supported postscript as well, but the page does not mention it. Almost all
HP printers support PCL, some ALSO support PostScript. Anyhow, this printer
should work with the PCLRenderer. The other alternatives are to use the
AWTRenderer (PrintCommandLine) or another application to print the FOP
generated PDFs.

Art

-Original Message-
From: Hitesh Bagchi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 13, 2001 9:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Printing PDF using FOP...


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]

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




RE: Printing PDF using FOP...

2001-06-13 Thread Art Welch

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]




Re: Printing PDF using FOP...

2001-06-13 Thread Justin Buist

Push some raw postscript into it ... if it prints it out nice you have a
Postscript printer.

Next, try PCL ... if it prints it you have a PCL printer.  My money's on
postscript though.

Justin Buist
Trident Technology, Inc.

On Wed, 13 Jun 2001, Hitesh Bagchi wrote:

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


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




Re: Printing PDF using FOP...

2001-06-13 Thread Weiqi Gao

On 13 Jun 2001 17:33:53 +0530, Hitesh Bagchi wrote:
> 
> 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.

Unless your printer is capable of printing PDF files directly, you need
to convert the PDF content into a format that the printer recognizes,
such as PostScript or PCL or whatever.

See http://marc.theaimsgroup.com/?l=fop-dev&w=2&r=1&s=printer&q=b for a
discussion of how this is done on Windows with Acrobat Reader.

-- 
Weiqi Gao
[EMAIL PROTECTED]


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