Compositing it on your server sounds like the best bet, and it could be done as-is, in pdf, or using image compositing software.

Or, if you've eaten a bowl of hot peppers and feel antsy, you could write a Perl client application which does this on their computer. Hard to tweak though. Been looking at Ch. 5 of Windows NT Win32 Perl Programming: The Standard Extensions by Dave Roth. (My New Years present to myself).

Looks like M$ published an OLE reference to Office 97 which conceivably could help you find out how their printer is set up. Likewise you could write an ActiveX in Perl that does this task. Same book tells all (well, much) Nothing in it about printers per se, though there is stuff about accessing shares. I think this is frontier stuff cowboy..

Well, I just googled with keywords OLE printer margin. Hmm, first hit gives me "XL.ActiveSheet.PageSetup.LeftMargin = 18"! Run that through the mixer! Add the keyword "automation" and there's a lot more links to go through.

Finally I found something called "HOWTO: Use a VB ActiveX Component for Word Automation From Internet Explorer (Q286023)". Huh. M$ says it is a good way to get load off the server. Anyway, seems like this could be done in Perl too.

Of course this is totally useless if your customers are on Linux which is happening a bit more rapidly these days. Server side maybe is the safest since you don't have to wrestle with possibly badly documented object models etc.


In reply to Re: Browser Print Margin Control by mattr
in thread Browser Print Margin Control by PerlGuruWannabee

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.