2012-05-20 79 views
2

從終端我想要訪問右鍵單擊PDF文件並選擇「文檔」時可讀的數據。從終端閱讀pdf文檔屬性,如在鸚鵡螺中看到的

Exampleexample

我試圖讀取元數據等工具mminfo的和PDFTK但有些文件是密碼保護,使他們不能告訴我的元數據。

幫助讚賞。

+0

和Nautilus顯示了這些相關信息,不管這些文件是否有密碼保護,或者如何做那些2個主題 - 鸚鵡螺和密碼 - 契合一起? –

+0

[crossposting to AskUbuntu](http://askubuntu.com/questions/139957/read-pdf-document-properties-from-terminal-as-seen-in-nautilus) –

+0

確實如此,即使密碼保護。 – rikAtee

回答

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文件。但是,如果鸚鵡螺可以讀取它們 - 爲什麼不應該使用命令行工具?

當我尋找pdfinfo,我得到2個備選答案:

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

你太棒了,謝謝! pdfinfo運作良好。 – rikAtee

相關問題