[GH-ISSUE #837] PDF Title Property Reflects Original TXT File Path Instead of Descriptive Title[BUG]: #491

Closed
opened 2026-02-22 18:19:45 -05:00 by yindo · 1 comment
Owner

Originally created by @kijukusanagi on GitHub (Feb 28, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/837

Originally assigned to: @shatfield4 on GitHub.

How are you running AnythingLLM?

Docker (local)

What happened?

I expected the file to be the same name as I gave it on my computer. The Title property of the PDF should be set to a descriptive title related to the document's content or the name of the original file, without the path.

Actual Behavior:
The Title property is set to the full path of the original .txt file, including drive and folders (e.g., D:\dist\text\1016_rer.txt).

Happy to explain further if needed but wanted to keep this as concise as possible.

Are there known steps to reproduce?

I'm pulling PDFs from a government website, and for whatever reason it's only with how their file properties are set up that creates this scenario.

  • Convert a .txt file to PDF using [the software the site I pulled the PDF from used was Acrobat Distiller 23.0 (Windows)].
  • Check the properties of the resulting PDF.
  • Notice that the Title property reflects the original .txt file path instead of a meaningful title.

Here's the file properties:
File name: 2024a_1016_rer.pdf
File size: 144 KB
Title: D:\dist\text\1016_rer.txt ( I renamed this to 2024-SB 151, but it reverts back to this original title given.)
Author: Domino_Admin
Subject: -
Keywords: -
Created: 2/23/24, 9:47:49 AM
Modified: 2/23/24, 9:47:49 AM
Application: PScript5.dll Version 5.2.2
PDF producer: Acrobat Distiller 23.0 (Windows)
PDF version: 1.7
Page count: 3
Page size: 8.50 × 11.00 in (portrait)
Fast web view: Yes

Originally created by @kijukusanagi on GitHub (Feb 28, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/837 Originally assigned to: @shatfield4 on GitHub. ### How are you running AnythingLLM? Docker (local) ### What happened? I expected the file to be the same name as I gave it on my computer. The Title property of the PDF should be set to a descriptive title related to the document's content or the name of the original file, without the path. Actual Behavior: The Title property is set to the full path of the original .txt file, including drive and folders (e.g., D:\dist\text\1016_rer.txt). Happy to explain further if needed but wanted to keep this as concise as possible. ### Are there known steps to reproduce? I'm pulling PDFs from a government website, and for whatever reason it's only with how their file properties are set up that creates this scenario. - Convert a .txt file to PDF using [the software the site I pulled the PDF from used was Acrobat Distiller 23.0 (Windows)]. - Check the properties of the resulting PDF. - Notice that the Title property reflects the original .txt file path instead of a meaningful title. Here's the file properties: File name: 2024a_1016_rer.pdf File size: 144 KB Title: D:\dist\text\1016_rer.txt ( I renamed this to 2024-SB 151, but it reverts back to this original title given.) Author: Domino_Admin Subject: - Keywords: - Created: 2/23/24, 9:47:49 AM Modified: 2/23/24, 9:47:49 AM Application: PScript5.dll Version 5.2.2 PDF producer: Acrobat Distiller 23.0 (Windows) PDF version: 1.7 Page count: 3 Page size: 8.50 × 11.00 in (portrait) Fast web view: Yes
yindo added the enhancement label 2026-02-22 18:19:45 -05:00
yindo closed this issue 2026-02-22 18:19:45 -05:00
Author
Owner
@timothycarambat commented on GitHub (Feb 29, 2024): Related: https://github.com/Mintplex-Labs/anything-llm/blob/60fc5f715ad85b0b5f13ddf4eb221eb89eb7d9da/collector/processSingleFile/convert/asPDF.js#L43 Also related: https://github.com/Mintplex-Labs/anything-llm/issues/816
yindo changed title from PDF Title Property Reflects Original TXT File Path Instead of Descriptive Title[BUG]: to [GH-ISSUE #837] PDF Title Property Reflects Original TXT File Path Instead of Descriptive Title[BUG]: 2026-06-05 14:35:35 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#491