Commit Graph

95 Commits

Author SHA1 Message Date
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
Sebastián Katzer
daa7112642 Sens intent with action and also when back pressed 2016-08-01 17:02:17 +02:00
Sebastián Katzer
0fb7c4530f Added getId 2016-08-01 17:00:51 +02:00
Sebastián Katzer
50f9bcfd4e Cleanup on destroy 2016-08-01 17:00:33 +02:00
Sebastián Katzer
86a74dc2ff Support print options on windows 2016-07-31 14:50:24 +02:00
Sebastián Katzer
afaa6cd60d Callback support for windows platform 2016-07-31 14:24:24 +02:00
Sebastián Katzer
2472d7208a Refector windows platform 2016-07-31 14:14:42 +02:00
Pirvu Doru Lucian
970060a28e support for windows 10 UWP apps 2016-07-29 21:34:06 +02:00
Sebastián Katzer
a4f5dd098f Allow borderless printing on iOS 2016-07-28 20:36:05 +02:00
Sebastián Katzer
4251c0639d Support for picking a printer for iOS and Android 2016-07-27 14:24:48 +02:00
Sebastián Katzer
049f72dea6 Fix potential NPE 2016-07-26 20:44:10 +02:00
Sebastián Katzer
b3bd6e226f Refactored new pick interfacer 2016-07-25 15:04:20 +02:00
Sebastián Katzer
dc57ab6234 Merge branch 'master' of https://github.com/nkjf5/cordova-plugin-printer into nkjf5-master 2016-07-25 14:19:06 +02:00
Sebastián Katzer
217d63292f Fix isAvailable to return empty list on iOS 2016-07-24 13:49:23 +02:00
Sebastián Katzer
5c6c646e6d Fix potential crash and infinite loop (Closes #61) 2016-07-24 10:20:26 +02:00
Sebastián Katzer
147f562d0a Remove android auto print margin (Closes #81) 2016-07-24 09:53:51 +02:00
Sebastián Katzer
ea404a0acd Several iOS specific options (closes #59) 2016-07-23 14:06:59 +02:00
Sebastián Katzer
031f4b385a duplex accepts an string now instead of boolean 2016-07-23 13:48:24 +02:00
Sebastián Katzer
43c325317a print returns boolean to inform about the result 2016-07-23 13:18:24 +02:00
Sebastián Katzer
13c9d3dbef Various android enhancements - see the changelog 2016-07-23 10:33:28 +02:00
Sebastián Katzer
f44ed52148 Update header signature 2016-07-20 21:00:33 +02:00
Sebastián Katzer
1d5800c694 Merge pull request #76 from ErikWallin/master
Wait for webview to finish load content
2016-07-20 20:01:33 +02:00
filipe-nunes
15b9b588b2 CDV_IsIPad is deprecated
Changed to if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
2016-03-11 14:46:31 -01:00
Erik Wallin
96f3d6f099 Wait for webview to finish load
Big html documents is now fully loaded when UIPrintInteractionController is presented
2016-02-29 13:05:56 +01:00