(dict: PdfDict)
| 53 | * @returns True if this is a linearization dictionary |
| 54 | */ |
| 55 | export 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. |
no test coverage detected