'How can i get pdf version of webpage if NSExtensionJavaScriptPreprocessingFile is set?
I am making a Share extension for all possible types. Now I am stuck with sharing from Safari. I'm using "NSExtensionJavaScriptPreprocessingFile" to get title, favicon and html of common pages. But this option changes type of attachment from "com.adobe.pdf" to "com.apple.property-list" without pdf content.
Solution 1:[1]
After taking some more insight I think I can safely say that this is a bug in Safari.
Safari sends only NSData
that has 135 bytes. It can be converted to the property list that appears as NSDictionary
, but it has only 4 keys that don't appear to hold any useful information ("version", "archiver", "objects" - it is nil
, "top").
Developers can report it to Apple using the Feedback Assistant app.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ivan IÄin |