Cheng Zhao
d233fc044a
Pass dpiVertical and dpiHorizontal to print settings
2017-08-22 13:54:49 +09:00
Cheng Zhao
ecff620528
Merge pull request #10081 from renaesop/master
...
Add a callback option to `webContents.print`
2017-08-17 15:56:02 +09:00
Aleksei Kuzmin
fb7bd8f11e
Remove desired DPI
...
https://codereview.chromium.org/2788343003
2017-08-15 16:19:20 +03:00
renaesop
6d16eb81d2
Add a callback option to webContents.print
2017-08-15 14:44:24 +08:00
Kevin Sawicki
aa29bf8019
🎨
2017-05-18 10:26:22 -07:00
Kevin Sawicki
84a9b6a42d
Merge remote-tracking branch 'origin/master' into renaesop_master
2017-05-18 10:08:40 -07:00
renaesop
cba5e96496
Merge remote-tracking branch 'ups/master'
2017-05-09 09:44:24 +08:00
Cheng Zhao
fb42a72ad8
Fix building on Windows
2017-04-27 16:34:52 +09:00
Cheng Zhao
6da696b6f2
Update printing code
2017-04-27 16:34:52 +09:00
Kevin Sawicki
b27b1c3b24
Append printed page to job
2017-04-04 20:47:05 -07:00
renaesop
7f2705b2d9
Print enhancement: add webContents.printerList And a print option to select printer
...
Print enhancement: add webContents.printerList And a print option to select printer
2017-02-07 12:03:29 +08:00
renaesop
26135b412b
Merge remote-tracking branch 'upstream/master'
...
# Conflicts:
# atom/browser/api/atom_api_web_contents.cc
# chromium_src/chrome/browser/printing/print_job_worker.cc
# chromium_src/chrome/browser/printing/print_job_worker.h
# chromium_src/chrome/browser/printing/print_view_manager_base.cc
# chromium_src/chrome/browser/printing/print_view_manager_base.h
# chromium_src/chrome/browser/printing/printer_query.cc
# chromium_src/chrome/common/print_messages.cc
# chromium_src/chrome/renderer/printing/print_web_view_helper.cc
2017-02-07 09:30:36 +08:00
Cheng Zhao
864a23f72b
Fix print() not working
2017-02-06 10:34:30 -08:00
Cheng Zhao
1ed8743da8
Update Windows printing code to latest
2017-02-06 10:34:29 -08:00
Cheng Zhao
d483352f78
Fix PrintToPDF not receiving results
2017-02-06 10:34:29 -08:00
Cheng Zhao
ab783413a2
Update printing code to latest
2017-02-06 10:34:29 -08:00
Cheng Zhao
75627ba6ad
Fix sync printing not working
2017-02-06 10:34:29 -08:00
Cheng Zhao
55d4d44f02
Fix Debug building on Windows
2017-02-06 10:34:29 -08:00
renaesop
023a3fd547
Print enhancement: add webContents.printerList And a print option to select printer
2017-02-06 17:18:04 +08:00
Cheng Zhao
6e0762a540
Fix building on Windows
2017-01-19 09:05:59 +02:00
Cheng Zhao
497f5a1199
Update files for Chrome 54 API changes
2017-01-19 09:05:59 +02:00
Vadim Macagon
7c5d3296e7
Prevent undefined behavior when some Node Buffer objects are destroyed
...
If node::Buffer::New() is used to wrap an existing chunk of memory
without providing a custom callback to release that memory then Node
will just use `free()`. In a couple of places Node buffer objects were
constructed from chunks of memory that were allocated with `new[]`, but
a custom callback to release that memory was omitted, this resulted in
undefined behavior when those buffers were destroyed because `free()`
was used to release memory allocated with `new[]`.
To avoid undefined behavior the aforementioned buffer objects are now
constructed with a custom callback that safely releases the underlying
chunk of memory.
2016-10-03 10:26:26 +07:00
Cheng Zhao
6d8f900916
Fix building on Windows
2016-09-14 16:22:43 +09:00
Cheng Zhao
f28e8d7168
Fix API changes of Chrome 53
2016-09-14 16:22:43 +09:00
Cheng Zhao
381689d3ed
Fix building on Windows
2016-07-05 09:31:29 +09:00
Cheng Zhao
1ba3907038
Update to API changes of Chrome 52
2016-07-04 15:32:43 +09:00
Cheng Zhao
44651656dd
Fix building on Windows
2016-05-23 16:39:19 +09:00
Cheng Zhao
a2bd55dd3c
Adapt to changes of Chrome 51 API changes (Part 2)
2016-05-23 12:29:14 +09:00
Brian R. Bondy
a52dbf0784
Update SharedMemory buf constructor
2016-05-13 11:07:17 +09:00
Brian R. Bondy
ce7c1023d5
Minimum fixes needed for chromium_src
2016-05-13 11:07:17 +09:00
Brian R. Bondy
2da39d31aa
Update to new pref service location in components
2016-05-13 11:07:17 +09:00
Paul Betts
e3af5de7d7
Update pdf_to_emf_converter
2016-03-10 17:06:23 +09:00
Cheng Zhao
5fae63a2f5
Fix compilation errors on OS X
2016-03-10 17:06:21 +09:00
Cheng Zhao
73e7773d84
Update to API changes of Chrome 47
2015-12-07 19:56:23 +08:00
Cheng Zhao
53b9d61831
Fix building on Windows
2015-09-03 20:07:29 +08:00
Haojian Wu
10b53f7f73
Fix print spooler hangs when printing more than 3 pages on Windows.
2015-09-01 17:55:45 +08:00
Haojian Wu
11ffb9dfb6
Fix node::Buffer API changes.
2015-08-11 09:48:29 +08:00
Haojian Wu
16348fc895
Copy pdf data on IO thread to avoid causing main process hangs.
2015-06-16 20:08:30 +08:00
Haojian Wu
57580e00f9
Fix code style.
2015-06-16 20:07:45 +08:00
Haojian Wu
93bbc6c810
Simplify the pdf-data handled code.
2015-06-16 20:07:45 +08:00
Haojian Wu
894f9c0cb0
Don't use duprecated node buffer api, fix build error on OS X.
2015-06-16 20:07:44 +08:00
Haojian Wu
ccbe554ec0
Make callback aligns node.js style.
2015-06-16 20:07:44 +08:00
Haojian Wu
93243ef223
Remove some unused IPC messages.
2015-06-16 20:07:44 +08:00
Haojian Wu
ac62871645
Return node::Buffer as a printToPDF callback result.
2015-06-16 20:07:44 +08:00
Haojian Wu
ab40da3f31
Add silent and savePath options.
2015-06-16 20:07:43 +08:00
Haojian Wu
6e099af5fe
Move PDF printing setting in JS part.
2015-06-16 20:07:43 +08:00
Haojian Wu
2597ded985
Cleanup.
2015-06-16 20:02:25 +08:00
Haojian Wu
600077996c
Fix a landscape
option error.
2015-06-16 20:02:24 +08:00
Haojian Wu
cef177abc4
Add preview failed error.
2015-06-16 20:02:24 +08:00
Haojian Wu
8572ccb807
Add callback function in printToPDF API.
2015-06-16 20:02:24 +08:00