Generating documents with the Java API
Use the Java™ API
to generate documents remotely or locally.
- Publishing a document locally
The document is generated locally by using the lib files copied into the project. The publishSynch method publishes the document asynchronously. The document generation is finished when this method returns. The second argument specifies the limit to the query results, similar to the Preview query limit preference from the user interface. Use 0 for a full document generation. - Publishing a document remotely
The document is generated remotely by using the lib files copied into the project. The publishSynch method publishes the document asynchronously. The document generation is finished when this method returns. The second argument specifies the limit to the query results, similar to the Preview query results limit preference from the user interface. Use 0 for a full document generation. - Verifying document generation success
The publishSync method returns only when the remote document generation completes, whether the generation is successful or not. When that method returns, you can check the result code to determine the status. Another verification option way is to use the publish method which is asynchnorous. Then, in the client thread, you can wait until the thread is finished and check the status by using the getStatus method of the generator.
Feedback