Class: PDFAOptions

PDFNet.PDFACompliance. PDFAOptions


new PDFAOptions(level)

Options for PDFNet.PDFACompliance.createFromFileWithOptions and PDFNet.PDFACompliance.createFromBufferWithOptions
Parameters:
Name Type Description
level number
PDFNet.PDFACompliance.Conformance = {
  e_Level1A : 1,
  e_Level1B : 2,
  e_Level2A : 3,
  e_Level2B : 4,
  e_Level2U : 5,
  e_Level3A : 6,
  e_Level3B : 7,
  e_Level3U : 8,
  e_Level4 : 9,
  e_Level4E : 10,
  e_Level4F : 11
}
The PDF conformance level defined in PDFNet.PDFACompliance.Conformance.

Methods


getConformance()

Gets the value Conformance from the options object The PDF/A conformance level.
Returns:
the current value for Conformance.
Type
number

getDPI()

Gets the value DPI from the options object DPI used for flattening.
Returns:
the current value for DPI.
Type
number

getFirstStop()

Gets the value FirstStop from the options object Whether to stop processing after the first PDF/A error is detected.
Returns:
the current value for FirstStop.
Type
boolean

getFlattenTransparency()

Gets the value FlattenTransparency from the options object Whether to flatten transparency in PDF/A-1 mode.
Returns:
the current value for FlattenTransparency.
Type
boolean

getMaxRefObjs()

Gets the value MaxRefObjs from the options object The maximum number of object references per error condition.
Returns:
the current value for MaxRefObjs.
Type
number

getPassword()

Gets the value Password from the options object The password to be used for encrypted PDF documents.
Returns:
the current value for Password.
Type
string

setConformance(value)

Sets the value for Conformance in the options object The PDF/A conformance level.
Parameters:
Name Type Description
value number the new value for Conformance
Returns:
this object, for call chaining
Type
PDFNet.PDFACompliance.PDFAOptions

setDPI(value)

Sets the value for DPI in the options object DPI used for flattening.
Parameters:
Name Type Description
value number the new value for DPI
Returns:
this object, for call chaining
Type
PDFNet.PDFACompliance.PDFAOptions

setFirstStop(value)

Sets the value for FirstStop in the options object Whether to stop processing after the first PDF/A error is detected.
Parameters:
Name Type Description
value boolean the new value for FirstStop
Returns:
this object, for call chaining
Type
PDFNet.PDFACompliance.PDFAOptions

setFlattenTransparency(value)

Sets the value for FlattenTransparency in the options object Whether to flatten transparency in PDF/A-1 mode.
Parameters:
Name Type Description
value boolean the new value for FlattenTransparency
Returns:
this object, for call chaining
Type
PDFNet.PDFACompliance.PDFAOptions

setMaxRefObjs(value)

Sets the value for MaxRefObjs in the options object The maximum number of object references per error condition.
Parameters:
Name Type Description
value number the new value for MaxRefObjs
Returns:
this object, for call chaining
Type
PDFNet.PDFACompliance.PDFAOptions

setPassword(value)

Sets the value for Password in the options object The password to be used for encrypted PDF documents.
Parameters:
Name Type Description
value string the new value for Password
Returns:
this object, for call chaining
Type
PDFNet.PDFACompliance.PDFAOptions