Show: | |||||||||||||||||||||||||||||||||||||||||||||
ConvertController
Signature
global with sharing class ConvertController
ConvertController Methods
convert(data)
Convenient method that converts a DocConfig and returns the ContentVersionId or AttachmentId
Signature
webService static String convert(ConvertDataModel data)
Parameters
data
Type:
ConvertDataModel
ConvertDataModel instance to use
Returns
ContentVersionId or AttachmentId (dependent on Delivery Type on DocConfig)
See
Example
convertAura(data)
Signature
@AuraEnabled
global static String convertAura(ConvertDataModel data)
convertToDocx(docConfigId, objectId)
Signature
webService static String convertToDocx(Id docConfigId, Id objectId)
Deprecated
use cadmus_core.ConvertController.convertWithWrapper(data)
convertToDocxAura(docConfigId, objectId)
Signature
@AuraEnabled
global static String convertToDocxAura(Id docConfigId, Id objectId)
convertToPdf(docConfigId, objectId)
Signature
webService static String convertToPdf(Id docConfigId, Id objectId)
Deprecated
use cadmus_core.ConvertController.convertWithWrapper(data)
convertToPdfAura(docConfigId, objectId)
Signature
@AuraEnabled
global static String convertToPdfAura(Id docConfigId, Id objectId)
Deprecated
use cadmus_core.ConvertController.convertWithWrapper(data)
convertWithWrapper(data)
Convert DocConfig or Pack defined in the ConvertDataModel
Signature
webService static DocGenerationWrapper convertWithWrapper(ConvertDataModel data)
Parameters
data
Type:
ConvertDataModel
ConvertDataModel instance to use
Returns
DocGenerationWrapper
See
Example
ConvertController.ConvertDataModel
Class to capture all required convert data
Signature
global with sharing class ConvertDataModel
Example
ConvertController.ConvertDataModel Properties
|
|||||||||||||||||||||||||||||||||||||||||||||