Commit Graph

118 Commits

Author SHA1 Message Date
Sebastián Katzer
951348aee5 Ignore unknown chars from Base64 string 2019-02-11 19:20:47 +01:00
Sebastián Katzer
96a88759c5 Use top, left, width, height instead of bounds 2019-02-11 18:04:35 +01:00
Sebastián Katzer
6c91c1ac68 Fix linter warning 2019-02-11 15:02:00 +01:00
Sebastián Katzer
33814415db Rename maxPages to pageCount and partial support for Android 2019-02-11 12:05:09 +01:00
Sebastián Katzer
f29b519b90 Change options structure 2019-02-07 16:42:11 +01:00
Sebastián Katzer
13e6d4d941 Fix old property name 2019-02-07 16:38:44 +01:00
Sebastián Katzer
ec4f721270 Also rename internal "utis" functions 2019-02-06 12:02:41 +01:00
Sebastián Katzer
b34927d4a4 Rename option "printerId" to "printer" 2019-02-06 11:53:30 +01:00
Sebastián Katzer
d74bd6c4b6 Fix missing callback with result on Android 2019-02-04 11:43:51 +01:00
Sebastián Katzer
49ad2187df Some fixes and enhancements for Windows 2019-02-01 14:47:07 +01:00
Sebastián Katzer
0dac03a168 Support to set the font size for plain text on Android 2019-01-30 14:51:09 +01:00
Sebastián Katzer
113dde9f0a Apple Windows crash fix 2019-01-30 12:18:18 +01:00
Sebastián Katzer
d248974ae9 Some code refactoring 2019-01-30 12:07:42 +01:00
Sebastián Katzer
6767d20859 Implements printing plain text 2019-01-30 11:26:15 +01:00
Sebastián Katzer
d6e1adbbbc Print HTML markup 2019-01-29 16:44:54 +01:00
Sebastián Katzer
ab67054f63 Implements the ability to print the content of the own web view 2019-01-29 15:25:26 +01:00
Sebastián Katzer
884e5c4862 Improvements and fixes for Android 2019-01-29 14:33:59 +01:00
Sebastián Katzer
fc2bbeca53 Prefix classes 2019-01-29 01:39:49 +01:00
Sebastián Katzer
6c16959267 Initial reimplementation for Android 2019-01-28 22:28:55 +01:00
Sebastián Katzer
bf1b308750 Fix false unit not recognized warning 2019-01-25 14:20:59 +01:00
Sebastián Katzer
ce27a883ab Update plugin interface with some breaking changes 2019-01-25 12:42:22 +01:00
Sebastián Katzer
98b5d32527 Allow negative values for maxPages
maxPages: -1 means to skip the last page
2019-01-24 12:14:31 +01:00
Sebastián Katzer
783cc42613 Support for maxPages to be able to skip possible empty last pages 2019-01-24 12:08:38 +01:00
Sebastián Katzer
ea223c3609 Prefix style attributes in header/footer with style and support relative positions 2019-01-24 11:46:20 +01:00
Sebastián Katzer
22e8d95128 Support style attributes for simple text formatter 2019-01-23 16:42:27 +01:00
Sebastián Katzer
e1405e914b Cleanup APPPrinterRenderer by introducing APPPrinterStyle 2019-01-23 15:45:40 +01:00
Sebastián Katzer
69541fb13e Finished implementation for header/footer for iOS 2019-01-22 15:27:31 +01:00
Sebastián Katzer
ee88021da0 Add APPPrinterUnit to avoid code duplication 2019-01-21 19:17:30 +01:00
Sebastián Katzer
578342516a Initial support for header and footer 2019-01-21 17:52:28 +01:00
Sebastián Katzer
60444a8534 UIPrintInteractionController+APPPrinter category
Removes the need for special property to save the user setting
2019-01-21 16:53:31 +01:00
Sebastián Katzer
4046ab3473 Update ios code for version 0.8 2019-01-21 15:17:07 +01:00
Sebastián Katzer
7905b71feb Set number of copies for iOS 2019-01-03 16:52:10 +01:00
Sebastián Katzer
c19cec7415 Fix some warnings/deprecations for iOS and improve code 2018-12-21 12:47:34 +01:00
Mark Zealey
6e44eb9cde Enable printing current webview (#196)
Sometimes when doing complex rendering you want to print the current
webview rather than another page or link. This enables you to call
.print('') and it will print the current webview rather than a blank
page on both ios and android.
2018-12-21 12:13:01 +01:00
Constantin
675b3f5962 Support for roll printers (#185)
* Added ability to hint papersize

and cut on roleprinters

* Documentation of paper formats and cuts

* fixed pick printer without bounds

* removed NSLog
2018-12-17 11:33:28 +01:00
Vomatec Innovations
ee9fba07ac I fixed the app crashing exception for Android after pressing 'back' key multiple times after opening the print window. (#149) 2017-09-05 20:18:21 +02:00
nehresma
8b1f92a0a1 Added optional support for javascript to the WebView (#134) 2017-09-05 20:12:54 +02:00
kentongray
d2486217f0 Cache UIPrinter (#128)
* Cache UIPrinter

This speeds up printing time from 25 seconds to < 5

* Switching to isEqualToString
2017-09-05 20:10:59 +02:00
Sebastián Katzer
231f9c5dd2 Fix code smells 2016-12-23 18:08:59 +01:00
Sebastián Katzer
ce5ace90b3 Fix broken interfaces with newest Android versions 2016-12-23 18:08:38 +01:00
Sebastián Katzer
917df3d6c3 Android 19 - No resource found [Fixes #97] 2016-12-18 13:45:59 +01:00
Sebastián Katzer
7a473e7dd6 Cleanup webview at latest point 2016-12-18 10:35:20 +01:00
Leibale Eidelman
e4f8e5fc2f Update Printer.java
Remove to early `view` cleanup.
the view might be needed in case of printer refresh or error.
2016-12-15 18:14:50 +02:00
Sebastián Katzer
7d38b4e354 Renamed isAvailable to check 2016-08-03 17:20:10 +02:00
Sebastián Katzer
a1dc163ccc Fix typo resulting into crash on KitKit (Closes #94) 2016-08-02 19:10:16 +02:00
Sebastián Katzer
144efee2a9 Added Meta#getClass 2016-08-02 19:08:51 +02:00
Sebastián Katzer
c75bd32982 Reuse already existing instance of print manager 2016-08-02 16:13:52 +02:00
Sebastián Katzer
62ae354984 Make usage of PrintJobStateChangeListener 2016-08-01 17:23:46 +02:00
Sebastián Katzer
2b5e25c09d Support for PrintJobStateChangeListener 2016-08-01 17:04:39 +02:00
Sebastián Katzer
2b0bbccc6f DiscoverySession -> session 2016-08-01 17:03:30 +02:00