从nautilus中看到的终端读取pdf文档属性

时间:2012-05-20 17:55:05

标签: shell ubuntu terminal nautilus

从终端我想访问右键单击pdf文件并选择“文档”时可读的数据。

Exampleexample

我尝试使用mminfo和pdftk等工具读取元数据,但有些文件受密码保护,因此无法向我显示元数据。

帮助表示赞赏。

1 个答案:

答案 0 :(得分:1)

pdfinfo为我揭示了以下信息:

pdfinfo XY.pdf 
Title:          XY Zufriedenheitsbefragung XY: 2012/5
Producer:       Apache FOP Version SVN branches/fop-0_95
CreationDate:   Fri May 18 13:38:45 2012
Tagged:         no
Pages:          8
Encrypted:      no
Page size:      595 x 842 pts (A4)
File size:      33666 bytes
Optimized:      no
PDF version:    1.4

但我不知道加密PDF的工作原理。但是如果nautilus可以读取它们 - 为什么不应该使用命令行工具?

当我寻找pdfinfo时,我得到了两个替代答案:

apt-cache search pdfinfo
poppler-utils - PDF-Werkzeuge (basierend auf libpoppler)
xpdf-utils - Portable Document Format (PDF) suite -- utilities