[Jsprintsetup] Doubt resize page in JSPrintSetup
mitko at edabg.com
Tue Nov 22 22:44:51 PST 2011
First case will not give results, because FF don't get attention of what
set for options paperHeight and paperWidth.
I think that this is possible only with Paper Handling Methods.
Unfortunately FF don't give possibilities to use arbitrary paper sizes.
Paper sizes that you can use must be defined at first by your printer
driver specific to platform. That is considered also and for custom
paper sizes. They must be defined first in underlying printing system
specific to platform.
FF work with printing system in different ways for different platforms
and in particular paper size definitions are different for Windows and
GTK for example. You can read more
I will recommend to follow procedure described in following post:
Please provide feedback for your success.
About extending extension functionality any contribution and ideas are
I'm happy that extension is useful for you and we will work in the
feature to extend and support it.
On 22.11.2011 20:39, Marlesson Santana wrote:
> JsPrintSetup I'm using and I am struggling to scale the size of the paper.
> The size of paper that I use is 50mm X 25mm, the price tag.
> I am using the windows platform the code below and could not result.
> jsPrintSetup.setOption ("paperSizeType" jsPrintSetup.kPaperSizeDefined);
> jsPrintSetup.setPaperSizeUnit (jsPrintSetup.kPaperSizeMillimeters);
> jsPrintSetup.setOption ("paperWidth", width);
> jsPrintSetup.setOption ("paperHeight", height);
> Another implementation that has been tried using the Paper Handling
> Methods. With the code below:
> jsPrintSetup.definePaperSize(119, 119, 'na_etiqueta', 'na_etiqueta_mm',
> 'Etiqueta VIDA', 50, 25.40, jsPrintSetup.kPaperSizeMillimeters); //
> value 100 is not scope in / Windows Paper Size number
> The problem with this method is the PD, I have not found one for the
> size of the paper cited.
> Would have any way to create a PD specific to this paper size? Or just
> use the ones that are pre-defined in Windows.
> Working in a software company in Brazil Ilheus, Bahia. We love the
> extension and we are available to help on something to continue the project.
> Marlesson R. O. de Santana
> Graduado em Ciência da Computação - UESC
> Programador Web (PHP, RoR, JAVA, MySQL, SQLServer)
More information about the Jsprintsetup