Webservice: Conversion

document conversion [Commercial editions only]

Index Method Request(s) Response Description
1 convertDocumentToPdf sid
docId
fileVersion
converts the document to PDF and saves the conversion as document's resource(suffix 'conversion.pdf' ); if the conversion was already created, nothing happens
2 convertDocumentAndSave sid
docId
fileVersion
format
docId converts an existing document and stores the generated conversion in LogicalDOC
3 convertFile sid
fileName
format
fileContent
conversion converts a given file and downloads the generated conversion
4 convertDocument sid
docId
fileVersion
format
conversion converts an existing document and downloads the generated conversion

Method #1: convertDocumentToPdf

converts the document to PDF and saves the conversion as document's resource(suffix 'conversion.pdf' ); if the conversion was already created, nothing happens

Request

Name Type Required Multiple Description
     sid
String Y
     docId
Long Y
     fileVersion
String the specific file version

Method #2: convertDocumentAndSave

converts an existing document and stores the generated conversion in LogicalDOC

Request

Name Type Required Multiple Description
     sid
String Y
     docId
Long Y
     fileVersion
String Y
     format
String Y output format, eg: pdf, csv, xls ...

Response

Name Type Required Multiple Description
     docId
Long Y

Method #3: convertFile

converts a given file and downloads the generated conversion

Request

Name Type Required Multiple Description
     sid
String Y
     fileName
String Y name of the source file
     format
String Y output format, eg: pdf, csv, xls ...
     fileContent
DataHandler Y the raw content of the file

Response

Name Type Required Multiple Description
     conversion
DataHandler Y

Method #4: convertDocument

converts an existing document and downloads the generated conversion

Request

Name Type Required Multiple Description
     sid
String Y
     docId
Long Y
     fileVersion
String Y
     format
String Y output format, eg: pdf, csv, xls ...

Response

Name Type Required Multiple Description
     conversion
DataHandler Y