是否有工具可以根据字体、对象、字段及其各自的大小 (kb) 来分析 PDF?

发布于 2024-12-20 03:38:35 字数 1539 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

御守 2024-12-27 03:38:35

Multivalent“信息工具”可以回答您的问题:

Multivalent是一个java应用程序,跨平台

下载链接(带有工具的最新免费版本-在sourceforge上托管的构建不再有pdf工具,只有pdf查看器,所以,不要从sourceforge下载)

使用:

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

输出将如下所示:

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

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)

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
灵芸 2024-12-27 03:38:35

事实证明,acrobat 中有一个优化器,即“PDF 优化器”,它可以提供所有这些信息。

http://www.websiteoptimization.com/speed/tweak/pdf/optimizer.html

Turns out there is an optimizer within acrobat, the "PDF Optimizer" which can provide all this information.

http://www.websiteoptimization.com/speed/tweak/pdf/optimizer.html

谜兔 2024-12-27 03:38:35

我认为 Amyuni PDF 分析器 适合您的需求。从网页:

分析和验证可自定义的 PDF 文档的结构
VB.NET 规则集。确保 PDF 结构符合行业要求
或定制规格。

此外,您可以自动化测试并将其用作批处理脚本过程的一部分。

适用通常的免责声明

I think Amyuni PDF Analyzer suits your needs. From the web page:

Analyze and validate the structure of a PDF document with customizable
VB.NET rule sets. Ensure that a PDF structure complies with industry
or custom specifications.

Additionally you can automate your tests and use them as part of a batch-scripting process.

Usual disclaimer applies

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文