多网站移动应用用户生成内容允许你上传各种文件图像、PDFs和微软Office文件,如Word、Excel和PowerPoint都是常见上传类型
web或移动开发者可能想构建应用程序,允许用户下载PDFs、支持文档预览或嵌入Office文件图像缩略图然而,实现这些类型能力可能是一项颇具挑战性的任务。
寄存式是一个处理文件管理APIs和不同文件格式转换的主商最近加入Aspe移植文档转换附加.开发者能像图像一样向云文件上传并转换成PDF文档云化程序可转换PDF图像以显示并嵌入网站、Web应用或移动应用开发者可使用云化图像变换能力集匹配变换图像与网站图形设计
云化使用拆分一点后,您可使用API和客户库设置原文件上传云端资源类型
上传参数原生
.并设置文件转换原路反转
参数切换容积
上传时就是这样
下方为多框架代码样本,显示如何上传Word文档并请求使用云化应用转换到PDF
\"sample_document.docx\", \n :resource_type => 'raw', :raw_convert => 'aspose')","codeSnippet":"Cloudinary::Uploader.upload(\"my_file_name.docx\", \n :public_id => \"sample_document.docx\", \n :resource_type => 'raw', :raw_convert => 'aspose')"},{"sdkId":"php","framework":"php","language":"php","displayName":"PHP","packageName":"cloudinary_php","packageVersion":"1.x","packageStatus":"legacy","rawCodeSnippet":"\\Cloudinary\\Uploader::upload(\"my_file_name.docx\", \n array(\n \"public_id\" => \"sample_document.docx\",\n \"resource_type\" => \"raw\",\n \"raw_convert\" => \"aspose\"\n));","codeSnippet":"\\Cloudinary\\Uploader::upload(\"my_file_name.docx\", \n array(\n \"public_id\" => \"sample_document.docx\",\n \"resource_type\" => \"raw\",\n \"raw_convert\" => \"aspose\"\n));"},{"sdkId":"python","framework":"python","language":"python","displayName":"Python","packageName":"cloudinary","packageVersion":"1.x","packageStatus":"","rawCodeSnippet":"cloudinary.uploader.upload(\"my_file_name.docx\",\n public_id = \"sample_document.docx\",\n resource_type = \"raw\",\n raw_convert = \"aspose\")","codeSnippet":"cloudinary.uploader.upload(\"my_file_name.docx\",\n public_id = \"sample_document.docx\",\n resource_type = \"raw\",\n raw_convert = \"aspose\")"},{"sdkId":"nodejs","framework":"nodejs","language":"javascript","displayName":"Node.js","packageName":"cloudinary","packageVersion":"1.x","packageStatus":"","rawCodeSnippet":"cloudinary.uploader.upload(\"my_file_name.docx\", \n function(result) { console.log(result)!{public_id:\\'smledoc.docx\\\\\\n资源类型:\'raw\\\\\\nrob_control:\\\'aste\\\\\n}splayName:cloople\docs.xservations.
加载代码示例
转换完成后,生成PDF图像资源也会创建并存储到您的云型账户中
并发PDF或继续转换成图像举例说,如果Word文档上传为原始文件,并配有公共标识符(上传资源独有标识符)sample_document.docx
内存CDN交付使用下列URL:
https://res.www.aaaalireno.com/demo/raw/upload/sample_document.docx
转换完成后,PDF图像文件可用公共标识与原文档文件名相同sample_document.docx
)交付URL实例如下:
https://res.www.aaaalireno.com/demo/image/upload/sample_document.docx.pdf
注意转换过程与Excel和PowerPoint文件相同
URL以上是云式URL实例,用于访问转换文件快速交付完全优化 适当的缓存设置 通过AkamaiCDN
利用云化各种图像变换能力,你可转换并变换生成PDF云化支持变换,如提取某些页面、重排大小、裁剪、创建缩略图、转换为其他格式PNG、JPG等应用滤波或特效检出云化能力
举个例子,可使用云形生成新创建PDF不同尺寸缩略图视需求而定,您可设置某些维度以适应您的图形设计,如宽度和高度等
200x300PNG缩略图Cloudinary动态图像转换URL创建PDF文档首页
<\/Image>","codeSnippet":"
\n\t
\n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"sample_document.docx.png\").resize(\n fill().width(200).height(300)\n);","codeSnippet":"new CloudinaryImage(\"sample_document.docx.png\").resize(\n fill().width(200).height(300)\n);","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":"
<\/cld-image>","codeSnippet":"
\n\t
\n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"sample_document.docx.png\").resize(\n fill().width(200).height(300)\n);","codeSnippet":"new CloudinaryImage(\"sample_document.docx.png\").resize(\n fill().width(200).height(300)\n);","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":"
<\/cl-transformation> <\/cl-image>","codeSnippet":"
\n\t
\n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"sample_document.docx.png\").resize(\n fill().width(200).height(300)\n);","codeSnippet":"new CloudinaryImage(\"sample_document.docx.png\").resize(\n fill().width(200).height(300)\n);","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('sample_document.docx.png', {width: 200, height: 300, crop: \"fill\"}).toHtml();","codeSnippet":"cloudinary.imageTag('sample_document.docx.png', {width: 200, height: 300, crop: \"fill\"}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"sample_document.docx.png\").image(width=200, height=300, crop=\"fill\")","codeSnippet":"CloudinaryImage(\"sample_document.docx.png\").image(width=200, height=300, crop=\"fill\")","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('sample_document.docx.png'))\n\t->resize(Resize::fill()->width(200)\n->height(300));","codeSnippet":"(new ImageTag('sample_document.docx.png'))\n\t->resize(Resize::fill()->width(200)\n->height(300));","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"sample_document.docx.png\", array(\"width\"=>200, \"height\"=>300, \"crop\"=>\"fill\"))","codeSnippet":"cl_image_tag(\"sample_document.docx.png\", array(\"width\"=>200, \"height\"=>300, \"crop\"=>\"fill\"))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().width(200).height(300).crop(\"fill\")).imageTag(\"sample_document.docx.png\");","codeSnippet":"cloudinary.url().transformation(new Transformation().width(200).height(300).crop(\"fill\")).imageTag(\"sample_document.docx.png\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"sample_document.docx.png\", :width=>200, :height=>300, :crop=>\"fill\")","codeSnippet":"cl_image_tag(\"sample_document.docx.png\", :width=>200, :height=>300, :crop=>\"fill\")","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(200).Height(300).Crop(\"fill\")).BuildImageTag(\"sample_document.docx.png\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(200).Height(300).Crop(\"fill\")).BuildImageTag(\"sample_document.docx.png\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('sample_document.docx.png').transformation(Transformation()\n\t.resize(Resize.fill().width(200)\n.height(300)));","codeSnippet":"cloudinary.image('sample_document.docx.png').transformation(Transformation()\n\t.resize(Resize.fill().width(200)\n.height(300)));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setWidth(200).setHeight(300).setCrop(\"fill\")).generate(\"sample_document.docx.png\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setWidth(200).setHeight(300).setCrop(\"fill\")).generate(\"sample_document.docx.png\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().width(200).height(300).crop(\"fill\")).generate(\"sample_document.docx.png\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation().width(200).height(300).crop(\"fill\")).generate(\"sample_document.docx.png\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('sample_document.docx.png').transformation(Transformation()\n\t.resize(Resize.fill().width(200)\n.height(300)));","codeSnippet":"cloudinary.image('sample_document.docx.png').transformation(Transformation()\n\t.resize(Resize.fill().width(200)\n.height(300)));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"sample_document.docx.png\")\n\t resize(Resize.fill() { width(200)\n height(300) }) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"sample_document.docx.png\")\n\t resize(Resize.fill() { width(200)\n height(300) }) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"sample_document.docx.png\", {width: 200, height: 300, crop: \"fill\"})","codeSnippet":"$.cloudinary.image(\"sample_document.docx.png\", {width: 200, height: 300, crop: \"fill\"})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"sample_document.docx.png\").resize(\n fill().width(200).height(300)\n);","codeSnippet":"new CloudinaryImage(\"sample_document.docx.png\").resize(\n fill().width(200).height(300)\n);","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/w_200,h_300,c_fill\/sample_document.docx.png","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"width":"200","height":"300","crop_mode":"fill"}],"transformation_string":"w_200,h_300,c_fill","url_suffix":"","version":"","secure":true,"public_id":"sample_document.docx.png","extension":"png","format":"png","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
下图二页JPEG缩略图
<\/Image>","codeSnippet":"
\n\t
\n\t
\n\t
\n\t
\n<\/Image>","status":0,"statusText":"Ok","displayName":"React","packageName":"cloudinary-react","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue_2","framework":"vue_2","language":"vue","rawCodeSnippet":"new CloudinaryImage(\"sample_document.docx.jpg\")\n .resize(\n fill()\n .width(200)\n .height(200)\n .gravity(compass(\"north\"))\n )\n .adjust(saturation().level(100))\n .extract(getPage().byNumber(2))\n .adjust(sharpen())\n .border(solid(1, \"#bbb\"))\n .effect(shadow());","codeSnippet":"new CloudinaryImage(\"sample_document.docx.jpg\")\n .resize(\n fill()\n .width(200)\n .height(200)\n .gravity(compass(\"north\"))\n )\n .adjust(saturation().level(100))\n .extract(getPage().byNumber(2))\n .adjust(sharpen())\n .border(solid(1, \"#bbb\"))\n .effect(shadow());","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"@cloudinary\/vue","packageStatus":"","packageVersion":"1.x"},{"sdkId":"vue","framework":"vue","language":"vue","rawCodeSnippet":"
<\/cld-image>","codeSnippet":"
\n\t
\n\t
\n\t
\n\t
\n<\/cld-image>","status":0,"statusText":"Ok","displayName":"Vue.js","packageName":"cloudinary-vue","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"angular_2","framework":"angular_2","language":"angular","rawCodeSnippet":"new CloudinaryImage(\"sample_document.docx.jpg\")\n .resize(\n fill()\n .width(200)\n .height(200)\n .gravity(compass(\"north\"))\n )\n .adjust(saturation().level(100))\n .extract(getPage().byNumber(2))\n .adjust(sharpen())\n .border(solid(1, \"#bbb\"))\n .effect(shadow());","codeSnippet":"new CloudinaryImage(\"sample_document.docx.jpg\")\n .resize(\n fill()\n .width(200)\n .height(200)\n .gravity(compass(\"north\"))\n )\n .adjust(saturation().level(100))\n .extract(getPage().byNumber(2))\n .adjust(sharpen())\n .border(solid(1, \"#bbb\"))\n .effect(shadow());","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/ng","packageStatus":"","packageVersion":"1.x"},{"sdkId":"angular","framework":"angular","language":"angular","rawCodeSnippet":"
<\/cl-transformation>
<\/cl-transformation>
<\/cl-transformation>
<\/cl-transformation> <\/cl-image>","codeSnippet":"
\n\t
\n\t<\/cl-transformation>\n\t
\n\t<\/cl-transformation>\n\t
\n\t<\/cl-transformation>\n\t
\n\t<\/cl-transformation>\n<\/cl-image>","status":0,"statusText":"Ok","displayName":"Angular","packageName":"@cloudinary\/angular-5.x","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"js_2","framework":"js_2","language":"js","rawCodeSnippet":"new CloudinaryImage(\"sample_document.docx.jpg\")\n .resize(\n fill()\n .width(200)\n .height(200)\n .gravity(compass(\"north\"))\n )\n .adjust(saturation().level(100))\n .extract(getPage().byNumber(2))\n .adjust(sharpen())\n .border(solid(1, \"#bbb\"))\n .effect(shadow());","codeSnippet":"new CloudinaryImage(\"sample_document.docx.jpg\")\n .resize(\n fill()\n .width(200)\n .height(200)\n .gravity(compass(\"north\"))\n )\n .adjust(saturation().level(100))\n .extract(getPage().byNumber(2))\n .adjust(sharpen())\n .border(solid(1, \"#bbb\"))\n .effect(shadow());","status":0,"statusText":"Ok","displayName":"JS","packageName":"@cloudinary\/url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"js","framework":"js","language":"js","rawCodeSnippet":"cloudinary.imageTag('sample_document.docx.jpg', {transformation: [ {width: 200, height: 200, gravity: \"north\", page: 2, effect: \"saturation:100\", crop: \"fill\"}, {effect: \"sharpen\"}, {border: \"1px_solid_rgb:bbb\"}, {effect: \"shadow\"} ]}).toHtml();","codeSnippet":"cloudinary.imageTag('sample_document.docx.jpg', {transformation: [\n {width: 200, height: 200, gravity: \"north\", page: 2, effect: \"saturation:100\", crop: \"fill\"},\n {effect: \"sharpen\"},\n {border: \"1px_solid_rgb:bbb\"},\n {effect: \"shadow\"}\n ]}).toHtml();","status":0,"statusText":"Ok","displayName":"JS","packageName":"cloudinary-core","packageStatus":"legacy","packageVersion":"2.x"},{"sdkId":"python","framework":"python","language":"python","rawCodeSnippet":"CloudinaryImage(\"sample_document.docx.jpg\").image(transformation=[ {'width': 200, 'height': 200, 'gravity': \"north\", 'page': 2, 'effect': \"saturation:100\", 'crop': \"fill\"}, {'effect': \"sharpen\"}, {'border': \"1px_solid_rgb:bbb\"}, {'effect': \"shadow\"} ])","codeSnippet":"CloudinaryImage(\"sample_document.docx.jpg\").image(transformation=[\n {'width': 200, 'height': 200, 'gravity': \"north\", 'page': 2, 'effect': \"saturation:100\", 'crop': \"fill\"},\n {'effect': \"sharpen\"},\n {'border': \"1px_solid_rgb:bbb\"},\n {'effect': \"shadow\"}\n ])","status":0,"statusText":"Ok","displayName":"Python","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"php_2","framework":"php_2","language":"php","rawCodeSnippet":"(new ImageTag('sample_document.docx.jpg'))\n\t->resize(Resize::fill()->width(200)\n->height(200)\n\t->gravity(\n\tGravity::compass(\n\tCompass::north()))\n\t)\n\t->adjust(Adjust::saturation()->level(100))\n\t->extract(Extract::getPage()->byNumber(2))\n\t->adjust(Adjust::sharpen())\n\t->border(Border::solid(1,Color::rgb(\"bbb\")))\n\t->effect(Effect::shadow());","codeSnippet":"(new ImageTag('sample_document.docx.jpg'))\n\t->resize(Resize::fill()->width(200)\n->height(200)\n\t->gravity(\n\tGravity::compass(\n\tCompass::north()))\n\t)\n\t->adjust(Adjust::saturation()->level(100))\n\t->extract(Extract::getPage()->byNumber(2))\n\t->adjust(Adjust::sharpen())\n\t->border(Border::solid(1,Color::rgb(\"bbb\")))\n\t->effect(Effect::shadow());","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"","packageVersion":"2.x"},{"sdkId":"php","framework":"php","language":"php","rawCodeSnippet":"cl_image_tag(\"sample_document.docx.jpg\", array(\"transformation\"=>array( array(\"width\"=>200, \"height\"=>200, \"gravity\"=>\"north\", \"page\"=>2, \"effect\"=>\"saturation:100\", \"crop\"=>\"fill\"), array(\"effect\"=>\"sharpen\"), array(\"border\"=>\"1px_solid_rgb:bbb\"), array(\"effect\"=>\"shadow\") )))","codeSnippet":"cl_image_tag(\"sample_document.docx.jpg\", array(\"transformation\"=>array(\n array(\"width\"=>200, \"height\"=>200, \"gravity\"=>\"north\", \"page\"=>2, \"effect\"=>\"saturation:100\", \"crop\"=>\"fill\"),\n array(\"effect\"=>\"sharpen\"),\n array(\"border\"=>\"1px_solid_rgb:bbb\"),\n array(\"effect\"=>\"shadow\")\n )))","status":0,"statusText":"Ok","displayName":"PHP","packageName":"cloudinary_php","packageStatus":"legacy","packageVersion":"1.x"},{"sdkId":"java","framework":"java","language":"java","rawCodeSnippet":"cloudinary.url().transformation(new Transformation().width(200).height(200).gravity(\"north\").page(2).effect(\"saturation:100\").crop(\"fill\").chain() .effect(\"sharpen\").chain() .border(\"1px_solid_rgb:bbb\").chain() .effect(\"shadow\")).imageTag(\"sample_document.docx.jpg\");","codeSnippet":"cloudinary.url().transformation(new Transformation()\n .width(200).height(200).gravity(\"north\").page(2).effect(\"saturation:100\").crop(\"fill\").chain()\n .effect(\"sharpen\").chain()\n .border(\"1px_solid_rgb:bbb\").chain()\n .effect(\"shadow\")).imageTag(\"sample_document.docx.jpg\");","status":0,"statusText":"Ok","displayName":"Java","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"ruby","framework":"ruby","language":"ruby","rawCodeSnippet":"cl_image_tag(\"sample_document.docx.jpg\", :transformation=>[ {:width=>200, :height=>200, :gravity=>\"north\", :page=>2, :effect=>\"saturation:100\", :crop=>\"fill\"}, {:effect=>\"sharpen\"}, {:border=>\"1px_solid_rgb:bbb\"}, {:effect=>\"shadow\"} ])","codeSnippet":"cl_image_tag(\"sample_document.docx.jpg\", :transformation=>[\n {:width=>200, :height=>200, :gravity=>\"north\", :page=>2, :effect=>\"saturation:100\", :crop=>\"fill\"},\n {:effect=>\"sharpen\"},\n {:border=>\"1px_solid_rgb:bbb\"},\n {:effect=>\"shadow\"}\n ])","status":0,"statusText":"Ok","displayName":"Ruby","packageName":"cloudinary","packageStatus":"","packageVersion":"1.x"},{"sdkId":"csharp","framework":"csharp","language":"csharp","rawCodeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation().Width(200).Height(200).Gravity(\"north\").Page(2).Effect(\"saturation:100\").Crop(\"fill\").Chain() .Effect(\"sharpen\").Chain() .Border(\"1px_solid_rgb:bbb\").Chain() .Effect(\"shadow\")).BuildImageTag(\"sample_document.docx.jpg\")","codeSnippet":"cloudinary.Api.UrlImgUp.Transform(new Transformation()\n .Width(200).Height(200).Gravity(\"north\").Page(2).Effect(\"saturation:100\").Crop(\"fill\").Chain()\n .Effect(\"sharpen\").Chain()\n .Border(\"1px_solid_rgb:bbb\").Chain()\n .Effect(\"shadow\")).BuildImageTag(\"sample_document.docx.jpg\")","status":0,"statusText":"Ok","displayName":".NET","packageName":"CloudinaryDotNet","packageStatus":"","packageVersion":"1.x"},{"sdkId":"dart","framework":"dart","language":"dart","rawCodeSnippet":"cloudinary.image('sample_document.docx.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(200)\n.height(200)\n\t.gravity(\n\tGravity.compass(\n\tCompass.north()))\n\t)\n\t.adjust(Adjust.saturation().level(100))\n\t.extract(Extract.getPage().byNumber(2))\n\t.adjust(Adjust.sharpen())\n\t.border(Border.solid(1,Color.rgb(\"bbb\")))\n\t.effect(Effect.shadow()));","codeSnippet":"cloudinary.image('sample_document.docx.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(200)\n.height(200)\n\t.gravity(\n\tGravity.compass(\n\tCompass.north()))\n\t)\n\t.adjust(Adjust.saturation().level(100))\n\t.extract(Extract.getPage().byNumber(2))\n\t.adjust(Adjust.sharpen())\n\t.border(Border.solid(1,Color.rgb(\"bbb\")))\n\t.effect(Effect.shadow()));","status":0,"statusText":"Ok","displayName":"Dart","packageName":"cloudinary_dart","packageStatus":"","packageVersion":"0.x"},{"sdkId":"swift","framework":"swift","language":"swift","rawCodeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation().setWidth(200).setHeight(200).setGravity(\"north\").setPage(2).setEffect(\"saturation:100\").setCrop(\"fill\").chain() .setEffect(\"sharpen\").chain() .setBorder(\"1px_solid_rgb:bbb\").chain() .setEffect(\"shadow\")).generate(\"sample_document.docx.jpg\")!, cloudinary: cloudinary)","codeSnippet":"imageView.cldSetImage(cloudinary.createUrl().setTransformation(CLDTransformation()\n .setWidth(200).setHeight(200).setGravity(\"north\").setPage(2).setEffect(\"saturation:100\").setCrop(\"fill\").chain()\n .setEffect(\"sharpen\").chain()\n .setBorder(\"1px_solid_rgb:bbb\").chain()\n .setEffect(\"shadow\")).generate(\"sample_document.docx.jpg\")!, cloudinary: cloudinary)","status":0,"statusText":"Ok","displayName":"iOS","packageName":"cloudinary","packageStatus":"","packageVersion":"3.x"},{"sdkId":"android","framework":"android","language":"android","rawCodeSnippet":"MediaManager.get().url().transformation(new Transformation().width(200).height(200).gravity(\"north\").page(2).effect(\"saturation:100\").crop(\"fill\").chain() .effect(\"sharpen\").chain() .border(\"1px_solid_rgb:bbb\").chain() .effect(\"shadow\")).generate(\"sample_document.docx.jpg\");","codeSnippet":"MediaManager.get().url().transformation(new Transformation()\n .width(200).height(200).gravity(\"north\").page(2).effect(\"saturation:100\").crop(\"fill\").chain()\n .effect(\"sharpen\").chain()\n .border(\"1px_solid_rgb:bbb\").chain()\n .effect(\"shadow\")).generate(\"sample_document.docx.jpg\");","status":0,"statusText":"Ok","displayName":"Android","packageName":"cloudinary-android","packageStatus":"","packageVersion":"1.x"},{"sdkId":"flutter","framework":"flutter","language":"flutter","rawCodeSnippet":"cloudinary.image('sample_document.docx.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(200)\n.height(200)\n\t.gravity(\n\tGravity.compass(\n\tCompass.north()))\n\t)\n\t.adjust(Adjust.saturation().level(100))\n\t.extract(Extract.getPage().byNumber(2))\n\t.adjust(Adjust.sharpen())\n\t.border(Border.solid(1,Color.rgb(\"bbb\")))\n\t.effect(Effect.shadow()));","codeSnippet":"cloudinary.image('sample_document.docx.jpg').transformation(Transformation()\n\t.resize(Resize.fill().width(200)\n.height(200)\n\t.gravity(\n\tGravity.compass(\n\tCompass.north()))\n\t)\n\t.adjust(Adjust.saturation().level(100))\n\t.extract(Extract.getPage().byNumber(2))\n\t.adjust(Adjust.sharpen())\n\t.border(Border.solid(1,Color.rgb(\"bbb\")))\n\t.effect(Effect.shadow()));","status":0,"statusText":"Ok","displayName":"Flutter","packageName":"cloudinary_flutter","packageStatus":"","packageVersion":"0.x"},{"sdkId":"kotlin","framework":"kotlin","language":"kotlin","rawCodeSnippet":"cloudinary.image {\n\tpublicId(\"sample_document.docx.jpg\")\n\t resize(Resize.fill() { width(200)\n height(200)\n\t gravity(\n\tGravity.compass(\n\tCompass.north()))\n\t })\n\t adjust(Adjust.saturation() { level(100) })\n\t extract(Extract.getPage() { byNumber(2) })\n\t adjust(Adjust.sharpen())\n\t border(Border.solid(1,Color.rgb(\"bbb\")))\n\t effect(Effect.shadow()) \n}.generate()","codeSnippet":"cloudinary.image {\n\tpublicId(\"sample_document.docx.jpg\")\n\t resize(Resize.fill() { width(200)\n height(200)\n\t gravity(\n\tGravity.compass(\n\tCompass.north()))\n\t })\n\t adjust(Adjust.saturation() { level(100) })\n\t extract(Extract.getPage() { byNumber(2) })\n\t adjust(Adjust.sharpen())\n\t border(Border.solid(1,Color.rgb(\"bbb\")))\n\t effect(Effect.shadow()) \n}.generate()","status":0,"statusText":"Ok","displayName":"Kotlin","packageName":"kotlin-url-gen","packageStatus":"","packageVersion":"1.x"},{"sdkId":"jquery","framework":"jquery","language":"jquery","rawCodeSnippet":"$.cloudinary.image(\"sample_document.docx.jpg\", {transformation: [ {width: 200, height: 200, gravity: \"north\", page: 2, effect: \"saturation:100\", crop: \"fill\"}, {effect: \"sharpen\"}, {border: \"1px_solid_rgb:bbb\"}, {effect: \"shadow\"} ]})","codeSnippet":"$.cloudinary.image(\"sample_document.docx.jpg\", {transformation: [\n {width: 200, height: 200, gravity: \"north\", page: 2, effect: \"saturation:100\", crop: \"fill\"},\n {effect: \"sharpen\"},\n {border: \"1px_solid_rgb:bbb\"},\n {effect: \"shadow\"}\n ]})","status":0,"statusText":"Ok","displayName":"jQuery","packageName":"cloudinary-jquery","packageStatus":"","packageVersion":"2.x"},{"sdkId":"react_native","framework":"react_native","language":"react_native","rawCodeSnippet":"new CloudinaryImage(\"sample_document.docx.jpg\")\n .resize(\n fill()\n .width(200)\n .height(200)\n .gravity(compass(\"north\"))\n )\n .adjust(saturation().level(100))\n .extract(getPage().byNumber(2))\n .adjust(sharpen())\n .border(solid(1, \"#bbb\"))\n .effect(shadow());","codeSnippet":"new CloudinaryImage(\"sample_document.docx.jpg\")\n .resize(\n fill()\n .width(200)\n .height(200)\n .gravity(compass(\"north\"))\n )\n .adjust(saturation().level(100))\n .extract(getPage().byNumber(2))\n .adjust(sharpen())\n .border(solid(1, \"#bbb\"))\n .effect(shadow());","status":0,"statusText":"Ok","displayName":"React Native","packageName":"cloudinary-react-native","packageStatus":"","packageVersion":"0.x"}]" parsed-url="{"url":"https:\/\/res.www.aaaalireno.com\/demo\/image\/upload\/w_200,h_200,c_fill,g_north,pg_2,e_saturation:100\/e_sharpen\/bo_1px_solid_rgb:bbb\/e_shadow\/sample_document.docx.jpg","cloud_name":"demo","host":"res.www.aaaalireno.com","type":"upload","resource_type":"image","transformation":[{"width":"200","height":"200","crop_mode":"fill","gravity":"north","page":"2","effect":"saturation:100"},{"effect":"sharpen"},{"border":"1px_solid_rgb:bbb"},{"effect":"shadow"}],"transformation_string":"w_200,h_200,c_fill,g_north,pg_2,e_saturation:100\/e_sharpen\/bo_1px_solid_rgb:bbb\/e_shadow","url_suffix":"","version":"","secure":true,"public_id":"sample_document.docx.jpg","extension":"jpg","format":"jpg","format_code":true,"signature":"","private_cdn":false,"result_asset_type":"image"}" with-url="true" >
加载代码示例
深入了解云化图像变换能力.
云化文档转换附加异步转换MS Office文档表示文档上传云化后API完全化后 Aspe可完成转换可花几分钟视文件大小和内容而定自转换运行后台后台后台, 完成后可能需要通知 。Cloudinary有[背景通知和Webhoks机制]//www.aaaalireno.com/blog/webhooks_upload_notifications_and_background_image_processing)发送HTTPPST请求通知URL
查看文档了解更多细节如何使用Aspead附加.
开发者可用云化应用用户上传图像和文档并发添加加载很容易从Office文档生成缩略图嵌入式输入网络或移动应用应用附加程序可用所有云式图解,包括免费级图可登录测试免费加载计划.
不使用云式YET签名免费云式账号.