PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Layout analysis is the process of leveraging Artificial Intelligence (AI) technology to parse and understand the structure of a document's layout. Its primary goal is to extract text, images, tables, layers, and other data from the input documents.
Layout analysis has several common use cases, including:
Features that support Layout Analysis:
LibraryManager::initialize($resourcePath). Make sure resource/models/documentai.model is present in the package.This Sample demonstrates how to use Layout Analysis to convert a PDF to a DOCX file.
$option = new ConvertOption();
// Enable layout analysis option.
$option->enableAiLayout = true;
Conversion::convert('Word', 'word.pdf', 'password', 'output.docx', $option);