Browse Source

[ADD] fit to page

Gogs 6 năm trước cách đây
mục cha
commit
46d50705f5
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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)