MCPcopy Create free account
hub / github.com/LibPDF-js/core / isLinearizationDict

Function isLinearizationDict

src/document/linearization.ts:55–59  ·  view source on GitHub ↗
(dict: PdfDict)

Source from the content-addressed store, hash-verified

53 * @returns True if this is a linearization dictionary
54 */
55export function isLinearizationDict(dict: PdfDict): boolean {
56 const linearized = dict.getNumber("Linearized");
57
58 return linearized !== undefined && linearized.value === 1;
59}
60
61/**
62 * Parse linearization parameters from a linearization dictionary.

Callers 3

loadMethod · 0.90
reloadMethod · 0.90

Calls 1

getNumberMethod · 0.45

Tested by

no test coverage detected