0

I am working on file manager. I have stored their local urls in my core data. I have file and folder, but I want to print png, jpeg, docx and pdf from my application. Let's suppose I have a print button in my application and every file, how can I print that?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Hassan Malik
  • 559
  • 6
  • 20

1 Answers1

0

use launch services LSOpenFromURLSpec as described in the reference. pass kLSLaunchAndPrint as launch option in the specs array.

mahal tertin
  • 3,239
  • 24
  • 41