-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe restore ability to save embedded files #1336
Comments
I prefered having the option to extract swf audio etc as I could run them if totally trusted, |
I still use this feature (saving SWFs embedded in PDFs) on occasion, although not as much as I did back when I requested zeniko to add it (knowing very well that simple extraction ought to be far less risky than playing). Would really appreciate seeing it reimplemented better than ever. |
dev note: this is LinkHandler::GotoLink, kindDestinationLaunchEmbedded. For pdf attachments, GetValue() is "file://" url. Example of saving: http://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=6c30ec5c5da94052053197bfbe92ea6f2a1a86ee |
@kjk a secondary related issue ( which is part of #1361 ) My personal view is that ANY embedded object should simply be offered to be saved as a conventional file and not run (even if it is a pdf) |
@kjk & @GitHubRulesOK, although MuPDF implemented portfoliios (commercial name for collections), they stopped that approach, since it was more complex than they implemented. According to PDF reference version 1.7, the definition reads:
I think that implementing
I generate documents with attachments as a standard work routine. I need to check (since it is automated from data provided by users) what is being attached and sent in the document. If I have to save all attached PDF documents (the only file format we attach) before opening them, I would have to go back to Acrobat Reader. Sorry, since SumatraPDF is mainly a PDF document reader, double-clicking on any kind of link to a PDF document (such as an attachment annotation or an item in the list of embedded files) should open it. Many thanks for your help. |
@ousia In my Adobe Acrobat there is by default enforced security NOT to run such files and there are supposed to be settings for me to over-ride such security measures, but they are troublesome. I guess that's why some users would want SumatraPDF to more easily Auto run those embedded files I would suggest the simplest option is a save or run exactly the same as in a web browser. |
I think it should be a configuration option what to do with embedded files:
Many thanks for your help. |
We can have a sane default and add this as a setting to sumatrapdfrestrict.ini in case users really want to tweak the behavior. |
@kjk Note that in Acrobat clicking the icon allows reading the embedded PDF and using the bookmarks it Scrolls & Zooms to the correct details location. Currently opening the extracted file it does not zoom and scroll corectly and for that matter as far as I can tell 3.1.2 did scroll but NOT zoom |
Thanks, but all the PDFs with animations that I have contain SWFs/MP4s without any ToC entries, so this closure unfortunately doesn't help; still gotta wait for #1602 to be closed. |
The implementation was convoluted so was removed for 3.2. Maybe re-implement later in a better way.
Removal commit for reference: fbb11d4
Reference: http://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=6c30ec5c5da94052053197bfbe92ea6f2a1a86ee
The text was updated successfully, but these errors were encountered: