Class Result
The Result class represents the result of a PDFreactor conversion.
- 
Method Summary
Modifier and TypeMethodDescriptionProvides a log about all URL connections attempted by PDFreactor, including information about HTTP request and result, should the connection be an HTTP or HTTPS connection.Returns the name of the conversion if it was specified viaConfiguration.setConversionName(String).byte[]Returns the converted PDF or image.byte[][]Returns the converted multi-page image, only ifConfiguration.OutputFormat.setMultiImage(Boolean)was set totrueandConfiguration.setOutputFormat(com.realobjects.pdfreactor.Configuration.OutputFormat)was set to an image format, otherwise it returnsnull.Provides information about content exceeding its page or parent.Returns data that has been exported from document JavaScript viaro.exportsif set,nullotherwise.getLog()Returns theLogof the conversion.Provides information about resources that could not be loaded during the conversion.intReturns the number of pages of the laid out input document after conversion.intReturns the number of pages of the resulting PDF. 
- 
Method Details
- 
getDocument
public byte[] getDocument()Returns the converted PDF or image.
If the conversion was not successful or if the resulting PDF or image has been written directly into an
OutputStreamvia thePDFreactor.convert(Configuration, OutputStream)method, this returnsnull. - 
getDocumentArray
public byte[][] getDocumentArray()Returns the converted multi-page image, only if
Configuration.OutputFormat.setMultiImage(Boolean)was set totrueandConfiguration.setOutputFormat(com.realobjects.pdfreactor.Configuration.OutputFormat)was set to an image format, otherwise it returnsnull. - 
getNumberOfPages
public int getNumberOfPages()Returns the number of pages of the laid out input document after conversion.
 - 
getNumberOfPagesLiteral
public int getNumberOfPagesLiteral()Returns the number of pages of the resulting PDF. Contrary to
getNumberOfPages(), this method takes merge operations into account and returns the literal number of pages of the resulting PDF. - 
getLog
Returns the
Logof the conversion. The log only has content if an appropriateConfiguration.LogLevelwas set. - 
getExceedingContents
Provides information about content exceeding its page or parent. Depends on the mode set via
Configuration.setContentObserver(Configuration.ContentObserver).- Returns:
 - An array of 
ExceedingContentobjects ornullif the logging of exceeding content was not enabled or no content exceeded its page or parent. 
 - 
getMissingResources
Provides information about resources that could not be loaded during the conversion. Depends on the mode set via
Configuration.setContentObserver(Configuration.ContentObserver).- Returns:
 - An array of 
MissingResourceobjects ornullif the logging of missing resources was not enabled or no resources were missing. 
 - 
getConnections
Provides a log about all URL connections attempted by PDFreactor, including information about HTTP request and result, should the connection be an HTTP or HTTPS connection. Depends on the mode set via
Configuration.setContentObserver(Configuration.ContentObserver).- Returns:
 - An array of 
Connectionobjects ornullif the logging of connections was not enabled or no connections were attempted. 
 - 
getConversionName
Returns the name of the conversion if it was specified via
Configuration.setConversionName(String). - 
getJavaScriptExports
Returns data that has been exported from document JavaScript via
ro.exportsif set,nullotherwise. If the JavaScript data is not a string, it will be converted to JSON. If the data can't be converted, a generic string representation is used ornullif none is available. 
 -