Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a tool to analyze a PDF in terms of fonts, objects, fields and their respective size (kb)? [closed]

Is there a tool to analyze a PDF in terms of fonts, objects, fields and their respective sizes? It would be helpful if it ran on Windows.

I am trying to optimize the size of the PDFs we are generating via abcPDF.

like image 260
dan Avatar asked Dec 08 '11 01:12

dan


People also ask

How do you inspect a PDF document?

PDF Inspector is an app to inspect the structure of a PDF file. PDF files are made up of a series of indexed entries that describe the file, often in the form of dictionaries. Drag and drop a PDF file from your desktop to the app to inspect a new file. The app opens with a sample PDF.

What is an optimized PDF?

Most PDF editing/creation software offer an option called “Fast Web View” or “Optimize” that allows PDF files to display the first few pages of the PDF file when the document is opened, instead of waiting for the full file to be available. Optimized files are also generally smaller in size than non-optimized files.

Does compressing PDF reduce quality?

PDF compression can maintain the quality of your contents if you select the appropriate settings. Reducing the quality of a document, especially its images, can save quite a lot of space on disk, but at the expense of readability and usefulness.


1 Answers

the "Info tool" of Multivalent can be the answer to your question:

Multivalent is a java app, cross platform

download links (latest free version with tools - build hosted on sourceforge has not anymore pdf tools, only the pdf viewer, so, don't download from sourceforge)

  • https://rg.to/file/c6bd7f31bf8885bcaa69b50ffab7e355/Multivalent20060102.jar.html

use:

java -cp /pathto/Multivalent.jar tool.pdf.Info -all file.pdf

output will look like this:

Filename: file.pdf
Creator: Writer
Producer: OpenOffice.org 2.4
Created: Tue Dec 11 23:08:16 GMT-08:00 2007
Page count: 51
PDF version: 1.4
image: object 11, 948x945, raw samples, depth = 8, colorspace = DeviceRGB, length = 9354
image: object 12, 948x945, raw samples, depth = 1, length = 4780
anno: page 2, object 7, Link, bounds 257.0x15.0@(34.0,50.0)
anno: page 2, object 8, Link, bounds 154.0x15.0@(79.0,20.0)
anno: page 6, object 19, Link, bounds 5.0x15.0@(318.0,514.0)
anno: page 7, object 22, Link, bounds 5.0x15.0@(170.0,415.0)
anno: page 16, object 41, Link, bounds 5.0x12.0@(97.0,241.0)
anno: page 17, object 44, Link, bounds 5.0x15.0@(196.0,413.0)
anno: page 18, object 47, Link, bounds 5.0x15.0@(106.0,444.0)
anno: page 20, object 52, Link, bounds 5.0x15.0@(129.0,557.0)
anno: page 25, object 63, Link, bounds 5.0x12.0@(353.0,531.0)
anno: page 28, object 70, Link, bounds 5.0x12.0@(117.0,194.0)
anno: page 30, object 75, Link, bounds 5.0x12.0@(303.0,104.0)
anno: page 31, object 78, Link, bounds 8.0x12.0@(172.0,404.0)
anno: page 32, object 81, Link, bounds 8.0x12.0@(278.0,530.0)
anno: page 38, object 94, Link, bounds 9.0x15.0@(206.0,118.0)
anno: page 45, object 109, Link, bounds 8.0x12.0@(151.0,541.0)
FONT NAME                        TYPE          ENCODING      EMB SUB UNI   OBJ# 
Arial-BoldMT                     TrueType      <intrinsic>    Y   Y   Y     145
LiberationSerif                  TrueType      <intrinsic>    Y   Y   Y     129
LiberationSerif-Bold             TrueType      <intrinsic>    Y   Y   Y     133
LiberationSerif-Italic           TrueType      <intrinsic>    Y   Y   Y     137
MgOpenCanonica                   TrueType      <intrinsic>    Y   Y   Y     125
NimbusRomanNo9L-Regu             TrueType      <intrinsic>    Y   Y   Y     141
149 objects
        6 fonts:  6 TrueType   6 embedded   [LUJTAY+MgOpenCanonica, QOVDSH+LiberationSerif, DSGAAE+LiberationSerif-Bold, OOGVDN+LiberationSerif-Italic, PZMJGN+NimbusRomanNo9L-Regu, FRAGCC+Arial-BoldMT]
2 images
        15 annotations:   15 hyperlinks   
 (51 pages)  Content streams command usage:   w 51   q 4502   Q 4502   cm 1   re 75   f* 24   n 51   W* 51   BT 4450   ET 4450   Tf 4450   Td 4450   Tj 1589   TJ 2861   rg 4467   Do 1
like image 191
Dingo Avatar answered Dec 09 '22 21:12

Dingo