Questions tagged [uiprintinfo]

A UIPrintInfo object encapsulates information about a print job, including printer identifier, job name, output type (photo, normal, grayscale), orientation (portrait or landscape), and any selected duplex mode. This information is used by the printing system when it prints. Available in iOS 4.2 and later in UIKit.

A UIPrintInfo object encapsulates information about a print job, including printer identifier, job name, output type (photo, normal, grayscale), orientation (portrait or landscape), and any selected duplex mode. This information is used by the printing system when it prints. Available in iOS 4.2 and later in UIKit.

Typically you create a UIPrintInfo object and assign it to the printInfo property of the shared UIPrintInteractionController instance. However, it is not necessary to create a UIPrintInfo object for a print job; UIKit assumes certain defaults. In the printing-options user interface, users can select the printer, single-side or double-side printing for duplex printers, and (if the application allows it) a range of pages to print.

14 questions
6
votes
1 answer

List accessible AirPrint Printers

I would like to show a list with all printer accessible by the device via AirPrint. I get it working with using the UIPrinterPickerController. Is there anyway displaying this PickerController in a custom way, let's say feeding the data into a…
smnk
  • 471
  • 1
  • 6
  • 25
2
votes
0 answers

UIPrintInteractionController background is transparent

I have simple UIPrintInteractionController in a controller that is presnented modally but I am getting transparent background of UIPrintInteractionController. You can see the issue in attached picture, This is the code I am using to present…
1
vote
0 answers

Swift: Trying to print "Double Sided" UIPrintInfo.Duplex.longEdge but not working

I am trying to print PDF double side in iOS app, for that setting printInfo.duplex = UIPrintInfo.Duplex.longEdge, but it is ignored when I print using UIPrintInteractionController printInfo.printerID = "c890E8700000.local" …
1
vote
0 answers

UIPrintInteractionController crashes when cancel

I coded to print on the iPad and I've checked different documentation. My code seems to look right but when the controller is presented and I click on cancel it crashes with this error: Tried to obtain the web lock from a thread other than the main…
1
vote
0 answers

print 4x6 image using UIPrintInteractionController

I am trying to print a 4x6 image through the printController, however, when it prints it cuts off some of the image. The code I am using is below. @IBAction func doPrint(_ sender: Any) { let printInfo = UIPrintInfo(dictionary:nil) …
1
vote
0 answers

Objective C - Printing full view is trimming off content from right while using Autolayout

I am printing my screen view which is currently being displayed on iPhone as below. But for some reason some part of the screen is trimming off, Can anyone please suggest what is wrong with below code Note : I am using autolayout on my view. Screen…
Max
  • 5,380
  • 6
  • 42
  • 66
1
vote
3 answers

Log list of available printers and their URLs

I am attempting to set up a UIPrinter instance so that my iPad app can print directly to that printer without having to present the print controller dialogue. The problem I'm having is that I can't seem to find the URL of this printer. It is…
Jody Heavener
  • 2,704
  • 5
  • 41
  • 70
1
vote
1 answer

Print a UIView, but NOT by rendering as a bitmap image

Say you have a simple UIView with only text (ie, UILabel) and maybe some black lines. Here's exactly how you can print that UIView... render it as a UIImage, and print that... - (IBAction)printB:(id)sender { // we want to print a normal…
Fattie
  • 27,874
  • 70
  • 431
  • 719
1
vote
0 answers

Can't print a folder of PDF files

I'd like to allow a user to print a folder of PDFs (pdfList array). I can't seem to get the code below to work. I keep getting the errow message below. I'm new to coding, and trying to modify some existing code. I get the sense of the error. I…
1
vote
1 answer

iOS: UIPrintInteractionController How to change the chrome color?

in iOS, How do I change the color of the chrome around the print popup? (Objective-C or C# as fine) Here's how I show the printer: var printInfo = UIPrintInfo.PrintInfo; printInfo.OutputType = UIPrintInfoOutputType.General; var…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
0
votes
0 answers

How to print double-sided pages using UIPrintInteractionController(AirPrint) in Swift

I'm using UIPrintInteractionController(AirPrint) to print documents in my swift application. I was able to print the documents using my application, but all of them are printing in one-sided. Now i want to add a double-sided printing as an option to…
mMinuwan
  • 1
  • 1
0
votes
0 answers

UIPrintInteractionController Printing Directly without Presenting User Interface with Duplex Option

I am utilizing UIPrintInteractionController's print(to:completionHandler:) instance method to directly print to a saved UIPrinter which does allow for duplex printing. In the discussion for print(), it states this method disables duplex…
0
votes
0 answers

How can i add ip address to print object and print, they are on the same wi-fi but i always get error code 4?

Print from iPhone with ip address via air print let printController = UIPrintInteractionController.shared let printInfo = UIPrintInfo(dictionary: nil) printInfo.outputType = UIPrintInfo.OutputType.general printInfo.orientation =…
0
votes
1 answer

What image size need to print a full A4 paper with UIPrintInteractionController?

Printing logic look like this: let printController = UIPrintInteractionController.shared printController.printInfo = printInfo printController.showsNumberOfCopies = false printController.printingItem = image printController.present(animated: true,…