new PDFUAConformance()
The class PDFUAConformance.
PDFUAConformance class is used to process PDF documents for PDF/UA (ISO 14289-1) compliance,
including converting existing PDF files to PDF/UA compliant documents.
Note: This feature is currently experimental and subject to change.
Extends
Classes
Members
-
<static> Level
-
Type:
- number
Properties:
Name Type Description e_UA_Level1
number
Methods
-
<static> create()
-
Constructor
Returns:
A promise that resolves to an object of type: "PDFNet.PDFUAConformance"- Type
- Promise.<PDFNet.PDFUAConformance>
-
<static> createPDFUAOptions()
-
Method to create a PDFUAOptions object
Returns:
A promise that resolves to a PDFNet.PDFUAConformance.PDFUAOptions.- Type
- Promise.<PDFNet.PDFUAConformance.PDFUAOptions>
-
autoConvert(src_file, dest_file [, in_options])
-
Converts the input pdf to PDF/UA, will auto-gen required structure analysis JSON, requires DataExtractionModule (with Doc Structure engine) to be properly configured.
Parameters:
Name Type Argument Description src_file
string The path to the PDF file to convert. dest_file
string The path to output the converted file. in_options
PDFNet.PDFUAConformance.PDFUAOptions <optional>
The options to use when converting/validating, see PDFUAOptions for details. Note: This function is experimental and is subject to change. Returns:
- Type
- Promise.<void>
-
destroy()
-
Destructor
- Inherited From:
Returns:
- Type
- Promise.<void>
-
takeOwnership()
-
Take the ownership of this object, so that PDFNet.runWithCleanup won't destroy this object.
- Inherited From:
Returns:
- Type
- void