AirPrint

RSS for tag

AirPrint allows photo and document printing in your iOS apps and macOS apps without the need to download or install drivers.

Posts under AirPrint tag

76 Posts

Post

Replies

Boosts

Views

Activity

iOS Custom UIPrintPaper size
Hello, I am wondering is anyone has been able to successfully print to a custom paper size using UIPrintIneteractionController, or if it is even possible. Apple seems to think that only the standard size paper for your machine's local matter. Unfortunately, not all print jobs are for predefined standard paper sizes.What i am attempting to do:Print a PDF, that is 5.66" x 11", or ~408pts x 792pt, on a sheet of paper that is the of the same dimensions.What I have tried:Attempt 1:I have used the UIPrintInteractionController in it's most basic form, allowing a user to select the paper size. As expected, this did not match the size required because the desired size was not offered as an optionBasic UIPrintInteractionController implementation:if UIPrintInteractionController.canPrintURL(pdf!.localPDFUrl!) { let printInfo = UIPrintInfo(dictionary: nil) printInfo.jobName = pdf!.localPDFUrl!.lastPathComponent! printInfo.outputType = .Photo // .General printInfo.duplex = UIPrintInfoDuplex.None let printController = UIPrintInteractionController.sharedPrintController() printController.printInfo = printInfo printController.showsNumberOfCopies = false printController.printingItem = pdf!.localPDFUrl printController.presentAnimated(true, completionHandler: nil) }Attempt 2:I have let UIPrintIntereactionController do it's thing by attempting to auto-select the paper size based on the document via the printInteractionController(_:choosePaper:) method in UIPrintInteractionControllerDelegate, using the bestPaperForPageSize(_:withPapersFromArray:) static method of UIPrintPaper. Again this selects a size that does not match the document, but it select the smallest size paper that will contain the pdf page (US Letter in this case). Again this was expected.printInteractionController(_:choosePaper:) Code:func printInteractionController(printInteractionController: UIPrintInteractionController, choosePaper paperList: [UIPrintPaper]) -> UIPrintPaper { // Get the size of the PDF Page let size: CGSize = pdf!.getPageSize() // Let the Printer api pick the best UIPrintPaper object for the print job let paper:UIPrintPaper = UIPrintPaper.bestPaperForPageSize(size, withPapersFromArray: paperList) // Log: Paper Object, Paper Size, Paper's Printable Rectangle, Class type print(size, paper, paper.paperSize, paper.printableRect, NSStringFromClass(paper.dynamicType)) // return UIPrintPaper object return paper }print(size, paper, paper.paperSize, paper.printableRect, NSStringFromClass(paper.dynamicType)) output:PDF Page Size: (792.0, 408.0) Paper Object: <UIPrintPaper:0x7f8978fac450 <PKPaper: 0x7f8978fee460>> Paper Size: (612.0, 792.0) Paper Printable Rect: (11.9905511811024, 11.9905511811024, 588.018897637795, 768.018897637795) Dynamic Object Type: UIPrintPaperAttempt 3:In this attempt I tried to get sneaky and subclass the UIPrintPaper object and then force bestPaperForPageSize(_:withPapersFromArray:) to return my desired paper size.UIPrintPaper subclass:import UIKit class CaseCard: UIPrintPaper { internal override var paperSize: CGSize { get { return CGSizeMake(5.66 * 72, 11 * 72) } } internal override var printableRect: CGRect { get { return CGRectMake(0, 0, 5.66 * 72, 11 * 72) } } }printInteractionController(_:choosePaper:) Code:func printInteractionController(printInteractionController: UIPrintInteractionController, choosePaper paperList: [UIPrintPaper]) -> UIPrintPaper { // Force selection of custom paper size let paper:UIPrintPaper = CaseCard() as UIPrintPaper // Log: Paper Object, Paper Size, Paper's Printable Rectangle, Class type print( paper, paper.paperSize, paper.printableRect, NSStringFromClass(paper.dynamicType)) // UIPrintPaper object return paper }print(paper, paper.paperSize, paper.printableRect, NSStringFromClass(paper.dynamicType)) output:Paper Object: <UIPrintPaper:0x7f9ebb5b6b30 (null)> Paper Size: (407.52, 792.0) Paper Printable Rect: (0.0, 0.0, 407.52, 792.0) Dynamic Object Type : pdfviewer1.CaseCardThis is where things get interesting. You will notice that the Paper Object differs from Attempt 2 and Attempt 3.Attempt 2 > Paper Object: <UIPrintPaper:0x7f8978fac450 <PKPaper: 0x7f8978fee460>>Attempt 3 > Paper Object: <UIPrintPaper:0x7f9ebb5b6b30 (null)>Attempt 2 returns a predefined UIPrintPaper object, which is backed by a PrintKit.PKPaper instance, which is a private framework object that is inaccessible to developers. Attempt 3 returns my subclass'd UIPrintPaper, but without he PrintKit.PKPaper instance. Unfortuantely there is no way to assign a PKPaper object during the instantiation of the custom UIPrintPaper and the UIPrintInteractionController fallbacks to it's default size of US Letter (8.5 x11)So after all that, the question is: Can you print to a custom paper size from iOS UIPrintInteractionController? As of right now, I don't think this is possible, but I would love to be proven wrong. Even if it was in a future release of iOS(edit: typos, and there are probably still more)
3
0
5.8k
Mar ’22
Are Apple PDEs (Printer Dialog Extensions) a Legacy Technology?
As the title says I wonder if PDEs are still supported in Mac OS or if there are alternatives to accomplish the same function. In the current Apple documentation I have not found anything relevant to other than old code examples. Anyway Looking at the printer drivers of various printer manufacturers (at least on Mac OS Catalina), it seems that PDEs are still widely used in Mac OS. Any hint to the correct documentation would be appreciated.
0
0
1.1k
Feb ’22
Managed vs Local Printer
I am developing an app that will install and manage network printers. The app installs the printers using the lpadmin tool. Now, we have a customer that uses MDM profile for devices. The profile has the setting "showOnlyManagedPrinter" set to disallow installation of local printers. The customer wants our app to be able to install printers though. The result is that the printers can be installed with the app but will not show up in dialogs, etc. (For example the Printer & Scanners dialog). This causes a problem for them. My question is, is there a way to "fool" macOS to treat these printers as "managed" printers and show them. For example is there a flag or setting that you can apply when you install or post-installation of a printer. How does the OS decide which printers are managed or not?
0
0
1k
Jan ’22
Can't debug Xcode crash log
I have a problem with debuging crash log. I have tried debuging it in Xcode, but it is not pointing to any line of code. I don't know how to debug it. It crashed only on iPad (It crashed to some user in production). I think it is regarding PrintKit on thread 0. Can please someone help me? Thanks in advance Code for displaying PrintController: if UIPrintInteractionController.canPrint(pdfURL) {             let printInfo = UIPrintInfo(dictionary: nil)             printInfo.jobName = pdfURL.lastPathComponent             printInfo.outputType = .general             let printController = UIPrintInteractionController.shared             printController.printInfo = printInfo             printController.showsNumberOfCopies = false             printController.printingItem = pdfURL             printController.present(animated: true, completionHandler: nil)         } Crash log: Incident Identifier: INCIDENT ID Hardware Model: iPad13,2 Process: **APP-NAME** [89317] Path: /private/var/containers/Bundle/Application/**ID**/**APP-NAME**.app/**APP-NAME** Identifier: BUNDLE ID Version: 1.0 (4) AppStoreTools: 13C88a AppVariant: 1:iPad13,2:15 Code Type: ARM-64 (Native) Role: Background Parent Process: launchd [1] Coalition: BUNDLE ID Date/Time: 2022-01-05 09:09:35.5332 +0000 Launch Time: 2022-01-05 07:15:54.2451 +0000 OS Version: iPhone OS 15.1 (19B74) Release Type: User Baseband Version: 3.00.00 Report Version: 104 Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0 Thread 0 name: Thread 0 Crashed: 0 libsystem_kernel.dylib 0x00000001b97c3558 semaphore_timedwait_trap + 8 1 libdispatch.dylib 0x00000001831ccc6c _dispatch_sema4_timedwait + 64 (lock.c:154) 2 libdispatch.dylib 0x00000001831cd270 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116) 3 PrintKit 0x00000001e4adf548 -[PK_HTTPProxy withProtocolSync:] + 252 (PKBonjour.m:232) 4 PrintKit 0x00000001e4adfa94 pk_proxyConnectHTTP + 572 (PKBonjour.m:264) 5 PrintKit 0x00000001e4af4a34 -[PKPrinter(PKPrinterPrivate) getAttributes:count:] + 240 (PKPrinter.m:2744) 6 PrintKit 0x00000001e4af1004 -[PKPrinter doMedia2:] + 84 (PKPrinter.m:1542) 7 PrintKit 0x00000001e4aee88c -[PKPrinter printInfoSupported] + 1216 (PKPrinter.m:969) 8 UIKitCore 0x000000018687ed04 -[UIPrinterUtilityTableViewController initWithPrinter:] + 588 (UIPrinterUtilityTableViewController.m:230) 9 UIKitCore 0x000000018687254c -[UIPrinterBrowserViewController printerInfoButtonTapped:] + 80 (UIPrinterBrowserViewController.m:578) 10 UIKitCore 0x0000000186871340 -[UIPrinterTableViewCell printerAccessoryViewInfoButtonPressed:] + 84 (UIPrinterBrowserViewController.m:327) 11 UIKitCore 0x000000018687054c -[UIPrinterAccessoryView infoButtonPressed:] + 92 (UIPrinterBrowserViewController.m:124) 12 UIKitCore 0x0000000185e2fbf0 -[UIApplication sendAction:to:from:forEvent:] + 100 (UIApplication.m:5360) 13 UIKitCore 0x0000000185f5ba4c -[UIControl sendAction:to:forEvent:] + 128 (UIControl.m:871) 14 UIKitCore 0x0000000185cd72c8 -[UIControl _sendActionsForEvents:withEvent:] + 352 (UIControl.m:942) 15 UIKitCore 0x0000000185d73ae0 -[UIButton _sendActionsForEvents:withEvent:] + 160 (UIButton.m:4142) 16 UIKitCore 0x00000001860067c0 -[UIControl touchesEnded:withEvent:] + 536 (UIControl.m:637) 17 UIKitCore 0x0000000185acbd40 _UIGestureEnvironmentUpdate + 6708 (UIGestureEnvironment.m:653) 18 UIKitCore 0x0000000185afe8c8 -[UIGestureEnvironment _updateForEvent:window:] + 784 (UIGestureEnvironment.m:1332) 19 UIKitCore 0x0000000185b0ba68 -[UIWindow sendEvent:] + 4428 (UIWindow.m:3265) 20 UIKitCore 0x0000000185cbb318 -[UIApplication sendEvent:] + 828 (UIApplication.m:11864) 21 UIKitCore 0x0000000185adec30 __dispatchPreprocessedEventFromEventQueue + 7904 (UIEventDispatcher.m:2290) 22 UIKitCore 0x0000000185ad3a1c __processEventQueue + 6760 (UIEventDispatcher.m:2597) 23 UIKitCore 0x0000000185ad8ec8 __eventFetcherSourceCallback + 172 (UIEventDispatcher.m:2669) 24 CoreFoundation 0x000000018357c020 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1972) 25 CoreFoundation 0x000000018358cce0 __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2016) 26 CoreFoundation 0x00000001834c6fe8 __CFRunLoopDoSources0 + 268 (CFRunLoop.c:2053) 27 CoreFoundation 0x00000001834cc7f4 __CFRunLoopRun + 820 (CFRunLoop.c:2951) 28 CoreFoundation 0x00000001834e03b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 29 GraphicsServices 0x000000019ee7038c GSEventRunModal + 164 (GSEvent.c:2200) 30 UIKitCore 0x0000000185e806a8 -[UIApplication _run] + 1100 (UIApplication.m:3493) 31 UIKitCore 0x0000000185bff7f4 UIApplicationMain + 2092 (UIApplication.m:5046) 32 SwiftUI 0x000000018b143258 closure #1 in KitRendererCommon(_:) + 164 (UIKitApp.swift:35) 33 SwiftUI 0x000000018b071534 runApp<A>(_:) + 252 (<compiler-generated>:0) 34 SwiftUI 0x000000018b052cb4 static App.main() + 128 (App.swift:114) 35 **APP-NAME** 0x0000000100fa08f0 $main + 28 (<compiler-generated>:10) 36 **APP-NAME** 0x0000000100fa08f0 main + 40 (TLContact.swift:0) 37 dyld 0x0000000101185a24 start + 520 (dyldMain.cpp:876) EOF
0
0
1.1k
Jan ’22
com.apple.UIKit.UIPrintInteractionController.printPreviewGeneration (QOS: UNSPECIFIED) EXC_BREAKPOINT 0x00000001808a5ad0
4 ShareSheet 0x668b0 __38-[SHSheetMainInteractor _runActivity:]_block_invoke + 60 5 ShareSheet 0x739ec -[SHSheetActivityPerformer _completePerformingActivityWithState:returnedItems:error:] + 812 6 ShareSheet 0x73270 __57-[SHSheetActivityPerformer performWithCompletionHandler:]_block_invoke + 100 7 ShareSheet 0x3a740 -[UIActivity activityDidFinish:items:error:] + 184 8 ShareSheet 0x86524 __41-[UIOpenInIBooksActivity performActivity]_block_invoke + 244 9 UIKitCore 0xf32198 __61-[UIPrintInteractionController _endPrintJobWithAction:error:]_block_invoke + 432 10 Foundation 0x1793a0 -[_NSBarrierOperation main] + 76 11 Foundation 0x3b6f4 NSOPERATION_IS_INVOKING_MAIN + 24
0
0
912
Jan ’22
UIPrinterPickerController, UIPrintInteractionController, UIPrinter do not work on macOS Catalyst
On iOS emulator :I can select a printer from the UIPrinterPickerController dialog and retrieve the printer I can connect to that printer with UIPrinter.contactPrinter I can send multiple jobs to that printer silently (no dialog) with UIPrintInteractionController Same code or any similar code on macOS Catalyst :Absolutely nothing is working. I see nothing, no dialog, no errors in the log.
8
1
3.4k
Jan ’22
Big printer troubles since Big Sur 11.6
My printer a Samsung, seem to have totally lost the plot. It would not print anymore but only spit out ASCII type mambojambo. But there is no logic to it as the same file could come out wrong and on the next print fine. I would appreciate if apple would be a little bit more sensitive that not only their world exists but also other devices that need to connect and work.
0
0
637
Nov ’21
Experimental WebKit Features @page CSS at-rule support not working
Hello, With the new iPadOS updates in iPadOS15 we are finally able to print in landscape so my company is trying to migrate our POS systems to tablets as it makes our client experience more seamless. We have designed a coded template for a web pages receipt that allows us to print in a specific format that fits our letterhead. We currently the following code in order to format the printer to automatically print in landscape from Chrome with 0 margin. @Page {Margin:0px orientation:landscape} On iPadOS, the page does not automatically orientate to Landscape in the print which is not the biggest issue, but the Margin:0px is not read even with the Safari>Advanced>Experimental Features>@page CSS at-rule support toggled on. We have attempted to restart the iPad in case it needed a reset to take effect but it still does not seem to follow the at-rule. Is this an issue others are having, or is there a workaround to adjust printout margin?
1
0
1.5k
Nov ’21
Printing over internet from iPad to cups
I would like to use my iPad Pro and print documents and files remotely over the internet to my office. Considering the iPad not being on the same network, I have installed and configured a Rasberry pi with Cups and it is working nicely while being on the same network. I would like to know if there is any function that I can mix and match to achieve the goal. Since Google Cloud Printing is out of the game now, it is quite difficult to find an alternative.
0
0
749
Nov ’21
How to use ippeveprinter
Now that CUPS backends, filters and PPDs are deprecated, I'm trying to set up a print to file queue using ippeveprinter. But I can't get it to work. Anyone know anything about it? I've tried: ippeveprinter -D file:///Users/Shared/Print/Out -F application/pdf -c /usr/local/bin/pscommand.sh myprinter and then created a shell command that runs: cupsfilter $1 I've tried it without the -c flag as well. Sometimes I've produced .prn files, and occasionally .urf files (but without changing anything I've also got zero length files). But I just can't get a PDF into my destination folder.
0
0
1.6k
Nov ’21
Silent Printing via AirPrint using cordova plugins on iOS 15
Hello Devs ! We are trying to use cordova plugin in our ionic app : https://github.com/katzer/cordova-plugin-printer To print documents silently via an AirPrint enabled printer. It works on iOS 14 devices / simulators but we notice that there is an error while we try to print from iOS 15 simulators : https://github.com/katzer/cordova-plugin-printer/issues/281#issuecomment-949167538 Can we please know if this is something that can be handled from cordova plugin level or is this something that is changed / blocked at the iOS native level for any background actions ? Any suggestions / comments will be highly appreciated. Thanks ! Amol
0
0
1.2k
Oct ’21
AirPrint Security
I'm working on a medical enterprise application and was wondering if users can confidently print documents containing PHI via AirPrint without any major security risks. Obviously the local network they're operating on should be configured with the highest level of security. I couldn't find any technical details regarding the security of the AirPrint protocol and was hoping someone could provide some additional information on the AirPrint protocol.
3
0
7.6k
Oct ’21
iOS Custom UIPrintPaper size
Hello, I am wondering is anyone has been able to successfully print to a custom paper size using UIPrintIneteractionController, or if it is even possible. Apple seems to think that only the standard size paper for your machine's local matter. Unfortunately, not all print jobs are for predefined standard paper sizes.What i am attempting to do:Print a PDF, that is 5.66" x 11", or ~408pts x 792pt, on a sheet of paper that is the of the same dimensions.What I have tried:Attempt 1:I have used the UIPrintInteractionController in it's most basic form, allowing a user to select the paper size. As expected, this did not match the size required because the desired size was not offered as an optionBasic UIPrintInteractionController implementation:if UIPrintInteractionController.canPrintURL(pdf!.localPDFUrl!) { let printInfo = UIPrintInfo(dictionary: nil) printInfo.jobName = pdf!.localPDFUrl!.lastPathComponent! printInfo.outputType = .Photo // .General printInfo.duplex = UIPrintInfoDuplex.None let printController = UIPrintInteractionController.sharedPrintController() printController.printInfo = printInfo printController.showsNumberOfCopies = false printController.printingItem = pdf!.localPDFUrl printController.presentAnimated(true, completionHandler: nil) }Attempt 2:I have let UIPrintIntereactionController do it's thing by attempting to auto-select the paper size based on the document via the printInteractionController(_:choosePaper:) method in UIPrintInteractionControllerDelegate, using the bestPaperForPageSize(_:withPapersFromArray:) static method of UIPrintPaper. Again this selects a size that does not match the document, but it select the smallest size paper that will contain the pdf page (US Letter in this case). Again this was expected.printInteractionController(_:choosePaper:) Code:func printInteractionController(printInteractionController: UIPrintInteractionController, choosePaper paperList: [UIPrintPaper]) -&gt; UIPrintPaper { // Get the size of the PDF Page let size: CGSize = pdf!.getPageSize() // Let the Printer api pick the best UIPrintPaper object for the print job let paper:UIPrintPaper = UIPrintPaper.bestPaperForPageSize(size, withPapersFromArray: paperList) // Log: Paper Object, Paper Size, Paper's Printable Rectangle, Class type print(size, paper, paper.paperSize, paper.printableRect, NSStringFromClass(paper.dynamicType)) // return UIPrintPaper object return paper }print(size, paper, paper.paperSize, paper.printableRect, NSStringFromClass(paper.dynamicType)) output:PDF Page Size: (792.0, 408.0) Paper Object: &lt;UIPrintPaper:0x7f8978fac450 &lt;PKPaper: 0x7f8978fee460&gt;&gt; Paper Size: (612.0, 792.0) Paper Printable Rect: (11.9905511811024, 11.9905511811024, 588.018897637795, 768.018897637795) Dynamic Object Type: UIPrintPaperAttempt 3:In this attempt I tried to get sneaky and subclass the UIPrintPaper object and then force bestPaperForPageSize(_:withPapersFromArray:) to return my desired paper size.UIPrintPaper subclass:import UIKit class CaseCard: UIPrintPaper { internal override var paperSize: CGSize { get { return CGSizeMake(5.66 * 72, 11 * 72) } } internal override var printableRect: CGRect { get { return CGRectMake(0, 0, 5.66 * 72, 11 * 72) } } }printInteractionController(_:choosePaper:) Code:func printInteractionController(printInteractionController: UIPrintInteractionController, choosePaper paperList: [UIPrintPaper]) -&gt; UIPrintPaper { // Force selection of custom paper size let paper:UIPrintPaper = CaseCard() as UIPrintPaper // Log: Paper Object, Paper Size, Paper's Printable Rectangle, Class type print( paper, paper.paperSize, paper.printableRect, NSStringFromClass(paper.dynamicType)) // UIPrintPaper object return paper }print(paper, paper.paperSize, paper.printableRect, NSStringFromClass(paper.dynamicType)) output:Paper Object: &lt;UIPrintPaper:0x7f9ebb5b6b30 (null)&gt; Paper Size: (407.52, 792.0) Paper Printable Rect: (0.0, 0.0, 407.52, 792.0) Dynamic Object Type : pdfviewer1.CaseCardThis is where things get interesting. You will notice that the Paper Object differs from Attempt 2 and Attempt 3.Attempt 2 &gt; Paper Object: &lt;UIPrintPaper:0x7f8978fac450 &lt;PKPaper: 0x7f8978fee460&gt;&gt;Attempt 3 &gt; Paper Object: &lt;UIPrintPaper:0x7f9ebb5b6b30 (null)&gt;Attempt 2 returns a predefined UIPrintPaper object, which is backed by a PrintKit.PKPaper instance, which is a private framework object that is inaccessible to developers. Attempt 3 returns my subclass'd UIPrintPaper, but without he PrintKit.PKPaper instance. Unfortuantely there is no way to assign a PKPaper object during the instantiation of the custom UIPrintPaper and the UIPrintInteractionController fallbacks to it's default size of US Letter (8.5 x11)So after all that, the question is: Can you print to a custom paper size from iOS UIPrintInteractionController? As of right now, I don't think this is possible, but I would love to be proven wrong. Even if it was in a future release of iOS(edit: typos, and there are probably still more)
Replies
3
Boosts
0
Views
5.8k
Activity
Mar ’22
Lack of Paper Size options for AirPrint with Pantum P2506w
Hi I’m using AirPad Air 4, iPad Pro 11, iphone 7s, iPhone 10, iPhone 13 running iOS 15.4 on all the devices. when I use the AirPrint feature on the devices to Print on the Pantum P2506w the only option is A4. is there a way to change this ? if not when can apple include support.
Replies
1
Boosts
0
Views
1k
Activity
Mar ’22
Are Apple PDEs (Printer Dialog Extensions) a Legacy Technology?
As the title says I wonder if PDEs are still supported in Mac OS or if there are alternatives to accomplish the same function. In the current Apple documentation I have not found anything relevant to other than old code examples. Anyway Looking at the printer drivers of various printer manufacturers (at least on Mac OS Catalina), it seems that PDEs are still widely used in Mac OS. Any hint to the correct documentation would be appreciated.
Replies
0
Boosts
0
Views
1.1k
Activity
Feb ’22
Managed vs Local Printer
I am developing an app that will install and manage network printers. The app installs the printers using the lpadmin tool. Now, we have a customer that uses MDM profile for devices. The profile has the setting "showOnlyManagedPrinter" set to disallow installation of local printers. The customer wants our app to be able to install printers though. The result is that the printers can be installed with the app but will not show up in dialogs, etc. (For example the Printer & Scanners dialog). This causes a problem for them. My question is, is there a way to "fool" macOS to treat these printers as "managed" printers and show them. For example is there a flag or setting that you can apply when you install or post-installation of a printer. How does the OS decide which printers are managed or not?
Replies
0
Boosts
0
Views
1k
Activity
Jan ’22
Can't debug Xcode crash log
I have a problem with debuging crash log. I have tried debuging it in Xcode, but it is not pointing to any line of code. I don't know how to debug it. It crashed only on iPad (It crashed to some user in production). I think it is regarding PrintKit on thread 0. Can please someone help me? Thanks in advance Code for displaying PrintController: if UIPrintInteractionController.canPrint(pdfURL) {             let printInfo = UIPrintInfo(dictionary: nil)             printInfo.jobName = pdfURL.lastPathComponent             printInfo.outputType = .general             let printController = UIPrintInteractionController.shared             printController.printInfo = printInfo             printController.showsNumberOfCopies = false             printController.printingItem = pdfURL             printController.present(animated: true, completionHandler: nil)         } Crash log: Incident Identifier: INCIDENT ID Hardware Model: iPad13,2 Process: **APP-NAME** [89317] Path: /private/var/containers/Bundle/Application/**ID**/**APP-NAME**.app/**APP-NAME** Identifier: BUNDLE ID Version: 1.0 (4) AppStoreTools: 13C88a AppVariant: 1:iPad13,2:15 Code Type: ARM-64 (Native) Role: Background Parent Process: launchd [1] Coalition: BUNDLE ID Date/Time: 2022-01-05 09:09:35.5332 +0000 Launch Time: 2022-01-05 07:15:54.2451 +0000 OS Version: iPhone OS 15.1 (19B74) Release Type: User Baseband Version: 3.00.00 Report Version: 104 Exception Type: EXC_CRASH (SIGKILL) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0 Thread 0 name: Thread 0 Crashed: 0 libsystem_kernel.dylib 0x00000001b97c3558 semaphore_timedwait_trap + 8 1 libdispatch.dylib 0x00000001831ccc6c _dispatch_sema4_timedwait + 64 (lock.c:154) 2 libdispatch.dylib 0x00000001831cd270 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116) 3 PrintKit 0x00000001e4adf548 -[PK_HTTPProxy withProtocolSync:] + 252 (PKBonjour.m:232) 4 PrintKit 0x00000001e4adfa94 pk_proxyConnectHTTP + 572 (PKBonjour.m:264) 5 PrintKit 0x00000001e4af4a34 -[PKPrinter(PKPrinterPrivate) getAttributes:count:] + 240 (PKPrinter.m:2744) 6 PrintKit 0x00000001e4af1004 -[PKPrinter doMedia2:] + 84 (PKPrinter.m:1542) 7 PrintKit 0x00000001e4aee88c -[PKPrinter printInfoSupported] + 1216 (PKPrinter.m:969) 8 UIKitCore 0x000000018687ed04 -[UIPrinterUtilityTableViewController initWithPrinter:] + 588 (UIPrinterUtilityTableViewController.m:230) 9 UIKitCore 0x000000018687254c -[UIPrinterBrowserViewController printerInfoButtonTapped:] + 80 (UIPrinterBrowserViewController.m:578) 10 UIKitCore 0x0000000186871340 -[UIPrinterTableViewCell printerAccessoryViewInfoButtonPressed:] + 84 (UIPrinterBrowserViewController.m:327) 11 UIKitCore 0x000000018687054c -[UIPrinterAccessoryView infoButtonPressed:] + 92 (UIPrinterBrowserViewController.m:124) 12 UIKitCore 0x0000000185e2fbf0 -[UIApplication sendAction:to:from:forEvent:] + 100 (UIApplication.m:5360) 13 UIKitCore 0x0000000185f5ba4c -[UIControl sendAction:to:forEvent:] + 128 (UIControl.m:871) 14 UIKitCore 0x0000000185cd72c8 -[UIControl _sendActionsForEvents:withEvent:] + 352 (UIControl.m:942) 15 UIKitCore 0x0000000185d73ae0 -[UIButton _sendActionsForEvents:withEvent:] + 160 (UIButton.m:4142) 16 UIKitCore 0x00000001860067c0 -[UIControl touchesEnded:withEvent:] + 536 (UIControl.m:637) 17 UIKitCore 0x0000000185acbd40 _UIGestureEnvironmentUpdate + 6708 (UIGestureEnvironment.m:653) 18 UIKitCore 0x0000000185afe8c8 -[UIGestureEnvironment _updateForEvent:window:] + 784 (UIGestureEnvironment.m:1332) 19 UIKitCore 0x0000000185b0ba68 -[UIWindow sendEvent:] + 4428 (UIWindow.m:3265) 20 UIKitCore 0x0000000185cbb318 -[UIApplication sendEvent:] + 828 (UIApplication.m:11864) 21 UIKitCore 0x0000000185adec30 __dispatchPreprocessedEventFromEventQueue + 7904 (UIEventDispatcher.m:2290) 22 UIKitCore 0x0000000185ad3a1c __processEventQueue + 6760 (UIEventDispatcher.m:2597) 23 UIKitCore 0x0000000185ad8ec8 __eventFetcherSourceCallback + 172 (UIEventDispatcher.m:2669) 24 CoreFoundation 0x000000018357c020 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1972) 25 CoreFoundation 0x000000018358cce0 __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2016) 26 CoreFoundation 0x00000001834c6fe8 __CFRunLoopDoSources0 + 268 (CFRunLoop.c:2053) 27 CoreFoundation 0x00000001834cc7f4 __CFRunLoopRun + 820 (CFRunLoop.c:2951) 28 CoreFoundation 0x00000001834e03b8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 29 GraphicsServices 0x000000019ee7038c GSEventRunModal + 164 (GSEvent.c:2200) 30 UIKitCore 0x0000000185e806a8 -[UIApplication _run] + 1100 (UIApplication.m:3493) 31 UIKitCore 0x0000000185bff7f4 UIApplicationMain + 2092 (UIApplication.m:5046) 32 SwiftUI 0x000000018b143258 closure #1 in KitRendererCommon(_:) + 164 (UIKitApp.swift:35) 33 SwiftUI 0x000000018b071534 runApp<A>(_:) + 252 (<compiler-generated>:0) 34 SwiftUI 0x000000018b052cb4 static App.main() + 128 (App.swift:114) 35 **APP-NAME** 0x0000000100fa08f0 $main + 28 (<compiler-generated>:10) 36 **APP-NAME** 0x0000000100fa08f0 main + 40 (TLContact.swift:0) 37 dyld 0x0000000101185a24 start + 520 (dyldMain.cpp:876) EOF
Replies
0
Boosts
0
Views
1.1k
Activity
Jan ’22
com.apple.UIKit.UIPrintInteractionController.printPreviewGeneration (QOS: UNSPECIFIED) EXC_BREAKPOINT 0x00000001808a5ad0
4 ShareSheet 0x668b0 __38-[SHSheetMainInteractor _runActivity:]_block_invoke + 60 5 ShareSheet 0x739ec -[SHSheetActivityPerformer _completePerformingActivityWithState:returnedItems:error:] + 812 6 ShareSheet 0x73270 __57-[SHSheetActivityPerformer performWithCompletionHandler:]_block_invoke + 100 7 ShareSheet 0x3a740 -[UIActivity activityDidFinish:items:error:] + 184 8 ShareSheet 0x86524 __41-[UIOpenInIBooksActivity performActivity]_block_invoke + 244 9 UIKitCore 0xf32198 __61-[UIPrintInteractionController _endPrintJobWithAction:error:]_block_invoke + 432 10 Foundation 0x1793a0 -[_NSBarrierOperation main] + 76 11 Foundation 0x3b6f4 NSOPERATION_IS_INVOKING_MAIN + 24
Replies
0
Boosts
0
Views
912
Activity
Jan ’22
UIPrinterPickerController, UIPrintInteractionController, UIPrinter do not work on macOS Catalyst
On iOS emulator :I can select a printer from the UIPrinterPickerController dialog and retrieve the printer I can connect to that printer with UIPrinter.contactPrinter I can send multiple jobs to that printer silently (no dialog) with UIPrintInteractionController Same code or any similar code on macOS Catalyst :Absolutely nothing is working. I see nothing, no dialog, no errors in the log.
Replies
8
Boosts
1
Views
3.4k
Activity
Jan ’22
Big printer troubles since Big Sur 11.6
My printer a Samsung, seem to have totally lost the plot. It would not print anymore but only spit out ASCII type mambojambo. But there is no logic to it as the same file could come out wrong and on the next print fine. I would appreciate if apple would be a little bit more sensitive that not only their world exists but also other devices that need to connect and work.
Replies
0
Boosts
0
Views
637
Activity
Nov ’21
Experimental WebKit Features @page CSS at-rule support not working
Hello, With the new iPadOS updates in iPadOS15 we are finally able to print in landscape so my company is trying to migrate our POS systems to tablets as it makes our client experience more seamless. We have designed a coded template for a web pages receipt that allows us to print in a specific format that fits our letterhead. We currently the following code in order to format the printer to automatically print in landscape from Chrome with 0 margin. @Page {Margin:0px orientation:landscape} On iPadOS, the page does not automatically orientate to Landscape in the print which is not the biggest issue, but the Margin:0px is not read even with the Safari>Advanced>Experimental Features>@page CSS at-rule support toggled on. We have attempted to restart the iPad in case it needed a reset to take effect but it still does not seem to follow the at-rule. Is this an issue others are having, or is there a workaround to adjust printout margin?
Replies
1
Boosts
0
Views
1.5k
Activity
Nov ’21
Printing over internet from iPad to cups
I would like to use my iPad Pro and print documents and files remotely over the internet to my office. Considering the iPad not being on the same network, I have installed and configured a Rasberry pi with Cups and it is working nicely while being on the same network. I would like to know if there is any function that I can mix and match to achieve the goal. Since Google Cloud Printing is out of the game now, it is quite difficult to find an alternative.
Replies
0
Boosts
0
Views
749
Activity
Nov ’21
How to use ippeveprinter
Now that CUPS backends, filters and PPDs are deprecated, I'm trying to set up a print to file queue using ippeveprinter. But I can't get it to work. Anyone know anything about it? I've tried: ippeveprinter -D file:///Users/Shared/Print/Out -F application/pdf -c /usr/local/bin/pscommand.sh myprinter and then created a shell command that runs: cupsfilter $1 I've tried it without the -c flag as well. Sometimes I've produced .prn files, and occasionally .urf files (but without changing anything I've also got zero length files). But I just can't get a PDF into my destination folder.
Replies
0
Boosts
0
Views
1.6k
Activity
Nov ’21
Can the Iphone print logs be stored and monitored?
We would like to have some visibility of Iphone printing. Is there a way to store or monitor the Airprint logs?
Replies
0
Boosts
0
Views
869
Activity
Nov ’21
AirPrint Certification
Hi. We are a printer manufacturer and support AirPrint in our products. Can you provide the schedule for the next AirPrint Certification?
Replies
0
Boosts
0
Views
851
Activity
Nov ’21
Silent Printing via AirPrint using cordova plugins on iOS 15
Hello Devs ! We are trying to use cordova plugin in our ionic app : https://github.com/katzer/cordova-plugin-printer To print documents silently via an AirPrint enabled printer. It works on iOS 14 devices / simulators but we notice that there is an error while we try to print from iOS 15 simulators : https://github.com/katzer/cordova-plugin-printer/issues/281#issuecomment-949167538 Can we please know if this is something that can be handled from cordova plugin level or is this something that is changed / blocked at the iOS native level for any background actions ? Any suggestions / comments will be highly appreciated. Thanks ! Amol
Replies
0
Boosts
0
Views
1.2k
Activity
Oct ’21
PDF borderless print
I am printing a pdf from iOS app. When printing I want to eliminate printers default border and provide it my own margin. Each printer has its own margin and I have to overcome that with my margin.
Replies
2
Boosts
0
Views
1.4k
Activity
Oct ’21
AirPrint Security
I'm working on a medical enterprise application and was wondering if users can confidently print documents containing PHI via AirPrint without any major security risks. Obviously the local network they're operating on should be configured with the highest level of security. I couldn't find any technical details regarding the security of the AirPrint protocol and was hoping someone could provide some additional information on the AirPrint protocol.
Replies
3
Boosts
0
Views
7.6k
Activity
Oct ’21