windows 用它们各自的内容标题重命名许多 *.pdf 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21425721/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Rename many *.pdf files with their respective Contents-Title
提问by user3247895
I have many(around 500) pdf files having useless names, so i want to rename all of them with their respective 'Title' of files. 'Title' here refers to the heading(top most title with largest font size) of file/document, when it is opened in reading mode. I want to achieve this by some program/script or manually consisting of few steps only in Window7.So please help...
我有很多(大约 500 个)pdf 文件的名称无用,所以我想用它们各自的文件“标题”重命名所有文件。这里的“标题”是指文件/文档在阅读模式下打开时的标题(最上面的字体大小最大的标题)。我想通过一些程序/脚本或仅在 Window7 中手动包含几个步骤来实现这一点。所以请帮助...
EDIT:I have done nothing to achieve this, but was thinking that, there can be some script or software, which will read the text of pdf file and find the text having largest font, then can use the largest-font-sized-text as new name for renaming the file.So i mainly just need the way to find the largest-font-sized-text present in pdf file.
编辑:我没有做任何事情来实现这一点,但我想,可以有一些脚本或软件,它会读取pdf文件的文本并找到字体最大的文本,然后可以使用最大字体大小的文本作为重命名文件的新名称。所以我主要只需要找到pdf文件中存在的最大字体大小文本的方法。
回答by Albicocco
i have found this free software:
http://www.advancedrenamer.com/
that allows you to rename mass pdf files with their metatags.
我找到了这个免费软件:
http: //www.advancedrenamer.com/
,它允许您使用元标签重命名大量 pdf 文件。
回答by gaborous
There is also pdf-title-rename.py, a simple Python script to batch rename PDF files with their (sanitized) title.
还有pdf-title-rename.py,这是一个简单的 Python 脚本,用于批量重命名 PDF 文件及其(已清理)标题。
回答by ZMacarozzi
If these are pdfs of academic articles you can use Mendeley - it is a free program, which runs under Windows. You can drop all the pdfs in a folder and select how you want them renamed - e.g. title-year-author. It works very well for recent pdfs, however, it has some trouble with older articles. But then it will flag them as incomplete records that can be manually renamed.
如果这些是学术文章的 pdf,您可以使用 Mendeley - 它是一个免费程序,可在 Windows 下运行。您可以将所有 pdf 文件放到一个文件夹中,然后选择您希望它们重命名的方式 - 例如 title-year-author。它适用于最近的 pdf,但是,对于较旧的文章,它有一些问题。但随后它会将它们标记为可以手动重命名的不完整记录。
回答by Dark
Zotero(free/opensource) and Mendeley(used to be awesome; ruined by Elsevier) do exactly this auto-renaming of PDFs by default.
默认情况下,Zotero(免费/开源)和Mendeley(曾经很棒;被 Elsevier 毁了)正是这样做的 PDF 自动重命名。
Simply drag/drop all PDF files on the main window of one of these programs. Few seconds later the PDFs will be renamed automatically according to their respective real title extracted from the content (metadata, to be more precise).
只需将所有 PDF 文件拖放到这些程序之一的主窗口中即可。几秒钟后,PDF 将根据从内容中提取的各自真实标题(更准确地说是元数据)自动重命名。
Please note that both of these programs were designed for academic documents, therefore, the default format of automatic renaming function might not suite your purpose out of the box (e.g., title-author-year.pdf) however, one can easily customize that under "settings".
请注意,这两个程序都是为学术文档设计的,因此,自动重命名功能的默认格式可能不适合您开箱即用的目的(例如,title-author-year.pdf)但是,您可以轻松地在“设置”。
Automatic renaming(Zotero)
When PDFs are added to existing Zotero items or metadata is retrieved for a PDF, Zotero will now automatically rename the file based on the parent metadata. This applies to both linked and stored files. A future version of Zotero will provide additional options for customizing the naming format. You can disable automatic renaming from the General pane of the preferences. (Files saved along with items from web translators have always been automatically renamed and aren't affected by this setting.) [ref]
自动重命名(Zotero)
当 PDF 添加到现有 Zotero 项目或为 PDF 检索元数据时,Zotero 现在将根据父元数据自动重命名文件。这适用于链接文件和存储文件。Zotero 的未来版本将提供用于自定义命名格式的其他选项。您可以从首选项的“常规”面板禁用自动重命名。(与来自网络翻译器的项目一起保存的文件始终会自动重命名,不受此设置的影响。)[ ref]
File Organizer(Mendeley)
Once again, Mendeley has considered this situation and provides an effortless way to organize your files with a built-in feature called: ‘File Organizer'. As the name suggests, this feature can organize your files for you in a few different ways. You can store your files in a centralized folder with all the files renamed to a specific format. The format is easy to customize by simply dragging the naming categories from one input box to the other. [ref]
文件管理器(Mendeley)
Mendeley 再次考虑了这种情况,并提供了一种轻松的方式来组织您的文件,其中包含名为“文件管理器”的内置功能。顾名思义,此功能可以以几种不同的方式为您整理文件。您可以将文件存储在一个集中的文件夹中,并将所有文件重命名为特定格式。只需将命名类别从一个输入框拖到另一个输入框,即可轻松自定义格式。[参考]
回答by herohuyongtao
You can check out How to Batch Rename Files in Windows: 4 Ways to Rename Multiple Files:
您可以查看如何在 Windows 中批量重命名文件:重命名多个文件的 4 种方法:
Windows Explorer
Command Prompt
PowerShell
Third-Party Utilities
Windows资源管理器
命令提示符
电源外壳
第三方实用程序