PDF Extract AI is a powerful tool that utilizes machine learning algorithms to extract content from PDF documents. PDFs, or Portable Document Format files, are widely used for storing and sharing various types of documents, including reports, contracts, articles, and forms. However, extracting information from PDFs can be a challenging task due to the complex structure and formatting of these files.

PDF Extract AI addresses this challenge by employing machine learning techniques to understand the structure of a PDF and extract the desired content accurately.

Read more at: https://docs.worqhat.com/ai-models/text-extraction/pdf-extraction

Parameters

ParameterTypeDescriptionDefault
fileobjectAn object representing the PDF file to extract text from. It can be a File object or a URL or base64 encoded image data. This is required.N/A

Initialize AI Modules

const worqhat = require('worqhat');

var config = new worqhat.Configuration({
    apiKey: "your-api-key",
    debug: true,
    max_retries: 3,
});


worqhat.initializeApp(config);

let ai = worqhat.ai();

Implementation

ai.textExtraction.pdf({
    file: "./Sample-Doc.pdf"
}).then((response) => {
    console.log(response);
}).catch((error) => {
    console.log(error);
});