[Jsprintsetup] Custom Paper Size
mitko at edabg.com
Mon Mar 21 07:39:08 PDT 2011
Possible source of problem is mismatched paper_data(pd=119) if you are
working under Windows, or mismatched paper_name(pn=na_legal_rotated) if
you are working under Linux.
To check how Firefox address your paper size check this:
- manually print from Firefox something URL on this paper ('US Legal
- after successful print open about:config and check following preferences:
You must use there for paper_data(pd=?) and paper_name(pn=?)
I hope that this will help you.
On 18.3.2011 г. 22:45, Watch Cricket wrote:
> Respected Madam/Sir,
> I came to know regarding your firefox add-on and started liking it. I am
> kind of learning/preparing a demo.
> I am currently using your 0.9.0 beta so that I can use custom paper sizes.
> However, I am having issues with printing using the custom paper size.
> Below is my code:
> _Goal:_ To print a page in "Rotated Legal" (14.0in x 8.5in) size!
> jsPrintSetup.setPrinter('HP Officejet 7300');
> jsPrintSetup.setOption('shrinkToFit', 0);
> jsPrintSetup.setOption('orientation', jsPrintSetup.kPortraitOrientation);
> jsPrintSetup.definePaperSize(44, 119, 'na_legal_rotated',
> 'na_legal_14x8.5in', 'US Legal Rotated', 14.0, 8.5,
> jsPrintSetup.setOption('printBGColors', 1);
> jsPrintSetup.setOption('printBGImages', 1);
> _Result:_ I am not seeing the print in "14.0in x 8.5in" size!!
> I would really appreciate if you could take a moment to steer me in the
> right direction.
> Many thanks in advance.
> Best Regards,
More information about the Jsprintsetup