Skip to content

happypdf / extractPageContents

Function: extractPageContents() ​

ts
function extractPageContents(page): PdfAsset[];

Defined in: src/api/extraction/extractPageContents.ts:58

Extract typed text, image, and vector graphics assets from a page's content streams.

Parameters ​

ParameterType
pagePDFPageLeaf

Returns ​

PdfAsset[]

MIT Licensed. A fork of pdf-lib.