Browse Source

[ADD] fit to page

Gogs 6 years ago
parent
commit
46d50705f5
1 changed files with 3 additions and 0 deletions
  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)