crabbly / Print.js

A tiny javascript library to help printing from the web.
MIT License
4.28k stars 672 forks source link

change pageSize of base 64 PDF #700

Open miguel5612 opened 6 months ago

miguel5612 commented 6 months ago

Hi,

Im trying to config paper size on this mode:

public print(): void { es6printJS( { printable: this.pdfVariable, type: 'pdf', base64: true, targetStyles: ['*'], // Aplicar estilos a todos los elementos style: '@page { size: A4 landscape; }', } ) }

all time, print window, says letter, and i cant say to the users, they must have change, this require to do all on the lib :/ and the pdf on base64 is an A4