Skip to content
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

PDF export XMP annotated PDF gives error message #10102

Closed
2 tasks done
ghost opened this issue Jul 20, 2023 · 7 comments · Fixed by #10361
Closed
2 tasks done

PDF export XMP annotated PDF gives error message #10102

ghost opened this issue Jul 20, 2023 · 7 comments · Fixed by #10361

Comments

@ghost
Copy link

ghost commented Jul 20, 2023

JabRef version

5.9 (latest release)

Operating system

Windows

Details on version and operating system

Windows 10 22H2

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

  1. File -> Export all entries
  2. XMP annotated PDF
  3. When you save the file, the following error message is appearing. No PDF file is exported

See screenshot

afbeelding

Appendix

...

Log File
Paste an excerpt of your log file here
@ThiloteE
Copy link
Member

ThiloteE commented Jul 21, 2023

can reproduce with JabRef 5.9

The workaround would be to export the files as library file, instead of a pdf file. So that would be for example .ris or .bib.
Funny enough, even though JabRef is .bib native, it is not listed there, so .ris would be the way to go for now. But I guess, your library is .bib anyway, so if you wanted to go for .bib, just save your library. No need to export.

@Siedlerchr
Copy link
Member

Siedlerchr commented Jul 21, 2023

Don't you need an existing file for this?
Edit// JabRef stores the metadata in an existing pdf file. So you need to select an existing PDF file, then JabRef will write all entries to that in the metadata. JabRef does not create a new pdf. I think this is a bit misleading hiere

https://docs.jabref.org/advanced/xmp

@ghost
Copy link
Author

ghost commented Jul 23, 2023

Why is jabref not creating a NEW pdf file?
What sense does it make to use an existing PDF file??

@ThiloteE
Copy link
Member

I would suggest to implement one of the two:

  • create a pdf file and write XMP metadata to it
  • inform the user in a nice looking message (instead of the ugly error message) that for XMP annotation to work it is required to select an existing pdf file.

@ghost
Copy link
Author

ghost commented Jul 26, 2023

I think the first one would be understood well by most users.

@koppor
Copy link
Member

koppor commented Sep 3, 2023

@koppor
Copy link
Member

koppor commented Sep 3, 2023

Implementation guidance:

  • Create empty PDF using Apache PDF Box

  • Write text

    This PDF was created by JabRef. It demonstrates the embedding of BibTeX data in PDF files. Please open the file attachments view of your PDF viewer to see the attached files. Note that the normal usage is to embed the BibTeX data in an existing PDF.

  • Embed PDFs

@Luggas4you Luggas4you mentioned this issue Sep 10, 2023
6 tasks
@github-project-automation github-project-automation bot moved this from Normal priority to Done in Features & Enhancements Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants