nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MIME.application.pdf / PdfReader

PdfReader

Full name Microsoft.VisualBasic.MIME.application.pdf.PdfReader Assembly Microsoft.VisualBasic.MIME.application.pdf Members 11

01 Syntax

Microsoft.VisualBasic.MIME.application.pdf.PdfReader

02 Methods

NameOverloadsSummary
ParseXRefChain 1 从最新的一段 xref 出发,沿 trailer 的 /Prev 逐段回溯解析,直到没有 /Prev、 偏移非法或出现环为止。任意一段解析失败即终止链(不抛出,交由兜底路径处理)。
ParseXRefSectionAt 1 解析 offset 处的单段交叉引用(传统 xref 表或 xref 流),返回该段的 trailer 字典。
MergeXRefEntry 1 合并交叉引用条目:新段优先,已存在的条目不会被更旧的段覆盖。
RebuildXRefByScan 1 兜底:当 startxref / 交叉引用损坏或缺失时,扫描全文的 "N G obj" 重建对象表, 并通过 /Type /Catalog 定位文档根节点。任何失败都不抛出,退回原有行为。
DecodeAsciiHex 1 解码 ASCIIHex 数据(<hex> 格式)。
Resolve 1
GetPages 1
Dispose 1

03 Properties

NameOverloadsSummary
Trailer 1
DataSize 1
ObjectCount 1

04 Members

method ParseXRefChain #
ParseXRefChain(Int64)

从最新的一段 xref 出发,沿 trailer 的 /Prev 逐段回溯解析,直到没有 /Prev、 偏移非法或出现环为止。任意一段解析失败即终止链(不抛出,交由兜底路径处理)。

method ParseXRefSectionAt #
ParseXRefSectionAt(Int64)

解析 offset 处的单段交叉引用(传统 xref 表或 xref 流),返回该段的 trailer 字典。

method MergeXRefEntry #
MergeXRefEntry(Int32, XRefEntry)

合并交叉引用条目:新段优先,已存在的条目不会被更旧的段覆盖。

method RebuildXRefByScan #
RebuildXRefByScan

兜底:当 startxref / 交叉引用损坏或缺失时,扫描全文的 "N G obj" 重建对象表, 并通过 /Type /Catalog 定位文档根节点。任何失败都不抛出,退回原有行为。

method DecodeAsciiHex #
DecodeAsciiHex(Byte())

解码 ASCIIHex 数据(<hex> 格式)。

property Trailer #
Trailer
property DataSize #
DataSize
property ObjectCount #
ObjectCount
method Resolve #
Resolve(PdfReference)
method GetPages #
GetPages()
method Dispose #
Dispose()