GNOME Bugzilla – Bug 325143
View/Save attachments in PDF
Last modified: 2006-05-26 16:48:51 UTC
PDF's can actually contain attached files of any filetype. This message is to request Evince to be able to View/Save these attachments. The following message will provide an example PDF with 2 JPEG attachments.
Created attachment 56467 [details] PDF containing 2 JPEG attachments Here is an example PDF with 2 JPEG attachments.
It would be nice feature
There's currently work underway to add support for this to the poppler library http://lists.freedesktop.org/archives/poppler/2005-December/001321.html
I think we can include attachments tab in properties page. Poppler part is already implemented, so this will be great task for gnome lover
I think it could be difficult to find the attachments in the properties dialog. I had in mind something like this: http://carlosgc.linups.org/files/ev-with-attachs.png http://carlosgc.linups.org/files/ev-with-attachs-expanded.png http://carlosgc.linups.org/files/ev-without-attachs.png At the moment they are only mockups, but if it make sense I'll prepare a patch.
Created attachment 62619 [details] [review] Proposed patch Here is the promised patch. You can test it with the following pdf that I found googling for a while: http://www.shubhayan.org/media/Press.Release-08.08.2005.pdf There are still things to do, but I think the patch is large enough and I'm not sure about those things: * Add an 'open with' option to context-menu * Allow multiple selection of attachments * Store metadata about attachment bar (expanded/not expanded)
Well, patch needs additional work, for example we need to * Update user documentation * Allow multiple selection * Store metadata I am not sure we want to add "Open with", it's too complicated for us. I've committed it, thanks Carlos.
I think the attachment bar should be shown by default or another UI should be implemented, since the current UI makes it very hard to find out whether a file has attachments.
The attachment bar is always shown when the document has attachments. It could be expanded or not, but it's always shown. Do you mean that the attachments bar should be expanded by default? I think it could be annoying, because if you just want to read the document you will have to close the bar every time. It takes a lot of space when is not going to be used.
Let's just implement metadata storage for this setting
The problem is that the attachment bar looks like a status bar and is not easily discoverable. Why not add a sidebar (index, thumbnails, attachments) and an icon somewhere that indicates that the document has attachments? Such an icon would also be great for secured/encrypted pdf files (showing the lock icon somewhere).
hmm, I think that the current attachments bar is easier to discover rather than an icon. Anyway, in case of using an icon, where could we put such an icon?
We can create attachment sidebar btw. And probably we should bring back statusbar, we need it anyhow.
Created attachment 64535 [details] [review] Allow multiple selection This patch allows multiple selection of attachments. Ok to commit?
About the discoverablility - yeah, we need a statusbar. I think we also should update our documentation, but in general this bug is now fixed.
I tested Evince 0.5.3 on the PDF listed above and it works fine. However, I have a PDF that contains an attachment that I created, and Evince is not showing an attachment. If I open the same PDF in Acroread, then it's there. The PDF is located at http://www.tlhiv.org/papers/tb84henderson.pdf Troy
Troy, please create separate __poppler__ bug about that.
Done. Here's the Poppler bug: https://bugs.freedesktop.org/show_bug.cgi?id=7044