After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 684851 - Add an easy way of adding/editing meta data
Add an easy way of adding/editing meta data
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-09-26 08:31 UTC by Mehmet Giritli
Modified: 2018-05-22 14:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH 1/8] libdocument: add functions for modifying document info (4.17 KB, patch)
2016-07-22 08:03 UTC, Gilrose Foot
none Details | Review
[PATCH 2/8] pdf: implement document info editing (2.18 KB, patch)
2016-07-22 08:04 UTC, Gilrose Foot
none Details | Review
[PATCH 3/8] pdf: don't check if forms or annots are modified, when saving a doc (1.68 KB, patch)
2016-07-22 08:05 UTC, Gilrose Foot
none Details | Review
[PATCH 4/8] add gnome-calendar's GcalDateSelector & GcalTimeSelector (40.14 KB, patch)
2016-07-22 08:06 UTC, Gilrose Foot
none Details | Review
[PATCH 5/8] implement edit mode for EvPropertiesDialog & EvPropertiesView (16.66 KB, patch)
2016-07-22 08:06 UTC, Gilrose Foot
none Details | Review
[PATCH 6/8] change the window title when the document title is changed (5.46 KB, patch)
2016-07-22 08:07 UTC, Gilrose Foot
none Details | Review
[PATCH 7/8] notify the user about unsaved document properties before closing (3.52 KB, patch)
2016-07-22 08:07 UTC, Gilrose Foot
none Details | Review
[PATCH 8/8] add seconds to GcalTimeSelector (8.73 KB, patch)
2016-07-22 08:08 UTC, Gilrose Foot
none Details | Review
[PATCH 1/8] libdocument: add functions for modifying document info (4.83 KB, patch)
2016-07-22 09:49 UTC, Gilrose Foot
none Details | Review
[PATCH 2/8] pdf: implement document info editing (2.52 KB, patch)
2016-07-22 09:50 UTC, Gilrose Foot
none Details | Review
[PATCH 3/8] pdf: don't check if forms or annots are modified, when saving a doc (1.68 KB, patch)
2016-07-22 09:50 UTC, Gilrose Foot
none Details | Review
[PATCH 4/8] add gnome-calendar's GcalDateSelector & GcalTimeSelector (40.58 KB, patch)
2016-07-22 09:51 UTC, Gilrose Foot
none Details | Review
[PATCH 5/8] implement edit mode for EvPropertiesDialog & EvPropertiesView (17.61 KB, patch)
2016-07-22 09:51 UTC, Gilrose Foot
none Details | Review
[PATCH 6/8] change the window title when the document title is changed (6.09 KB, patch)
2016-07-22 09:52 UTC, Gilrose Foot
none Details | Review
[PATCH 7/8] notify the user about unsaved document properties before closing (3.52 KB, patch)
2016-07-22 09:52 UTC, Gilrose Foot
none Details | Review
[PATCH 8/8] add seconds to GcalTimeSelector (8.73 KB, patch)
2016-07-22 09:53 UTC, Gilrose Foot
none Details | Review
How evince behaves when the needed poppler version is unavailable (1.49 MB, video/mp4)
2016-08-03 22:35 UTC, Gilrose Foot
  Details
How evince behaves when the needed poppler version is available (2.91 MB, video/mp4)
2016-08-03 22:36 UTC, Gilrose Foot
  Details
[PATCH 1/8] libdocument: add functions for modifying document info (4.79 KB, patch)
2016-10-22 09:46 UTC, Gilrose Foot
none Details | Review
[PATCH 2/8] pdf: implement document info editing (2.50 KB, patch)
2016-10-22 09:46 UTC, Gilrose Foot
none Details | Review
[PATCH 3/8] pdf: don't check if forms or annots are modified, when saving a doc (1.67 KB, patch)
2016-10-22 09:47 UTC, Gilrose Foot
none Details | Review
[PATCH 4/8] add gnome-calendar's GcalDateSelector & GcalTimeSelector (40.53 KB, patch)
2016-10-22 09:48 UTC, Gilrose Foot
none Details | Review
[PATCH 5/8] implement edit mode for EvPropertiesDialog & EvPropertiesView (17.57 KB, patch)
2016-10-22 09:48 UTC, Gilrose Foot
none Details | Review
[PATCH 6/8] change the window title when the document title is changed (6.06 KB, patch)
2016-10-22 09:48 UTC, Gilrose Foot
none Details | Review
[PATCH 7/8] notify the user about unsaved document properties before closing (3.43 KB, patch)
2016-10-22 09:49 UTC, Gilrose Foot
none Details | Review
[PATCH 8/8] add seconds to GcalTimeSelector (8.72 KB, patch)
2016-10-22 09:50 UTC, Gilrose Foot
none Details | Review

Description Mehmet Giritli 2012-09-26 08:31:54 UTC
I have to go through many papers, all in pdf format, from different authors. Its a problem when papers don't have the author and title data set. Unfortunately, this is usually the case with the most of the papers.

I generally use pdftk on the command like to set the meta data. But it is a time consuming process for such a simple task. What I had in mind for evince is to let me select a piece of text (that would be author(s) or title for example) and from the context menu that pops up on the selected text, I should be able to have the option to set it as the value for one of the meta fields. For example, in the pop up menu we could say "set as author" and "set as title" and "set as subject" etc.

Of course, this should be in addition to the ability to directly edit all meta data in properties...
Comment 1 Gilrose Foot 2016-07-22 08:03:53 UTC
Created attachment 331956 [details] [review]
[PATCH 1/8] libdocument: add functions for modifying document info

I've implemented metadata editing in the properties dialog. Doing that from the context menu is probably not a good effort-benefit trade-off.

Perhaps a designer could look at this and see if there are any problems with it from the UX point of view.

The important fact here is that this code depends on poppler code which is available in the git master tree, but isn't released yet. It also doesn't need this poppler code for evince to work. In the absence of a poppler version which supports metadata editing evince just won't show the "Edit..." button in the properties dialog. Thanks to this we don't have to require the latest poppler version and we can let the distros update it at their usual pace.

In order to test these patches, you have to compile poppler youself and use LD_PRELOAD env variable to preload the newly-compiled libpoppler.so and libpoppler-glib.so.
Comment 2 Gilrose Foot 2016-07-22 08:04:40 UTC
Created attachment 331957 [details] [review]
[PATCH 2/8] pdf: implement document info editing
Comment 3 Gilrose Foot 2016-07-22 08:05:27 UTC
Created attachment 331958 [details] [review]
[PATCH 3/8] pdf: don't check if forms or annots are modified, when saving a doc
Comment 4 Gilrose Foot 2016-07-22 08:06:03 UTC
Created attachment 331959 [details] [review]
[PATCH 4/8] add gnome-calendar's GcalDateSelector & GcalTimeSelector
Comment 5 Gilrose Foot 2016-07-22 08:06:37 UTC
Created attachment 331960 [details] [review]
[PATCH 5/8] implement edit mode for EvPropertiesDialog & EvPropertiesView
Comment 6 Gilrose Foot 2016-07-22 08:07:17 UTC
Created attachment 331961 [details] [review]
[PATCH 6/8] change the window title when the document title is changed
Comment 7 Gilrose Foot 2016-07-22 08:07:58 UTC
Created attachment 331962 [details] [review]
[PATCH 7/8] notify the user about unsaved document properties before closing
Comment 8 Gilrose Foot 2016-07-22 08:08:35 UTC
Created attachment 331963 [details] [review]
[PATCH 8/8] add seconds to GcalTimeSelector
Comment 9 Gilrose Foot 2016-07-22 09:49:48 UTC
Created attachment 331972 [details] [review]
[PATCH 1/8] libdocument: add functions for modifying document info

Forgot about the copyright info. Sorry.
Comment 10 Gilrose Foot 2016-07-22 09:50:13 UTC
Created attachment 331973 [details] [review]
[PATCH 2/8] pdf: implement document info editing
Comment 11 Gilrose Foot 2016-07-22 09:50:40 UTC
Created attachment 331975 [details] [review]
[PATCH 3/8] pdf: don't check if forms or annots are modified, when saving a doc
Comment 12 Gilrose Foot 2016-07-22 09:51:26 UTC
Created attachment 331976 [details] [review]
[PATCH 4/8] add gnome-calendar's GcalDateSelector & GcalTimeSelector
Comment 13 Gilrose Foot 2016-07-22 09:51:57 UTC
Created attachment 331977 [details] [review]
[PATCH 5/8] implement edit mode for EvPropertiesDialog & EvPropertiesView
Comment 14 Gilrose Foot 2016-07-22 09:52:25 UTC
Created attachment 331978 [details] [review]
[PATCH 6/8] change the window title when the document title is changed
Comment 15 Gilrose Foot 2016-07-22 09:52:55 UTC
Created attachment 331979 [details] [review]
[PATCH 7/8] notify the user about unsaved document properties before closing
Comment 16 Gilrose Foot 2016-07-22 09:53:25 UTC
Created attachment 331980 [details] [review]
[PATCH 8/8] add seconds to GcalTimeSelector
Comment 17 Gilrose Foot 2016-07-25 10:17:31 UTC
Just a note: new poppler version (0.46) has been released. The code these patches use is in this version. Still: if the needed poppler version is not there, the "Edit..." button just won't be shown on the properties dialog header bar, everything will still work.
Comment 18 José Aliste 2016-07-26 17:35:36 UTC
Very nice work. I like this, but have two main concerns. First, we should probably do a nautilus plugin or a standalone program that uses your UI to just change the properties of a PDF, this could be launched from the context menu in "Files" a.k.a. nautilus. Something like evince-thumbnailer or maybe the already existing nautilus plugin can be improved. 

Second, I dislike the fact that the Edit mode looks so different from the non-edit mode... I think that your dialog looks much nicer than the propertie dialog, so I would try to refresh the properties dialog to look similar to yours.
Comment 19 Gilrose Foot 2016-07-26 18:12:20 UTC
(In reply to José Aliste from comment #18)
> Very nice work. I like this, but have two main concerns. First, we should
> probably do a nautilus plugin or a standalone program that uses your UI to
> just change the properties of a PDF, this could be launched from the context
> menu in "Files" a.k.a. nautilus. Something like evince-thumbnailer or maybe
> the already existing nautilus plugin can be improved. 

Agreed. I haven't developed any nautilus plugins yet, so I may be wrong, but based on a brief reading of the Nautilus Extension Reference I think that extensions cannot add buttons to the header bar (if the nautilus properties dialog has a header bar at all). So it seems that a separate plugin (I'm not sure yet if plugins can open their own windows/dialogs) or a standalone program which would be launched from the context menu. I'm not sure if this should go as a separate issue or be reviewed along with the above patches.

> Second, I dislike the fact that the Edit mode looks so different from the
> non-edit mode... I think that your dialog looks much nicer than the
> propertie dialog, so I would try to refresh the properties dialog to look
> similar to yours.

I think that in large part it's because of the fact that there is much less information which you can edit than all the information which you can read. Because of that in edit mode there is no tab bar (because editable fields are on just one GtkNotebook page) and there are less fields to show (no "Format:", "Number of Pages:" etc.). If you have something else on your mind, please elaborate.
Comment 20 Gilrose Foot 2016-08-03 07:33:35 UTC
Is there a chance for landing it for 3.22?
(I could change something, if I knew that something specifically has to be changed.)
Comment 21 José Aliste 2016-08-03 21:05:03 UTC
Jakub, Can you add a screencast or screenshot of what you have implemented? that way I can CC people in the design team to give us advice.
Comment 22 Gilrose Foot 2016-08-03 22:35:43 UTC
Created attachment 332688 [details]
How evince behaves when the needed poppler version is unavailable
Comment 23 Gilrose Foot 2016-08-03 22:36:16 UTC
Created attachment 332689 [details]
How evince behaves when the needed poppler version is available
Comment 24 Gilrose Foot 2016-08-03 22:37:24 UTC
Recorded with Adwaita, but IMHO it looks better with Arc-Darker. ;)
Comment 25 Gilrose Foot 2016-10-22 09:46:23 UTC
Created attachment 338254 [details] [review]
[PATCH 1/8] libdocument: add functions for modifying document info
Comment 26 Gilrose Foot 2016-10-22 09:46:54 UTC
Created attachment 338255 [details] [review]
[PATCH 2/8] pdf: implement document info editing
Comment 27 Gilrose Foot 2016-10-22 09:47:28 UTC
Created attachment 338256 [details] [review]
[PATCH 3/8] pdf: don't check if forms or annots are modified, when saving a doc
Comment 28 Gilrose Foot 2016-10-22 09:48:00 UTC
Created attachment 338257 [details] [review]
[PATCH 4/8] add gnome-calendar's GcalDateSelector & GcalTimeSelector
Comment 29 Gilrose Foot 2016-10-22 09:48:32 UTC
Created attachment 338258 [details] [review]
[PATCH 5/8] implement edit mode for EvPropertiesDialog & EvPropertiesView
Comment 30 Gilrose Foot 2016-10-22 09:48:59 UTC
Created attachment 338259 [details] [review]
[PATCH 6/8] change the window title when the document title is changed
Comment 31 Gilrose Foot 2016-10-22 09:49:41 UTC
Created attachment 338260 [details] [review]
[PATCH 7/8] notify the user about unsaved document properties before closing
Comment 32 Gilrose Foot 2016-10-22 09:50:08 UTC
Created attachment 338261 [details] [review]
[PATCH 8/8] add seconds to GcalTimeSelector
Comment 33 Gilrose Foot 2016-10-22 09:50:53 UTC
I've resolved the merge conflicts and updated the copyright info (I've changed my name).
Comment 34 GNOME Infrastructure Team 2018-05-22 14:46:32 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/301.