GNOME Bugzilla – Bug 644728
Feature Request: add support for storing PDFs
Last modified: 2011-09-13 07:20:36 UTC
I would like to be able to store PDFs in a Glom database applications. Is something could be possible? Thanks, Ben
Yes, I think we should be able to store and open arbitrary files, maybe storing the filename and/or mime type along with them.
I guess arbitrary files could be stored as a blob sql type. For the pdf file, it would nice to be able to put it in the details view just like an image or picture. But I don't really know if this makes sense or is even possible. When I get some spare time, I'll make a small glom app with a screenshot of the first page of a pdf file to see if it would actually be useful to have the pdf in the details view.
I implemented this a few weeks ago, in Glom 1.19/20, using evince's library. We don't yet store the mime type or the filename, but gio's mime-type guessing seems to work well enough. You can view the PDF in the details view, save it to disk, or open it in an external application. evince bug #654832 would make it more efficient.