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 David Hurcomb <da...@mpfs.org.uk> on 2010/10/08 12:52:17 UTC

PCL duplex

I would appreciate some help please.

I would _really_ like to print in duplex mode.  It looks possible from 
the docs (V1.0).

After trying and failing in my complicated document I went back to first 
principles and modified the example simple.fo adding the following to 
fo:root

xmlns:pcl="http://xmlgraphics.apache.org/fop/extensions/pcl"

And the following to simple-page-master

             master-name="duplex"
             pcl:duplex-mode="2"

Then I altered the master-reference

<fo:page-sequence master-reference="duplex">

and copied the fo:block enough times to roll over to 2 pages.

I generated the pcl from the command line. fop -fo duplex.fo -pcl output.pcl

Then I sent the PCL output to a Kyocera duplex printer and a Xerox  
duplex printer but both printers gave me 2 sheets.

(Although the Kyocera seemed to run the first sheet through the duplexer 
but leave the back blank).

Am I missing something.

Thanks sincerely

David


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


Re: PCL duplex

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 08.10.2010 14:33:52 David Hurcomb wrote:
> On 08/10/2010 12:55, Jeremias Maerki wrote:
> > FOP uses the&lnS command to enable duplex mode. But that may not be the
> > right command for all printers.
> >
> > If you post the exact model name of the two printers, I'll download the
> > tech manuals and take a look. Maybe they need some special command to
> > actually do duplex.
> >    
> I have tried my main printer is a Kyocera (FS-9130DN) they push you 
> towards printing using their own PRESCRIBE language , but it does use 
> PCL emulator (set up by the PRESCRIBE command !R!SIR2;EXIT;)

There seems to be some level of auto-sensing, so the exit command should
probably not be necessary. Anyway, I didn't find any PCL-specific
information in the manuals concerning duplex printing.

> > You could also generate two simple duplex documents with the printers'
> > drivers and send them to me. That might allow me to reverse engineer the
> > required commands.
> >    
> I have created the attached from notepad.exe - is there a better way (on 
> MS)?  I had expected to see the PRESCRIBE code DUPX1 or DUPX2 for long 
> edge and short edge respectively.

Notepad should be fine as long as you get two pages. But apparently,
that printer driver produced PCL-XL/PCL6 rather than PCL 5 which FOP
produces.

What I did find out is that there is a PJL command that allows to
control duplexing. But FOP currently has no facility to add custom PJL
commands. You could try to insert them by hand for a test.

@PJL SET DUPLEX=ON
@PJL SET BINDING=LONGEDGE

No guarantees that it'll work.

Another possibility you could investigate is to print against the
printer's native driver using FOP's print renderer. The Java Printing
API offers to control a wide range of parameters. But again, I cannot
guarantee a good outcome. There should be numerous tutorials on the Java
Printing API on the net.

Good luck!

Jeremias Maerki


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


Re: PCL duplex

Posted by Everson <ev...@yahoo.com.br>.

Hi,

I'm generating PCL files with XML and XSL files using FOP-1.0 in Java.
Using PCLRenderer:
Fop fop = fopFactory.newFop (MimeConstants.MIME_PCL,....)

It's good.

Now, I need to insert more PCL commands? 
For example, commands to choose the form that should be used, running macros
and other things.

Is it possible insert this commands in XML or XSL files? 


Thanks.
Everson


David Hurcomb wrote:
> 
> On 08/10/2010 12:55, Jeremias Maerki wrote:
>> FOP uses the&lnS command to enable duplex mode. But that may not be the
>> right command for all printers.
>>
>> If you post the exact model name of the two printers, I'll download the
>> tech manuals and take a look. Maybe they need some special command to
>> actually do duplex.
>>    
> I have tried my main printer is a Kyocera (FS-9130DN) they push you 
> towards printing using their own PRESCRIBE language , but it does use 
> PCL emulator (set up by the PRESCRIBE command !R!SIR2;EXIT;)
> 
>> You could also generate two simple duplex documents with the printers'
>> drivers and send them to me. That might allow me to reverse engineer the
>> required commands.
>>    
> I have created the attached from notepad.exe - is there a better way (on 
> MS)?  I had expected to see the PRESCRIBE code DUPX1 or DUPX2 for long 
> edge and short edge respectively.
> 
> Thanks very much
> 
>  
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 

-- 
View this message in context: http://old.nabble.com/PCL-duplex-tp29914283p32481957.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: PCL duplex

Posted by David Hurcomb <da...@mpfs.org.uk>.
On 08/10/2010 12:55, Jeremias Maerki wrote:
> FOP uses the&lnS command to enable duplex mode. But that may not be the
> right command for all printers.
>
> If you post the exact model name of the two printers, I'll download the
> tech manuals and take a look. Maybe they need some special command to
> actually do duplex.
>    
I have tried my main printer is a Kyocera (FS-9130DN) they push you 
towards printing using their own PRESCRIBE language , but it does use 
PCL emulator (set up by the PRESCRIBE command !R!SIR2;EXIT;)

> You could also generate two simple duplex documents with the printers'
> drivers and send them to me. That might allow me to reverse engineer the
> required commands.
>    
I have created the attached from notepad.exe - is there a better way (on 
MS)?  I had expected to see the PRESCRIBE code DUPX1 or DUPX2 for long 
edge and short edge respectively.

Thanks very much

Re: PCL duplex

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
FOP uses the &lnS command to enable duplex mode. But that may not be the
right command for all printers.

If you post the exact model name of the two printers, I'll download the
tech manuals and take a look. Maybe they need some special command to
actually do duplex.

You could also generate two simple duplex documents with the printers'
drivers and send them to me. That might allow me to reverse engineer the
required commands.

On 08.10.2010 12:52:17 David Hurcomb wrote:
> I would appreciate some help please.
> 
> I would _really_ like to print in duplex mode.  It looks possible from 
> the docs (V1.0).
> 
> After trying and failing in my complicated document I went back to first 
> principles and modified the example simple.fo adding the following to 
> fo:root
> 
> xmlns:pcl="http://xmlgraphics.apache.org/fop/extensions/pcl"
> 
> And the following to simple-page-master
> 
>              master-name="duplex"
>              pcl:duplex-mode="2"
> 
> Then I altered the master-reference
> 
> <fo:page-sequence master-reference="duplex">
> 
> and copied the fo:block enough times to roll over to 2 pages.
> 
> I generated the pcl from the command line. fop -fo duplex.fo -pcl output.pcl
> 
> Then I sent the PCL output to a Kyocera duplex printer and a Xerox  
> duplex printer but both printers gave me 2 sheets.
> 
> (Although the Kyocera seemed to run the first sheet through the duplexer 
> but leave the back blank).
> 
> Am I missing something.
> 
> Thanks sincerely
> 
> David
> 


Jeremias Maerki


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