You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Rick Roen <Ri...@LakeValleySeed.com> on 2006/05/18 16:43:10 UTC

-print option to specific printer

FOP 0.92b

How do I specify a specific printer when using the command line.

This works to the Windows default printer:

       FOP file.fo -print
       
This brings up the following error information, but does not print anything:

	FOP file.fo -print "\\lvsserver0\Kyocera Mita KM-4035 KX"

May 18, 2006 8:31:55 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: Don't know what to do with
\\lvsserver0\Kyocer
a
        at
org.apache.fop.cli.CommandLineOptions.parseUnknownOption(CommandLineO
ptions.java:534)
        at
org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
.java:267)
        at
org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
32)
        at org.apache.fop.cli.Main.startFOP(Main.java:147)
        at org.apache.fop.cli.Main.main(Main.java:190)


It seems like it cannot handle a printer name with embedded spaces, but when
I try

	FOP file.fo \\servername\hpoj OR \hpoj OR hpoj

I get the same error "don't know what to do with...

Can someone advise?

Rick


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: -print option to specific printer

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
At the moment, you cannot specify the printer to print on for "-print".
It always prints to the default printer. We're glad for any patch to
improve that.

The alternative is to use "fop -fo file.fo -ps \\servername\printer" if
you're on Windows and the printer is "shared".

If you download FOP Trunk from Subversion you can also use "-pcl"
instead of "-ps", but "-ps" is preferred for quality reasons if the
printer supports PostScript.

On 18.05.2006 16:43:10 Rick Roen wrote:
> FOP 0.92b
> 
> How do I specify a specific printer when using the command line.
> 
> This works to the Windows default printer:
> 
>        FOP file.fo -print
>        
> This brings up the following error information, but does not print anything:
> 
> 	FOP file.fo -print "\\lvsserver0\Kyocera Mita KM-4035 KX"
> 
> May 18, 2006 8:31:55 AM org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> org.apache.fop.apps.FOPException: Don't know what to do with
> \\lvsserver0\Kyocer
> a
>         at
> org.apache.fop.cli.CommandLineOptions.parseUnknownOption(CommandLineO
> ptions.java:534)
>         at
> org.apache.fop.cli.CommandLineOptions.parseOptions(CommandLineOptions
> .java:267)
>         at
> org.apache.fop.cli.CommandLineOptions.parse(CommandLineOptions.java:1
> 32)
>         at org.apache.fop.cli.Main.startFOP(Main.java:147)
>         at org.apache.fop.cli.Main.main(Main.java:190)
> 
> 
> It seems like it cannot handle a printer name with embedded spaces, but when
> I try
> 
> 	FOP file.fo \\servername\hpoj OR \hpoj OR hpoj
> 
> I get the same error "don't know what to do with...
> 
> Can someone advise?
> 
> Rick


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org