Thanks for all for help. Building FOP packages and using the new built version was fine simple. But I havent succeeded into generating a valid PS file. Either <ps:ps-page-setup-code> tag indicated by Adrian Or <ps:ps-setpagedevice> tag do not seem to inject the right PS instructions (there is no << /MediaPosition >> instruction in the PS)!!
The generated postscript can not be opened in gsView, and when I try to send it directally to printer, it has no effect! For tests I am using a HP LaserJet 5000DN series (May be not a PS compliant printer... But I think using gsView is a good test). When I delete these tags, the generated PS is valid: it can be printed and viewed, but of course, it does not use the multi-tray options... I will continue working on this issue tomorrow... Thanks again!! (Any extra-help will be welcomed). A+. Ahmed HADDAD. > Hi Ahmed, > > If you only need to manage tray selection you could try just using > ps:ps-page-setup-code in 0.93 without having to build your own FOP. > Something like the following should do the trick... > > <fo:simple-page-master master-name="example" page-height="29.7cm" > page-width="21cm" margin="2cm"> > <fo:region-body/> > <ps:ps-page-setup-code name="lower-tray"><![CDATA[ > << /MediaPosition 4 >> setpagedevice > ]]> > </ps:ps-page-setup-code> > </fo:simple-page-master> > > Adrian. > > [EMAIL PROTECTED] wrote: >> Thanks Adrian. >> >> I am using fop 0.93. The deal is to manage mass-editions and I will >> need PS extensions to automatically manage printers' tray selection >> (Xerox like). >> >> Does-it mean that this extension will be included in the next FOP >> standard versions? >> >> B.R. >> >>> Hi Ahmed, >>> >>> The first question I have is which version of FOP are you using? I >>> believe the new extensions that I developed were very recently >>> committed >>> to the latest and greatest FOP trunk repository. >>> >>> If you are using FOP 0.94/0.93 you won't have these new features in >>> the code and you will need to download the latest trunk source code >>> using a subversion client and build your own (see >>> http://xmlgraphics.apache.org/fop/dev/tools.html) for details. >>> >>> Adrian. >>> >>> [EMAIL PROTECTED] wrote: >>>> Hello, >>>> >>>> I am very insterested by FOP postscript extensions as descibed in >>>> http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript (by >>>> Adrian Cumiskey and Jeremias Maerki). But when I tried to execute >>>> the given example, I've got following error: >>>> >>>> Error(6/46): No element mapping definition found for (Namespace URI: >>>> "http://xmlgraphics.apache.org/fop/postscript", Local Name: >>>> "ps-setpagedevice")>javax.xml.transform.TransformerException: .... >>>> >>>> So the question is: how to obtain and install this extension for >>>> FOP? I haven't found web issues before posting this message. >>>> >>>> Thank you for any help. >>>> >>>> Ahmed HADDAD. >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: >>>> [EMAIL PROTECTED] >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: >>> [EMAIL PROTECTED] >> >> >> >> > > > --------------------------------------------------------------------- To > unsubscribe, e-mail: [EMAIL PROTECTED] For > additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
