transDocPreviewDstType function
Implementation
String transDocPreviewDstType(DocPreviewDstType dt) {
switch (dt) {
case DocPreviewDstType.docPreviewDstTypePdf:
return 'pdf';
case DocPreviewDstType.docPreviewDstTypeHtml:
return 'html';
case DocPreviewDstType.docPreviewDstTypePng:
return 'png';
case DocPreviewDstType.docPreviewDstTypeJpg:
return 'jpg';
}
}