ExtractStructuredDocument

Text, extraction, structured data

תיאור

Extracts a page range into one JSON document, one XHTML document, or a sequence of detected CSV tables

תחביר

Delphi

Function TPDFlib.ExtractStructuredDocument(Const PageRange: WideString;
  Format, Options: Integer): WideString;

ActiveX

Function PDFlib::ExtractStructuredDocument(PageRange As String,
  Format As Long, Options As Long) As String

DLL

const wchar_t* DLExtractStructuredDocument(int InstanceID,
  const wchar_t* PageRange, int Format, int Options);
const char* DLExtractStructuredDocumentA(int InstanceID,
  const char* PageRange, int Format, int Options);

פרמטרים

PageRangeA one-based page range such as 1-3,7, or an empty string for every page
FormatPDF_STRUCTURED_TEXT_JSON (0), PDF_STRUCTURED_TEXT_XHTML (1) או PDF_STRUCTURED_TEXT_CSV (2)
OptionsZero or PDF_STRUCTURED_TEXT_INCLUDE_STYLES (1)

ערכי החזרה

JSON contains a versioned pages array and XHTML contains one semantic section per selected pageCSV contains only detected tables and is empty when no selected page has one

An invalid range, format, or option and any extraction failure return an empty string

הערות

רק מודל הטקסט של העמוד הנוכחי נשמר בזמן הרכבת הפלט, ולכן זיכרון החילוץ עבור גיאומטריה והיררכיה עוקב אחר העמוד הנבחר המורכב ביותר ולא אחר מספר עמודי המסמך

העמוד הנבחר משוחזר לפני שהקריאה מחזירהההתקדמות והביטול המשותף משתמשים במחזור החיים הרגיל של פעולות מסמך

LastErrorCode is 111 for invalid input and 515 when extraction fails

ראה גם

ExtractStructuredPage, ExtractPageRangeText