| Member | What it is |
| PdfDocument.open(bytes, options) | Reads a PDF from a Uint8Array; throws when there is no %PDF- header in the first 1024 bytes. options.decodeLimit: the most one stream may decode to (64 MB). |
| PdfDocument.isPdf(bytes) | Whether the header is there. |
| PdfDocument.parseDate(text) | A PDF date (D:20261130120000+01'00') as ISO 8601, or null. |
| pdf.version · catalogVersion · headerOffset · binaryComment · size | The header's version, the catalog's /Version, where the header is, the binary comment { offset, bytes, ok }, the file length. |
| pdf.object(number, generation) | The current object (a PdfObject), read when first asked for, or null. The generation is optional. |
| pdf.resolve(value) · pdf.get(dictionary, key) | A value with references followed; a dictionary entry, resolved. |
| pdf.stream(objectOrStream, options) | { bytes, raw, applied, stoppedAt, error, warning, encrypted, decrypted }: the data decrypted and decoded; stoppedAt is the first filter left applied (an image codec); options.decode: false only decrypts. |
| pdf.scriptText(value) | A /JS value (a string or a stream, through a reference) as text. |
| pdf.entries · pdf.instances · pdf.load(instance) | The current cross-reference [{ number, generation, kind ("used", "compressed", "free"), offset, streamNumber, streamIndex, revision }]; every object in the file, current, superseded, deleted or in no cross-reference ({ key, number, generation, status, revision, offset, streamNumber, streamIndex, role, referencedBy }); the object of an instance. |
| pdf.xrefSections · pdf.revisions · pdf.startxref · pdf.eofOffsets | The sections in the /Prev chain, newest first ({ offset, kind, subsections, entryCount, trailer, streamNumber, hybridOffset, prevOffset, linearizedFirstPage, problems }); the revisions, oldest first ({ index, sections, trailer, entries, start, end, startxref, eofOffset, objects }). |
| pdf.recovered · pdf.trailing · pdf.layout · pdf.problems | Whether the objects were found by scanning; bytes after the last %%EOF; the byte map ([{ offset, length, type, label, number, revision }]); what is wrong. |
| pdf.trailer · catalog · info · metadata | The trailer (completed by older ones), the catalog, [{ key, value, date }] from Info, { number, xml, fields } from XMP. |
| pdf.pages · fonts · images · annotations · links · outline | The pages with their inherited boxes, rotation, contents, fonts, XObjects and annotations; the fonts and images with the pages that use them; annotations with their actions and URIs; the bookmarks as a tree. |
| pdf.objectStreams · linearization · acroForm · signatures | What each object stream holds; the linearization parameters; the form fields and XFA; the signatures with their byte ranges. |
| pdf.encryption | A PdfEncryption: filter, version, revision, keyLength, method, cryptFilters, permissions { value, flags }, userPasswordEmpty, canDecrypt, note, decrypt(bytes, number, generation, kind). |
| pdf.findings · pdf.unreferenced | What matters for security: [{ severity ("high", "medium", "info"), category, title, detail, object, where }]; the objects nothing reaches from the trailer. |
| PdfObject | number, generation, value, offset, end, streamNumber, problems, error, and dictionary, stream, type, subtype. |
| PdfName · PdfString · PdfReference · PdfDictionary · PdfStream | The values: name.name; string.bytes, hex, text; reference.number, generation; dictionary.get(key), has, keys(), entries(), size, type, subtype; stream.dictionary, dataOffset, length, declaredLength, filters. Numbers, booleans, null and arrays are plain JavaScript values. |
| PdfValue.serialize(value) · kind(value) · isName(value, name) | A value written back as indented PDF syntax; its kind; a name test. |
| new PdfParser(bytes, position) | The lexer and parser: value(), token(), indirectObject(), skipSpace(), position. |
| PdfFilters.decode(bytes, filters, parameters, options) | The filters on their own: { bytes, applied, stoppedAt, error }. |