![]() |
#1 |
Enthusiast
![]() Posts: 37
Karma: 10
Join Date: Mar 2009
Device: sony 505
|
File name as title name for pdf, how?
I have many pdf files, after I copy them into reader, the title has changed
(the file name is supposed the correct title name) So, how to get reader displays pdf file name instead of weired title string it gets from pdf? |
![]() |
![]() |
![]() |
#2 |
Hi There!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,473
Karma: 2930523
Join Date: Feb 2008
Location: Ft Lauderdale
Device: iPad
|
Yeah, what she said! Mine get names like ed122344555 or chapter 1. What gives?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,187
Karma: 25133758
Join Date: Nov 2008
Location: SF Bay Area, California, USA
Device: Pocketbook Touch HD3 (Past: Kobo Mini, PEZ, PRS-505, Clié)
|
The file names the Reader uses are from the metadata, not the document title. You can find out what that is, by opening it in Acrobat or the Reader, and going to File-->Properties; it'll list the title, author, subject and keywords (if any).
To change it, you'd need Acrobat Professional, or a program like Change PDF Metadata. (I have no idea how good that is; I use Acro Pro.) This won't work if the PDF is locked or DRM'd. How it gets that way: the metadata is created by whatever program was used to create the PDF. Some of them assign a nearly-random number; some use the text of whatever the first "heading" style was; if they're created by batch by another program, all sorts of things can happen. |
![]() |
![]() |
![]() |
#4 | |
Teacher/Novelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 632
Karma: 2274466
Join Date: May 2008
Location: Nevada
Device: Nook STR, iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 666
Karma: 1752814
Join Date: Jan 2008
Device: Sony Reader PRS-505 : Onyx Boox Max : Sony PRS-900 : Onyx Kepler Pro
|
Probably not too helpful, but for *nix users, this is what I do:
for I in *.pdf ; do exiftool -Title=`basename $I .pdf` $I ; done exiftool is a perl script, so it probably will work across platforms if you're savvy. http://www.sno.phy.queensu.ca/~phil/exiftool/ |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Ad astra per aspera
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 347
Karma: 724
Join Date: Aug 2008
Location: Mexico
Device: PRS-505, PRS-300 & HTC HD2
|
Quote:
http://www.becyhome.de/becypdfmetaed...iption_eng.htm it's the one I'm using ; it's a freeware. |
|
![]() |
![]() |
![]() |
#7 | |
Addict
![]() ![]() ![]() ![]() Posts: 208
Karma: 373
Join Date: Aug 2008
Device: Sony PRS-505 (Blue!), PRS-650 (Black), iPad, iPod Touch
|
Quote:
Sayhello |
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2011
Device: none
|
I put a script here to do this, but I, uh, think it needs some work...be back later...
Hmm...this might do it..just copy it into a text file, chmod it, throw it in a folder with some pdfs and execute! it's better than the code above because it works with filenames with spaces, & cr\#az(y) $ymbol$ and stuff...you should be safe, exiftool makes backups unless you tell it not to. Your path to exiftool may vary, just edit the line beginning "sed 's/^/" #!/bin/bash ls -1 *.pdf | sed 's/\(.*\)\..*/\1/' > names.txt ls -1 *.pdf > names2.txt cat names.txt | sed 's/^/"/' | sed 's/$/"/' > names3 cat names2.txt | sed 's/^/"/' | sed 's/$/"/' > names4 awk 'NR==FNR{a[FNR]=$0;next} {print a[FNR],$0}' names3 names4 > newnames sed 's/^/exiftool -Title=/' newnames > script chmod +x script ./script rm names.txt rm names2.txt rm names3 rm names4 rm newnames rm script exiftool -delete_original *.pdf #END If i actually knew what i was doing, I am sure it would be more elegant. There are plenty of ludicrous commands in that script i'm sure. It works though! Last edited by darkbeanies; 08-14-2011 at 07:28 PM. |
![]() |
![]() |
![]() |
#9 |
Sith Wannabe
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,034
Karma: 8017430
Join Date: Jun 2011
Location: I'm not sure... it's kind of dark.
Device: Galaxy Note 4, Kobo Aura H2O, Kindle Fire HD, Aluratek Libre
|
Holy necroposting, Batman!
![]() |
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2011
Device: none
|
Quiet you!
![]() I've been trying to organize my ebooks for what seems like weeks now. And I thought I was really cool with my script and I found this thread and I... And it still is not quite right 'cause it adds .pdf at the end of the title now... Bah. I'll fix it tomorrow. Oh wait it is tomorrow. I have scaly skin too. Inherited from my grandad. Last edited by darkbeanies; 08-12-2011 at 12:58 AM. |
![]() |
![]() |
![]() |
#11 |
Sith Wannabe
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,034
Karma: 8017430
Join Date: Jun 2011
Location: I'm not sure... it's kind of dark.
Device: Galaxy Note 4, Kobo Aura H2O, Kindle Fire HD, Aluratek Libre
|
|
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 23
Karma: 10
Join Date: Aug 2011
Device: none
|
It doesn't. Well, it nearly does.
It works now. Last edited by darkbeanies; 08-13-2011 at 09:09 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Order by book title, not file name? | AlexBell | Bookeen | 6 | 06-28-2010 04:47 AM |
when importing file title metadata screwed up | dschiri1 | Calibre | 1 | 07-25-2009 11:24 AM |
Word Documents - batch convert title property from file name | tomliversidge | Workshop | 4 | 11-07-2008 11:20 AM |
Database File Hints at Title and Author Tagging | Adam B. | iRex | 2 | 10-23-2008 10:12 AM |
PRS-500 Edit Title of LRF File | jgs | Sony Reader Dev Corner | 9 | 07-08-2007 02:34 PM |