[Jsprintsetup] To print a page in (2.90in x 9.0in) size

Dimitar Angelov mitko at edabg.com
Tue Nov 15 03:25:16 PST 2011

Hi Edi,

I'm not sure you can define any custom paper size.
Defining paper size must be considered with paper sizes supported by 
printer driver of your printer. Paper name and size must match of 
definition of driver and how Firefox is using it.
I recommend to follow recipe in following post to use custom paper size:

I also recommend to use paper size id above 100 for custom paper sizes.

I hope this help you!


Dimitar Angelov

On 15.11.2011 11:41, edy wrote:
> 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.1 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 (2.90in x 9.0in) size!jsPrintSetup.setOption('shrinkToFit', 0); jsPrintSetup.setOption('orientation', jsPrintSetup.kPortraitOrientation); jsPrintSetup.undefinePaperSize(44); jsPrintSetup.definePaperSize(44, 119, 'my_bill', 'my_bill2.9x9.0', 'mybill', 2.90,9.00, jsPrintSetup.kPaperSizeInches);jsPrintSetup.setPaperSizeData(44); jsPrintSetup.setOption('printBGColors', 1); jsPrintSetup.setOption('printBGImages', 1); jsPrintSetup.print();
> _Result:_ I am not seeing the print in (2.90in x 9.0in)size!! I would really appreciate if you could take a moment to steer me in the right direction. Many thanks in advance. Best Regards, Edi

More information about the Jsprintsetup mailing list