Error Generating PDF in Output Module
Mac OS 10.15.3, Bridge 10.0.3.138
I haven't been able to generate a PDF from a stack of PSD files for the last couple of versions of Bridge. This worked well in Version 7. (I also tested the same procedure with a stack of JPG and a stack of TIFF files to ensure it wasn't a read error.)
When using a custom template in the Output module, my settings are:
• 2188x2875 px
• 300 PPI
• IQ 10
• 1 Column x 1 Row (one image per page)
• No Margins, filenames, headers, footers, or watermarks
Every attempt to export to a PDF (whether 1 page, 2 pages, or 30+ pages) results in a "This operation could not be completed" error.
After exhaustedly searching Google and the Adobe forums in vain, I decided to find the root cause of the error. I logged the event in my Console, and found a reproducible error. It seems when Adobe started re-writing the app in Swift, UIImagePickerController was more forgiving. However, as of Swift 4+, an execution error occurs if the timing is too close when the completion is set to nil.
The specific error is:
errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
A probably string in the code looks like:
func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]) {}
And for Swift 4+ (4.2 or later) that should be written as:
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]){}
Alternatively, a one second delay should be sufficient as well:
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
if let image = info[UIImagePickerControllerOriginalImage] as? UIImage {
picker.dismiss(animated: false, completion: nil)
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0, execute: {
self.discussionImage.image = image
})
}
}
Since I cannot see the code, also ensure the delegate is set to self by implementing pickerview.delegate = self on viewDidLoad.
I’ve attached the console so you can see the error timing for yourself.
Thank you for fixing this!