Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serhii-londar/uiprintinteractioncontroller-example
This is small example app that shows usage of UIPrintInteractionController.
https://github.com/serhii-londar/uiprintinteractioncontroller-example
example ios uiprintinteractioncontroller
Last synced: about 1 month ago
JSON representation
This is small example app that shows usage of UIPrintInteractionController.
- Host: GitHub
- URL: https://github.com/serhii-londar/uiprintinteractioncontroller-example
- Owner: serhii-londar
- Created: 2017-07-25T15:33:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-05T18:48:18.000Z (about 7 years ago)
- Last Synced: 2024-11-06T20:40:39.556Z (3 months ago)
- Topics: example, ios, uiprintinteractioncontroller
- Language: Objective-C
- Homepage: https://github.com/serhii-londar/UIPrint-Interaction-Controller-Example
- Size: 75.1 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## UIPrintInteractionController Example
This is small example app that shows usage of UIPrintInteractionController. With this example, you have an ability to printing HTML file with local images from documents folder and from application bundle.## Ussage example:
Printing html from documents folder:```
NSURL *documentsUrl = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
NSURL *printFolderUrl = [documentsUrl URLByAppendingPathComponent:@"Print"];
[[HTMLPrinter sharedPrinter] printHTMLWithName:@"index.html" fromFilePath:printFolderUrl.absoluteString];
```Printing html from application bundle folder:
```
NSString *indexHtmlStringPath = [[[NSBundle mainBundle] bundleURL] absoluteString];
[[HTMLPrinter sharedPrinter] printHTMLWithName:@"index.html" fromFilePath:indexHtmlStringPath];
```