JabRef version
Latest development branch build (please note build date below)
Operating system
GNU / Linux
Details on version and operating system
Ubuntu 24.04.4 LTS
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
jabkit pdf update --format=xmp should write BibTeX metadata to an already existing linked PDF. Currently, it reports success for an existing PDF, but the PDF is not modified.
- From the repository root, prepare any existing PDF and a BibTeX entry linked to it.
The example below uses an existing test PDF from the repository, but any valid PDF should work.
mkdir -p build/tmp
cp jablib/src/test/resources/org/jabref/logic/importer/util/LNCS-minimal.pdf \
build/tmp/xmp-existing.pdf
PDF_PATH="$PWD/build/tmp/xmp-existing.pdf"
BIB_PATH="$PWD/build/tmp/xmp-existing.bib"
cat >| "$BIB_PATH" <<EOF
@Article{XmpExistingPdf,
author = {Doe, Jane},
title = {XMP existing PDF test},
year = {2026},
file = {:$PDF_PATH:PDF}
}
EOF
- Record the checksum before running the command:
Example result:
33bde3cb4a48cdeb76fadadef4b2bbdd3bc773c338c16d77b0b23555062f82f4 .../build/tmp/xmp-existing.pdf
- Run
pdf update --format=xmp:
./gradlew --rerun-tasks :jabkit:run --args="pdf update --porcelain --format=xmp --citation-key=XmpExistingPdf --input-format=bibtex --input=$BIB_PATH"
- Record the checksum again:
Expected behaviour:
The command should write XMP metadata to the linked existing PDF. The PDF should be modified, or the command should report that no metadata was written.
However, the checksum before and after running the command is identical:
33bde3cb4a48cdeb76fadadef4b2bbdd3bc773c338c16d77b0b23555062f82f4
This means the existing PDF was not modified.
Appendix
...
Log File
Paste an excerpt of your log file here
JabRef version
Latest development branch build (please note build date below)
Operating system
GNU / Linux
Details on version and operating system
Ubuntu 24.04.4 LTS
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
jabkit pdf update --format=xmpshould write BibTeX metadata to an already existing linked PDF. Currently, it reports success for an existing PDF, but the PDF is not modified.The example below uses an existing test PDF from the repository, but any valid PDF should work.
Example result:
pdf update --format=xmp:Expected behaviour:
The command should write XMP metadata to the linked existing PDF. The PDF should be modified, or the command should report that no metadata was written.
However, the checksum before and after running the command is identical:
This means the existing PDF was not modified.
Appendix
...
Log File