Explorar el Código

[ADD] fit to page

Gogs hace 6 años
padre
commit
46d50705f5
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/print.js

+ 3 - 0
src/print.js

@@ -103,6 +103,9 @@ const doPrint = (socket, request) => {
         data: buffer,
         printer: request.printer,
         type: format,
+        options: {
+            'fit-to-page': true
+        },
         success: jobId => {
             const job = getJob(request.printer, jobId)