# The XML writing tool is telling "NO pdf linked"

**URL:** <https://discourse.jabref.org/t/the-xml-writing-tool-is-telling-no-pdf-linked/621>\
**Category:** Help\
**Created:** [May 10, 2017, 1:51am UTC](https://discourse.jabref.org/t/the-xml-writing-tool-is-telling-no-pdf-linked/621 "2017-05-10T01:51:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dellu](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/dellu/32/219_2.png) [@Dellu](https://discourse.jabref.org/u/Dellu)\
**Post date:** [May 10, 2017, 1:51am UTC](https://discourse.jabref.org/t/the-xml-writing-tool-is-telling-no-pdf-linked/621/1 "2017-05-10T01:51:54Z")

</div>

The PDF files are correctly linked. Jabref is able to open the pdf; also display it with the internal viewer.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/jabref/original/1X/1da07ae8a3430806a0da94feb2211d3cea51cc6d.png)

But, when I am trying to write metadata into the PDF, Jabref tells me that **no PDF is linked**.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/jabref/original/1X/a5006b1c3c431bc3890187a7df349506be2eeb0c.png)

Why is this happening?

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [May 10, 2017, 7:01pm UTC](https://discourse.jabref.org/t/the-xml-writing-tool-is-telling-no-pdf-linked/621/2 "2017-05-10T19:01:47Z")

</div>

Hi,

thanks for reporting. Could you please add some details about which JabRef version you are using and if you have relative/absolute file links and if you use Win/Linux/Mac.

Could you also please check for possible errors in the Error Console?

Please describe your steps you do, so we can try to reproduce this  
These information help us to identify the problem a bit more in detail

Best Regards

---

<div class="post-metadata">

**Author:** ![Dellu](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/dellu/32/219_2.png) [@Dellu](https://discourse.jabref.org/u/Dellu)\
**Post date:** [May 10, 2017, 7:48pm UTC](https://discourse.jabref.org/t/the-xml-writing-tool-is-telling-no-pdf-linked/621/3 "2017-05-10T19:48:33Z")

</div>

- OS: Mac 10.12
- Jabref version 4. The feature seems broken at version 4. Jabref 3.8 wrote many of the files.
- In Jabref 3.8, the problem seems restricted to some types of files ( **Premature end of file** is the most frequent error here.).

I am not sure about the difference between absolute and relative links (I use this: [Page Redirection](http://help.jabref.org/en/FileLinks)).

> You can also set a file directory (absolute, or relative to the bib file location) specifically for one database under File → Database properties. Finally, in the Database properties dialog you can set a user-specific file directory, which will be valid only when you are the one working on the bib file.

I just put the folder where I store the files in the Library Properties.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/jabref/original/1X/db9092dc5c01ee8c9bef2f8997ac4fe4315dd8f8.png)

The files are stored in @articles folder, as you can see from the screenshot.

Here is the reference data where the **file** field points to the file name.

> @Article{Adams1985a,  
> author = {Adams, Marianne},  
> title = {Multiple Interrogation in Italian},  
> journal = {The Linguistic Review},  
> year = {1985},  
> volume = {4(1)},  
> number = {1},  
> pages = {1–28},  
> doi = {10.1515/tlir.1985.4.1.1},  
> file = {Adams 1985 Multiple Interrogation in Italian.pdf},  
> url = {[MULTIPLE INTERROGATION IN ITALIAN](http://www.degruyter.com/view/j/tlir.1985.4.issue-1/tlir.1985.4.1.1/tlir.1985.4.1.1.xml)},  
> }

The reference data contains the **file name**. Jabref is able to find the files and link them with the correct reference based on the file name given in the **file** field.

**So, if you want to reproduce:**

1. downlaod any pdf file to your desktop (rename your file to _Adams 1985 Multiple Interrogation in Italian.pdf_)
2. create a new Jabref library with the above reference data
3. modify the Library Properties: such that the file store will be in the Desktop (as in the screenshot)
4. save the library anywhere (downloads folder, for example)
5. try to write XML to the pdf by going to **Tools** menu in Jabref
