473,748 Members | 8,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSL-FO -> PCL dynamically selecting printer paper bins / drawers / trays

Hello,

We have a 'standard letters' type app that can produce the letter as
an XSL-FO document. We have used FOP to produce PDFs and are quite
impressed. We also need to be able to print the letter and also choose
paper from different printer bins. This is mostly so that headed paper
can be used for the first page and continuation for the rest.

Does anyone know if it is possible to define this with XSL-FO and if
FOP, RenderX or anything else can actually make it happen.

Thanks vary much.
Mark Wheadon.
Jul 20 '05 #1
3 4863
Hi,

Mark Wheadon wrote:
We have a 'standard letters' type app that can produce the letter as
an XSL-FO document. We have used FOP to produce PDFs and are quite
impressed. We also need to be able to print the letter and also choose
paper from different printer bins. This is mostly so that headed paper
can be used for the first page and continuation for the rest.

Does anyone know if it is possible to define this with XSL-FO and if
FOP, RenderX or anything else can actually make it happen.


RenderX XEP can ascribe arbitrary PostScript page device settings
to individual page masters: this gives a chance to switch trays, trigger
manual feed etc. This feature only works for PostScript output:
PDF format does not let you store printer-specific instructions in the
document.

Regards,
Nikolai Grigoriev
RenderX
Jul 20 '05 #2
"Nikolai Grigoriev" <gr**@iitp.ru > wrote in message news:<bn******* ****@av771.comt v.ru>...
Hi,

Mark Wheadon wrote:
We have a 'standard letters' type app that can produce the letter as
an XSL-FO document. We have used FOP to produce PDFs and are quite
impressed. We also need to be able to print the letter and also choose
paper from different printer bins. This is mostly so that headed paper
can be used for the first page and continuation for the rest.

Does anyone know if it is possible to define this with XSL-FO and if
FOP, RenderX or anything else can actually make it happen.


RenderX XEP can ascribe arbitrary PostScript page device settings
to individual page masters: this gives a chance to switch trays, trigger
manual feed etc. This feature only works for PostScript output:
PDF format does not let you store printer-specific instructions in the
document.

Regards,
Nikolai Grigoriev
RenderX


Thanks Nik, is there any chance that you could give me a quick
example. I downloaded the XEP trial (I know it doesn't do PS) and have
had a look through the documentation briefly but can't see how I might
do what you suggest.

Thanks again. MAW.
Jul 20 '05 #3
Hi Mark,

"Mark Wheadon" <ma***@pacsoluk .com> wrote:
Thanks Nik, is there any chance that you could give me a quick
example. I downloaded the XEP trial (I know it doesn't do PS) and have
had a look through the documentation briefly but can't see how I might
do what you suggest.


Here's the relative specs:

http://xep.xattic.com/xep/doc/spec.html#Page_Device
http://xep.xattic.com/xep/doc/spec.pdf#Page_Device

Essentially, we have a very general processing instruction
that inserts arbitrary PostScript code as a value for an
entry in page device dictionary. This value my be set
for the whole document (in which case the PI should
be located at top level, before <fo:root>), or for an
individual page (in this case, the PI is placed inside
<fo:simple-page-master> for that page). Some examples:

<?xep-postscript-page-device /Duplex true?>
<fo:root xmlns:fo=....>
....

sets duplex mode for the document (and reverts back to the
original mode in the document trailer);

<fo:simple-page-master master-name="first-page">
<?xep-postscript-page-device /MediaColor (yellow)?>
<?xep-postscript-page-device /MediaType (coversheet)?>
<fo:region-body margin="1.5in 1in"/>
....
sets /MediaColor and /MediaType entries for padedevice
for pages _produced with this page-master_ (and reverts
them back to original values in the page trailer);

<?xep-postscript-page-device
/InputAttributes
<< 0 << /PageSize [612 1008] >>
1 << /PageSize [612 792]
/MediaType (letterhead)
/MatchAll true

?>

specifies a whole /InputAttributes dictionary to tweak media selection
policies for the document.

A necessary admonition: the mechanism is extremely powerful
but requires care to use. Incorrect PostScript code in the PI may
ruin the whole output file. Allowed entries for setpagedevice
and currentpagedevi ce are printer-specific; please consult your
printer manual for a list of page device options and their values.
Please also note that the resulting code may not be portable
across printers.

Regards,
Nikolai Grigoriev
RenderX
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1340
by: anthony | last post by:
hello , is there any simple way to override control panel>printer and fax>printer paper size setting by c# or vb.net?I tried the Printing.PrinterSettings class , however it seems use for setting my pre printing document page size only , but not the acutal size of real paper.I would like to know how to set the acutal paper size in programing level.Thanks a lot Any reply is appreciated
0
2214
by: Bill Hymel | last post by:
Access Printing - Just wondering if you have a solution for this problem - I need to be able to print an Invoice with the 'terms and conditions' on the back side of an Invoice. To do this, I would load preprinted paper (with the terms and conditions already printed on the back side) into a different paper tray than the default paper tray. Then, somewhere in my code, I need to instruct some of the Invoice 'copies' to print to the paper...
1
11887
by: Bruce Wood | last post by:
I'm having a devil of a time calling DeviceCapabilities() in order to get the list of paper names / codes / sizes for a printer. Here is my code and the input it produces: static extern Int32 DeviceCapabilities( string device, string port, Int16 capability, out IntPtr outputBuffer,
0
1070
by: bafidi | last post by:
please hel i cant change the default printer papersiz can you show me an example for a4 paper siz and custom paper siz
0
1094
by: Just Me | last post by:
I want to save and then be able to restore the printer paper size. Something like: WriteLine(lFileNum, gAddressesPD.DefaultPageSettings.PaperSize.ToString) Then:
1
2201
by: Claudio | last post by:
how do I get the paper height and width of the default printer?
0
1548
by: Academic | last post by:
I posted this in the vb group but it is a pretty esoteric question and I did not get a reply. I'm hoping someone here has some experience generating custom printer forms. If I generate a new form by using Start/Printer and Faxes and then right click a printer and chose Properties and then generate a new form, my program then shows the form in PrintDialog (code below) and if selected mPD then contains the correct sizes.
23
11456
by: Al Grant | last post by:
I have a 'printable' button to generate printable output and want this to use A3 if available, irrespective of the user's default printer setting. Is there any way to set a page's preferred printed paper size from HTML? Portable if possible, but IE-only would be better than nothing.
1
1207
by: =?Utf-8?B?bW9vc2VzY29vdGVy?= | last post by:
My Lexmark Z53 color jetprinter is connected to xp. When I try to print, the paper goes through but nothing prints. I would appreciate help. -- moosescooter
0
8826
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9316
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9241
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4597
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.