-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Writing XMP metadata to PDFs skips my linked pdf file. Improve error messages #8278
Comments
Minimal example with steps to reproduce:
File gets skipped, there is the pop-up Edit: and XMP metadata will definitely NOT be written. I verified via Foxitreader. Edit: If one uses the following feature, XMP metadata will be written!, but there is no pop-up: |
Additional info:
|
@btut explained why the import leads to different metadata displayed than actually is attached via XMP (https://discourse.jabref.org/t/extract-information-from-pdf-import/2899):
So out of the three issues i identified in this thread, only one is still open and the other two are solved: |
Hi, sorry I only saw this issue now after you tagged me in the forum. I'll look into that last point. Thanks for the detailed report! |
I checked for another entry and that one yielded 0 results with both methods. None of the methods were able to successfully write metadata. I suspect Jabref is not able to write to all pdf versions (e.g. 1.7 or pdf/A), but i would need to do some more tests to know for sure.
Here the info from foxitreader: And this is the error message when i tried to import the pdf file with
|
Still, i am happy that at least SOMETHING is written and i don't have to manually do the click for every single entry. xD A little step. And then another step and another. :) Suddenly we find ourselves on the shoulders on giants. |
Wow - thank you so much for providing all those details! Will look into it. |
Pressing F6 also fails 😶 (For both cases) |
I am very sorry, thats not what I meant to ask. Let me rephrase. When you press F6 OR tools -> export metadata, you get an error for some files. Can you confirm that XMP metadata is missing from those files? I have the feeling that it is the embedded bibtex export that fails, in that case XMP should be fine. We would still have to investigate why that is, but it would ease our investigation if you could confirm XMP is fine. |
I am not sure how i can find out if it was embedded Bibtex that was written to the file or if it was XMP.
|
I found a better command that extracts even more metadata.
exiftool data for Adetula ALL DATA EXTRACTED.txt I think both xmp and bibtex are present in the abdullah file, but NONE in the Adetula file. |
Heading off to sleep xD Good night. |
I did not want to make a new thread for this post as you already have all the data about the pdf file i will talk about here in this thread. This post is about import, rather than exporting metadata. In reference to #8311 I tried the new development version. JabRef 5.4--2021-12-08--74a4edb
Log File
Since there is no XMP-metadata attached (at least i think so, according to exiftool) and if in any case that would be cause for the error and also the cause why the entry does not show up in the import dialogue, showing a message that the entry could not be imported, because no metadata was found might make more sense.
|
So importing should work fine again (except maybe for a better error message). |
Summary of key points for JabRef 5.4--2021-12-08--74a4edb
|
One of the files that can't be exportet to, Adetula (2011) Measuring democracy and good governance in africa.pdf, shows special write protection. Maybe that is it? The only other thing i can think of are the various pdf formats that could mess up things ... (https://www.pdfa.org/resource/pdf-specification-index/) |
|
To do:
|
I am done! I think i have tried and written everything i can and know about this issue. 😅 Sorry to have flooded you with posts! |
Hi! Sorry for the late reply - I did not have anything to add/ask and no time to actually work on the issue.
Here I am unsure what to do. Is overwriting always the best solution? What if the 'old' metadata was not written by JabRef, do we still overwrite it? How would we know? |
Prior to your pull-request, Jabref would overwrite metadata regardless, the user just was not aware that the export was successful. I think this could be something for a new issue if you deem it important enough. So far, my workflow is not negatively affected by being able to overwrite metadata (except for i. in #8278 (comment), but that is a very specific issue as well.) |
The old way is not always the right way :)
I just wanted to put this out there for discussion. In my opinion, the old way is indeed the right way. The user wants to write metadata -> then write metadata. |
JabRef version
Latest development branch build (please note build date below)
Operating system
Windows
Details on version and operating system
Windows 10 21H1
Checked with the latest development build
Steps to reproduce the behaviour
JabRef 5.4--2021-11-15--9955a33
Windows 10 10.0 amd64
Java 16.0.2
JavaFX 17.0.1+1
Writing XMP metadata to pdf(s) skips my linked pdf file
How to reproduce:
Have a pdf file with linked XMP metadata
drag this file into Jabref (a entry emerges; Let's call it X)
Have another entry (let's call it Y) in another library that also links to this same file
Write metadata from Y to pdf via the following feature:
Try to write metadata from X to pdf via the F6 feature.
As soon as you use
Writing XMP metadata to PDFs (F6)
feature the following message pops up, even though my file is linked:Appendix
...
Log File
The text was updated successfully, but these errors were encountered: