Skip to content

informat.pdf PDF Files

Overview

Use the informat.pdf object to read PDF files

Reference

The file path must be in the local sandbox path. For file paths, please refer to informat.file

toImages

Use toImages to convert PDF to base64 image array

ParameterTypeDescription
pathStringPDF file path in the sandbox

Return Value base64 file stream

Example

js
informat.pdf.toImages(localPath);

getText

Use getText to get the text content of PDF files

ParameterTypeDescription
pathStringPDF file path in the sandbox

Return Value json

Example

js
informat.pdf.getText(localPath);

Automatically Upload PDF Files and Insert AI Parsed Data into Tables

Please refer to PDF Intelligent Parsing