ContentSharer: unable to print from iOS

When I use ContentSharer to print an image or pdf file from my app, a preview screen appears and everything is blocked then. Saving and sharing with other apps is ok but printing is not. After setting the environment variable CG_PDF_VERBOSE in XCode I got “failed to find PDF header: `%PDF’ not found.” It seems the printing service is unable to read a pdf file even if it exists. The same files can be printed from iOS when accessed directly via Files, outside of my app. It this a matter of some additional permissions which should be added to the plist? Tested on iPhone 8 and iPad 6gen. with the latest system.

1 Like