| 作者 |
主題 |
dc
管理員

性別:男
來自:瓦肯星
發表總數:11573
註冊時間:2002-05-07 16:32 |
(第 1 篇) 【教學】查詢 PDF 檔案的 dpi
資料來源:Graphic Design Stack Exchange
教學裡使用的是 Adobe Acrobat Pro 18.90 版本,不同版本可能顯示的位置不相同
首先開啟你要檢查的 PDF 檔
1.使用組合鍵 開啟預檢功能 Windows ( shift + ctrl + x) 、 Mac ( Shift 鍵 ⇧ + Command 鍵 ⌘ + x)
Edit -> Preflight (or shift & cmd/ctrl & x)
2.預檢的視窗如下

設定檔 -> PDF 分析 -> 列出頁面物件,並依物件類型群組 -> 分析
Profiles -> PDF Analysis -> List page objects, grouped by type of object -> Analyze
3.預檢 結果 的視窗如下

結果 -> 列出頁面物件,並依物件類型群組 -> 位圖影像的解析度大於 1000 ppi (總計 225 頁上 255 項相符)
Results -> List page objects, grouped by type of object -> Resolution of bitmap images is greater than 1000 ppi (255 matches on 255 pages)
符合我當初掃描時設定的 1200 dpi
不想用快速鍵的話,依下列的步驟叫出按紐
編輯 -> 管理工具 -> 保護與標準化 -> 列印作品 -> 新增
這樣列印作品右邊就有 輸出預覽 預檢 可以使用了
本帖由dc最後編輯於2018-03-12 15:07
Your mind to my mind,
your thought to my thought |
| 發表時間:2018-03-12 14:55 |
|
dc
管理員

性別:男
來自:瓦肯星
發表總數:11573
註冊時間:2002-05-07 16:32 |
(第 2 篇) 使用 pdfimages
資料來源:nixCraft
資料來源:superuser
使用 ImageMagick 的 identify -verbose 功能沒辦法直接得到 dpi 用轉的也不行
https://unix.stackexchange.com/questions/39464/how-to-query-pdf-page-size-from-the-command-line
使用 pdfimages 可以比較快取得 x-ppi y-ppi
安裝 pdfimages
yum install poppler-utils
取得 x-ppi y-ppi
pdfimages -list example.pdf
會類似是這樣
| 代碼: |
page num type width height color comp bpc enc interp object ID x-ppi y-ppi size ratio
--------------------------------------------------------------------------------------------
1 0 image 3303 4909 icc 3 8 jpeg no 7 0 601 601 5687K 12%
2 1 image 3402 4934 icc 3 8 jpeg no 16 0 601 601 2766K 5.6%
3 2 image 6820 9884 icc 1 1 image no 22 0 1201 1201 119K 1.4%
4 3 image 6840 9894 icc 1 1 image no 31 0 1202 1202 92.4K 1.1%
5 4 image 3414 4939 icc 1 8 jpeg no 37 0 601 601 370K 2.2%
6 5 image 6844 9890 icc 1 1 image no 43 0 1202 1201 423K 5.1%
7 6 image 6834 9872 icc 1 1 image no 49 0 1201 1201 513K 6.2%
8 7 image 6840 9880 icc 1 1 image no 55 0 1202 1202 412K 5.0%
|
本帖由dc最後編輯於2018-03-12 23:07
Your mind to my mind,
your thought to my thought |
| 發表時間:2018-03-12 17:00 |
|
dc
管理員

性別:男
來自:瓦肯星
發表總數:11573
註冊時間:2002-05-07 16:32 |
(第 3 篇) 使用 java
資料來源:Masao Takaku's Website
PDF check utility
安裝 java 相關套件
yum install -y java unzip
下載使用的 java 檔
wget http://masao.jpn.org/software/pdf-checker/pdf-checker-20110914.zip
解壓縮檔案
unzip pdf-checker-20110914.zip
使用方式
java -jar PdfChecker.jar xxx.pdf
結果類似這樣
| 代碼: |
filename xxx.pdf
version 3
encryption false
creationdate D:20180308132532Z00'00'
producer Mac OS X 10.13.3 Quartz PDFContext
creator ScanSnap Manager #iX500
moddate D:20180308132532Z00'00'
pages 260
page1 pagesize Rectangle: 396.0x589.0 (rot: 0 degrees)
page1 imagetype jpg
page1 dpi-x 600
page1 dpi-y 600
page1 text length 0
page2 pagesize Rectangle: 408.0x592.0 (rot: 0 degrees)
page2 imagetype jpg
page2 dpi-x 600
page2 dpi-y 600
page2 text length 0
page3 pagesize Rectangle: 409.0x593.0 (rot: 0 degrees)
page3 imagetype png
page3 dpi-x 1200.5868
page3 dpi-y 1200.0809
page3 text length 0
page4 pagesize Rectangle: 410.0x593.0 (rot: 0 degrees)
page4 imagetype png
page4 dpi-x 1201.1707
page4 dpi-y 1201.2952
page4 text length 0
page5 pagesize Rectangle: 409.0x592.0 (rot: 0 degrees)
page5 imagetype jpg
page5 dpi-x 600
page5 dpi-y 600
page5 text length 0
page6 pagesize Rectangle: 410.0x593.0 (rot: 0 degrees)
page6 imagetype png
page6 dpi-x 1201.8732
page6 dpi-y 1200.8096
page6 text length 0
|
Your mind to my mind,
your thought to my thought |
| 發表時間:2018-03-12 17:11 |
|
|
所有時間均為GMT+8, 現在是2025-12-24 02:20 |