javascript - JS print Setup - Select System Paper Size? -
i need print page in custom paper size defined in system (windows)/ printer , faxes.
i using firefox extension "js print setup". got through documentation http://jsprintsetup.mozdev.org/reference.html
it has function system printer list
jsprintsetup.getprinterslist()
but cannot find functions can me system paper sizes. 1 have is
jsprintsetup.getpapersizelist() // not getting system paper sizes :(
but gives it's own paper sizes, not system.
so how can select system paper size through extension or if that's not possible create 1 in extension?
side note: using extension because of ability silent print selecting(through code) printers , paper size (not happened yet).
for not find way use system paper sizes did find way add new paper sizes jsprintsetup.getpapersizelist()
jsprintsetup.definepapersize(101, 101, "custom", "custom_paper", "custom paper", 250, 400, jsprintsetup.kpapersizemillimeters); jsprintsetup.setpapersizedata(101);
according documentation
void definepapersize(in short jspid, in short pd, in wstring pn, in wstring pwg, in wstring name, in double w, in double h, in short m);
Comments
Post a Comment