RE: FOP Print Option

2002-03-11 Thread Art Welch

Sorry, I think that it still does not - unless b&w dithering is close enough
for you.

Of course if someone wants to get me a PCL color printer and the appropriate
color PCL technical reference manuals and convince my employer to allow me
to do this, I would be happy to add color support...

Does anyone know how standard PCL color printing is? With the current PCL
support, as long as a printer supports PCL level 5 or above I have not seen
any compatibility problems. For color support would the PCLRenderer need to
know what kind of printer (mfg/model) it is printing to or just that it is
color? What would be a "lowest common denominator" PCL level for color
support?

Sorry about all the questions. The only color printing coding I have done
was for an Epson Color Stylus.

Color Me Curious,
Art

-Original Message-
From: Ralph LaChance [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 11:14 AM
To: [EMAIL PROTECTED]
Subject: RE: FOP Print Option


At 10:38 AM 3/11/02, you wrote:
>I figured out how to tell FOP to print to a specified printer.  On Windoze,
>depending on if you have a postscript printer or PCL printer you can simply
>do:
>fop ... -ps \\computername\printer or fop ... -pcl \\computername\printer.
>
>Jim

but remember that -pcl doesn't do color (at least it didn't)



 ' Best,
 -Ralph LaChance



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

2002-03-11 Thread Ralph LaChance

At 10:38 AM 3/11/02, you wrote:
>I figured out how to tell FOP to print to a specified printer.  On Windoze,
>depending on if you have a postscript printer or PCL printer you can simply
>do:
>fop ... -ps \\computername\printer or fop ... -pcl \\computername\printer.
>
>Jim

but remember that -pcl doesn't do color (at least it didn't)



 ' Best,
 -Ralph LaChance



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




RE: FOP Print Option

2002-03-11 Thread Jim Urban

I figured out how to tell FOP to print to a specified printer.  On Windoze,
depending on if you have a postscript printer or PCL printer you can simply
do:
fop ... -ps \\computername\printer or fop ... -pcl \\computername\printer.

Jim

> -Original Message-
> From: Ralph LaChance [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 3:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: FOP Print Option
>
>
> At 03:53 PM 3/8/02, you wrote:
> >I need to use the FOP print option (-print) to print a FO directly to a
> >printer.  The problem is, I need to tell FOP which printer (by
> name, port or
> >UNC name) to print to.  Displaying the preview window (-awt) or printer
> >dialog is not an option.  I will be embedding this code in an application
> >which will run unattended.  The application will "wake up",
> check for FOs to
> >print and print them automatically without any user intervention
> and then go
> >back to sleep.  The print out must go to a specified printer containing a
> >special paper which will most likely NOT be the default printer.
>  Any ideas
> >how to do this?
>
> This was answered previously, please check the archives.
>
> The short answer is that you cannot in any straightforward fashion
> programmatically assign a printjob to a specific printer pre-Java 1.4.
> There new JavaPrintService facility in 1.4 is promising, but I think
> you might have trouble trying to run fop in 1.4 yet.
>
> If someone wishes to "refine" this answer, please jump in;
> Alex -- another topic for the faq?
>
>
>
>  ' Best,
>  -Ralph LaChance
>
>
>
> -
> 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 Print Option

2002-03-08 Thread Art Welch

Of course if the PCL or PS renderers met your needs then the solution could
be trivial. For example under AIX (IBM Unix) I do something like:

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

And give the OutputStream (out) to the PCLRenderer and it happily sends the
PCL to the AIX print queue.

I have also done something similar under Windows, but admittedly have not
done this in a long time, so I do not recall the syntax off hand. IIRC it
was as simple as opening a FileOutputStream to a network printer URL (or
something like that).

Of course if you need fancy things like SVG or user fonts then the
PCLRenderer may not work for you (PS may do more, but I have not tried it).

FWIW, I suspect that PCL or PS would be MUCH faster printing than AWT.

Art

-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 08, 2002 5:13 PM
To: [EMAIL PROTECTED]
Subject: RE: FOP Print Option


That is what I thought, but I was hoping there may have been some progress
made in this area. :)

Jim

> -Original Message-
> From: Ralph LaChance [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 3:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: FOP Print Option
>
>
> At 03:53 PM 3/8/02, you wrote:
> >I need to use the FOP print option (-print) to print a FO directly to a
> >printer.  The problem is, I need to tell FOP which printer (by
> name, port or
> >UNC name) to print to.  Displaying the preview window (-awt) or printer
> >dialog is not an option.  I will be embedding this code in an application
> >which will run unattended.  The application will "wake up",
> check for FOs to
> >print and print them automatically without any user intervention
> and then go
> >back to sleep.  The print out must go to a specified printer containing a
> >special paper which will most likely NOT be the default printer.
>  Any ideas
> >how to do this?
>
> This was answered previously, please check the archives.
>
> The short answer is that you cannot in any straightforward fashion
> programmatically assign a printjob to a specific printer pre-Java 1.4.
> There new JavaPrintService facility in 1.4 is promising, but I think
> you might have trouble trying to run fop in 1.4 yet.
>
> If someone wishes to "refine" this answer, please jump in;
> Alex -- another topic for the faq?
>
>
>
>  ' Best,
>  -Ralph LaChance
>
>
>
> -
> 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 Print Option

2002-03-08 Thread Jim Urban

That is what I thought, but I was hoping there may have been some progress
made in this area. :)

Jim

> -Original Message-
> From: Ralph LaChance [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 3:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: FOP Print Option
>
>
> At 03:53 PM 3/8/02, you wrote:
> >I need to use the FOP print option (-print) to print a FO directly to a
> >printer.  The problem is, I need to tell FOP which printer (by
> name, port or
> >UNC name) to print to.  Displaying the preview window (-awt) or printer
> >dialog is not an option.  I will be embedding this code in an application
> >which will run unattended.  The application will "wake up",
> check for FOs to
> >print and print them automatically without any user intervention
> and then go
> >back to sleep.  The print out must go to a specified printer containing a
> >special paper which will most likely NOT be the default printer.
>  Any ideas
> >how to do this?
>
> This was answered previously, please check the archives.
>
> The short answer is that you cannot in any straightforward fashion
> programmatically assign a printjob to a specific printer pre-Java 1.4.
> There new JavaPrintService facility in 1.4 is promising, but I think
> you might have trouble trying to run fop in 1.4 yet.
>
> If someone wishes to "refine" this answer, please jump in;
> Alex -- another topic for the faq?
>
>
>
>  ' Best,
>  -Ralph LaChance
>
>
>
> -
> 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 Print Option

2002-03-08 Thread Ralph LaChance

At 03:53 PM 3/8/02, you wrote:
>I need to use the FOP print option (-print) to print a FO directly to a
>printer.  The problem is, I need to tell FOP which printer (by name, port or
>UNC name) to print to.  Displaying the preview window (-awt) or printer
>dialog is not an option.  I will be embedding this code in an application
>which will run unattended.  The application will "wake up", check for FOs to
>print and print them automatically without any user intervention and then go
>back to sleep.  The print out must go to a specified printer containing a
>special paper which will most likely NOT be the default printer.  Any ideas
>how to do this?

This was answered previously, please check the archives.

The short answer is that you cannot in any straightforward fashion
programmatically assign a printjob to a specific printer pre-Java 1.4.
There new JavaPrintService facility in 1.4 is promising, but I think
you might have trouble trying to run fop in 1.4 yet.

If someone wishes to "refine" this answer, please jump in;
Alex -- another topic for the faq?



 ' Best,
 -Ralph LaChance



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




FOP Print Option

2002-03-08 Thread Jim Urban

Hello Everyone,

I need to use the FOP print option (-print) to print a FO directly to a
printer.  The problem is, I need to tell FOP which printer (by name, port or
UNC name) to print to.  Displaying the preview window (-awt) or printer
dialog is not an option.  I will be embedding this code in an application
which will run unattended.  The application will "wake up", check for FOs to
print and print them automatically without any user intervention and then go
back to sleep.  The print out must go to a specified printer containing a
special paper which will most likely NOT be the default printer.  Any ideas
how to do this?

Thanks,

Jim Urban
Product Manager
Netsteps Inc.
Suite 505E
1 Pierce Pl.
Itasca, IL  60143
Voice:  (630) 250-3045 x2164
Fax:  (630) 250-3046


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