public class Result extends Object
The Result class represents the result of a PDFreactor conversion.
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getDocument()
Returns the converted PDF or image.
|
byte[][] |
getDocumentArray()
Returns the converted multi-page image, only if
Configuration#setMultiPage(Boolean) was set to true
and Configuration#setOutputFormat(Configuration.Output) was set to an image format,
otherwise it returns null. |
ExceedingContent[] |
getExceedingContents()
Provides information about content exceeding its page or parent.
|
Log |
getLog()
Returns the
Log of the conversion. |
int |
getNumberOfPages()
Returns the number of pages of the laid out input document after conversion.
|
int |
getNumberOfPagesLiteral()
Returns the number of pages of the resulting PDF.
|
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 OutputStream via the PDFreactor.convert(Configuration, OutputStream)s
method, this returns null.
public byte[][] getDocumentArray()
Returns the converted multi-page image, only if Configuration#setMultiPage(Boolean) was set to true
and Configuration#setOutputFormat(Configuration.Output) was set to an image format,
otherwise it returns null.
public int getNumberOfPages()
Returns the number of pages of the laid out input document after conversion.
public int getNumberOfPagesLiteral()
Returns the number of pages of the resulting PDF. Contrary to Result.getNumberOfPages(),
this method takes merge operations into account and returns the literal number of pages of the resulting PDF.
public Log getLog()
Returns the Log of the conversion. The log only has content if an appropriate PDFreactor.LogLevel was
set.
public ExceedingContent[] getExceedingContents()
Provides information about content exceeding its page or parent.
Depends on the mode set via Configuration.setLogExceedingContent(Configuration.LogExceedingContent).
ExceedingContent objects
or null if the logging of exceeding content was not enabled .This doc was generated on 2017-05-17. Copyright © 2002-2017 RealObjects GmbH. All Rights Reserved.