Docmosis API 4.5.0

com.docmosis.document
Class DocumentRenderResult

java.lang.Object
  extended bycom.docmosis.document.DocumentRenderResult

public class DocumentRenderResult
extends Object

The results of a document render


Constructor Summary
DocumentRenderResult(long length, int documentpageCount, boolean errorsDetectedInDocument)
           
 
Method Summary
 int getDocumentPageCount()
          Get the page count of the document(s) rendered.
 long getLength()
          Get the length of the resulting document (in bytes)
 boolean isErrorsDetectedInDocument()
          Determine whether errors exist in the rendered document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentRenderResult

public DocumentRenderResult(long length,
                            int documentpageCount,
                            boolean errorsDetectedInDocument)
Method Detail

getLength

public long getLength()
Get the length of the resulting document (in bytes)

Returns:
the number of bytes

getDocumentPageCount

public int getDocumentPageCount()
Get the page count of the document(s) rendered. If the result is a zip file of multiple documents, then all documents are assumed to be different formats of the same file, so the number represents the number of pages of each document.

Returns:
the page count of the document

isErrorsDetectedInDocument

public boolean isErrorsDetectedInDocument()
Determine whether errors exist in the rendered document. This applies when rendering in "dev mode" and a document can be produced showing errors.


Docmosis API 4.5.0

Copyright © 2014 Docmosis Pty Ltd. All Rights Reserved.