History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
cos:GetObject and cos:HeadObject permissions in the action of the Authorization Policy. For all APIs supported by COS, see COS action.GET /<ObjectKey>?ci-process=doc-preview&dstType=html HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
Name | Description | Type | Required |
ObjectKey | Name of the object file, for example folder/document.pdf | String | Yes |
ci-process | The processing capability of Cloud Infinite; HTML document preview is fixed as doc-preview. | String | Yes |
dstType | Output type of the target file. HTML document preview is fixed as html (must be lowercase). | String | Yes |
srcType | Enter the type of the target file. For supported file types and limitations, see below Notes section | String | No |
sign | Signature for object download. If the object to be previewed has private read permission, a signature is required. For details, see Request Signature. Note: URL encoding is required. | String | No |
copyable | Whether it can be copied. The default is copyable: <1> indicates copyable; <0> indicates not copyable. | String | No |
htmlwaterword | String | No | |
htmlfillstyle | Watermark RGBA (color and transparency) requires URL-safe Base64 encoding. Default: rgba(192,192,192,0.6). | String | No |
htmlfront | String | No | |
htmlrotate | Rotation angle of the watermark text, 0 - 360, default 315 degrees | String | No |
htmlhorizontal | Horizontal spacing of the watermark text, unit: px, default: 50 | String | No |
htmlvertical | Vertical spacing of the watermark text, unit: px, default: 100 | String | No |
https://examples-1258125638.cos.ap-guangzhou.myqcloud.com/test.pptx?ci-process=doc-preview&dstType=html
https://examples-1258125638.cos.ap-guangzhou.myqcloud.com/test.pptx?ci-process=doc-preview&dstType=html©able=0&htmlwaterword=dGVzdAog&htmlParams=eyJtb2RlIjoibm9ybWFsIiwiY29tbW9uT3B0aW9ucyI6eyJpc1Nob3dIZWFkZXIiOmZhbHNlLCJpc1Nob3dUb3BBcmVhIjp0cnVlfSwicHB0T3B0aW9ucyI6eyJpc1NsaWRlc1N0YXR1c1BsYXkiOiB0cnVlfX0=
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport"content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0,user-scalable=no"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"><meta name="keywords" content="COS,document preview"><meta name="description" content=""><title>Tencent Cloud - COS - Document Preview</title><style>html,body {padding: 0;margin: 0;height: 100%;touch-action: manipulation;}</style></head><body><iframe src="https://examples-1258125638.cos.ap-guangzhou.myqcloud.com/test.pptx?ci-process=doc-preview&dstType=html©able=0&htmlwaterword=dGVzdAog&htmlParams=eyJtb2RlIjoibm9ybWFsIiwiY29tbW9uT3B0aW9ucyI6eyJpc1Nob3dIZWFkZXIiOmZhbHNlLCJpc1Nob3dUb3BBcmVhIjp0cnVlfSwicHB0T3B0aW9ucyI6eyJpc1NsaWRlc1N0YXR1c1BsYXkiOiB0cnVlfX0=" width="100%" height="100%" allowFullScreen="true"></iframe></body></html>
https://examples-1258125638.cos.ap-guangzhou.myqcloud.com/test.pptx?ci-process=doc-preview&dstType=html&htmlParams=eyJjb21tb25PcHRpb25zIjp7Imxhbmd1YWdlIjoiZW4ifX0
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários