Binary Raw - Docs
    Preparing search index...

    Function parse

    • Parses a PDF document and returns its structured representation.

      Produces the following sections:

      • Header – the %PDF-X.Y version line and optional binary-hint comment.
      • Indirect objects – up to 200 obj … endobj blocks (100 added as tree nodes).
      • Cross-Reference Table – the xref section, if present.
      • Trailer – the startxref keyword through %%EOF.

      Object scanning is capped at 200 entries and tree nodes at 100 to avoid O(n²) performance on large files.

      Parameters

      Returns ParsedStructure

      A ParsedStructure with format set to 'PDF' and entryPoint set to undefined.