Questions tagged [airprint]

AirPrint is the name of Apple's printing framework for iOS.

AirPrint is the name of Apple's printing framework for iOS. It allows apps to implement the ability to print out text, images, and other data over WiFi, through select AirPrint compatible printers on a network.

211 questions
5
votes
2 answers

How do I dismiss the AirPrint Popover?

I have a singleton popover, so that I only show one popover at a time. When I do my share popover, and choose AirPrint, the share popover correctly goes away, showing the AirPrint popover in its place. But if I press the share button again, the…
Caroline
  • 4,875
  • 2
  • 31
  • 47
5
votes
1 answer

Print paper size and content inset

I'm using following code to print HTML content containing text and images. if (![UIPrintInteractionController isPrintingAvailable]) { UIAlertView *alertView = [[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Printer Availability…
Mustafa
  • 20,504
  • 42
  • 146
  • 209
5
votes
1 answer

How to print a NSString using AirPrint?

Im having real trouble with this one. I dont know what is wrong, but it spits this out: ERROR: attempting to display print options with no printing source(item/items/formatter/renderer) set The code works if i set it to print a png image, but not…
Conor Taylor
  • 2,998
  • 7
  • 37
  • 69
5
votes
2 answers

AirPrint contents of a UIView

I'm trying to set up printing through an iPad app, where clicking Print will print a view with all of its contents. Here's what I've tried (pulled together from a few examples online): // This is the View I want to print // Just a 200x200 blue…
Jody Heavener
  • 2,704
  • 5
  • 41
  • 70
4
votes
1 answer

Creating a Bonjour AirPrint service in iOS device

So I figured out that to publish (announce the service) to an iOS device as a printer, I use NSNetService and set the type to _ipp._tcp. But in order to be recognized as an AirPrint printer the requirements include: AirPrint uses IPP for print…
Prasanth
  • 646
  • 6
  • 21
4
votes
0 answers

Is it possible to airprint a fullpage UIScrollview?

I fall into this problem for a long time. as I asked, I can print the scrollview but only a part of it, not the full size view "contentView". the code is like this: if ([UIPrintInteractionController isPrintingAvailable]) { …
Travis Worm
  • 166
  • 8
4
votes
0 answers

Print a WebView content on duplex (front and back) printer with different margins for front and back

I have a WebView, and want to print it's HTML content via AirPrint. I want to add custom page margins to this content. I was able to achieve it using my own subclass of UIPrintPageRenderer Now, whenever my app user is using duplex printer (printing…
4
votes
2 answers

Missing buttons from AirPrint dialog

I've implemented AirPrinting from my app but I'm facing a strange issue. Whenever the print dialog appears, there are no Cancel or Done/Print buttons displayed, as shown in the following image. The code I'm using is as follows: if…
Snouto
  • 1,039
  • 1
  • 7
  • 21
4
votes
1 answer

AirPrint: restrict user to only print to printers that support TLS

We are working on a secure application and one of the requirements is when the user prints the data is sent encrypted. AirPrint seems to support TLS encryption but only on 'newer' printers. https://developer.apple.com/videos/play/wwdc2016/725/…
JosephH
  • 37,173
  • 19
  • 130
  • 154
4
votes
0 answers

How to register iOS application as virtual printer like android printService

I have developed an android application which implements a printer service like provided by Google in this link : PrintService Documentation this helps me to register my android application as a printer , so when the user is interested in printing…
4
votes
1 answer

Wrong paper size in AirPrint

In my app, different photo sizes can be printed. This is working fine, but with iOS 8 the paper size is always letter/A4 even if the print dialog display e.g.. 5"x7". If the user selects the paper size again, the paper size changes to e.g.…
palugu
  • 81
  • 6
4
votes
1 answer

Skipping the Printing UI in IOS 8?

I could find some code for skipping the Printing UI and direct print through the Air Printer.But the code was incomplete. The code is below, UIPrinterPickerController *printPicker = [UIPrinterPickerController…
4
votes
0 answers

Air Print is very slow

I'm working on a iOS kiosk type application that is utilizing Air Print to print a 10-ish page document. This document is taking a very long time to print (more than 1 minute) and people are walking away before the print job is finished because they…
AaronS
  • 7,649
  • 5
  • 30
  • 56
4
votes
0 answers

AirPrint without border / margin

I am trying to print a image inside a DIV on DIN A6 (105x148mm) (USA: 4.13x5.83 inches) . However in the simulator I always get the printout with border/margin. Is it possible to customize AirPrint to print without a margin/border and fit to the…
Kallewallex
  • 523
  • 1
  • 6
  • 24
4
votes
1 answer

Printing in iOS from Swift in XCode 6 beta 7

Here is the code I use for Swift airprinting with beta 6 and it worked fine: @IBAction func button3Tapped() { var pic:UIPrintInteractionController = .sharedPrintController() var viewpf:UIViewPrintFormatter = myTextView.viewPrintFormatter() …
Jim Barber
  • 2,139
  • 2
  • 13
  • 8
1
2
3
14 15