Page 1 of 1

Preview Document API

Posted: Sun Oct 31, 2021 4:53 pm
by quyenle
Does LogicalDoc provide an api for document preview?

Re: Preview Document API

Posted: Tue Nov 30, 2021 9:50 am
by agaspa
You can use the web-services of the document to work with previews.

The relevant methods are:

Code: Select all

/document/createPdf                                             [Creates the PDF conversion of the given document]
/document/createThumbnail                                [Creates the thumbail of the given document]
/document/getResource                                       [Gets the content of a resource]
/document/thumbnail/{type}/{docpath}          [Gets the thumbnail]
/document/uploadResource                                [Uploads a new resource of the document]

For more information: ... tThumbnail

These methods are also available in the SOAP API

#Note: In the community edition the generation of thumbnails and the preview of documents is only available for some documents.
The commercial editions instead support the preview of a much wider set of formats thanks to the presence of numerous format converters. See the feature matrix comparison