Summary
I imported PDFs from multiple scattered directories into a single .bib library
via JabKit (convert --input-format=pdfMerged). The file fields contain
absolute paths to the original locations (deep nested Zotero-style directories).
I want to consolidate all PDFs into one folder next to the .bib file. I tried
the built-in tools, but the file links in the database are not updated — opening
a PDF from JabRef still tries to access the original path.
Steps to reproduce
-
Import PDFs from multiple folders into a
.biblibrary using JabKit:
jabkit convert --input= --input-format=pdfMerged
–output=library.bib --output-format=bibtex
The resulting entries havefilefields like:
file = {:/home/user/data/paper/ref/rsa_method/2019_Popal …/origin.pdf:PDF} -
Open
library.bibin JabRef. -
Set the Main file directory in Library Properties → General.
-
Click Library → Copy linked files to folder. Files are copied to the
target folder. -
Run Quality → Cleanup entries, enable file-related options:
- “Move to file directory”
- “Make paths relative”
- “Rename files to match citation key”
- Save the library.
Expected behavior
After step 5, the file field in each entry should be updated to point to the
new location. Opening a PDF from JabRef should use the new path.
Actual behavior
The files are physically copied to the target folder, but the file field in
What I’ve tried
- Copy linked files to
folder
— copies files but doesn’t update links - How to save PDFs to different
folder
— setting main file directory doesn’t trigger link update - GitHub #121
— related but doesn’t address the link update issue - [Prevent JabRef from auto-renaming and moving files](https://discourse.jabref.org/t/prevent-jab
ref-from-auto-renaming-and-moving-files/2596/11?u=koppor) - [Move folder with PDFs and have JabRef reconnect](https://discourse.jabref.org/t/move-folder-wi
th-pdfs-and-have-jabref-reconnect-links-to-them-automatically/2285/13)
— closest match, but the solution didn’t work for my case - How to change automatically links of pdf files - #2 by Siedlerchr
Environment
- JabRef 5.15–2024-07-10–1eb3493
- Linux 6.17.0-22-generic amd64
- Java 21.0.2
- JavaFX 22.0.1+7
Question
Is there a correct workflow to both copy PDFs to a single folder and update
the file links in the database? Or is this a bug where “Copy linked files to
folder” doesn’t trigger the link update?