قم بتصدير كائن PICTURE إلى ملف بتنسيق GIF باستخدام Cells Cloud SDK لـ Ruby
API
POST
https://api.aspose.cloud/v3.0/cells/export
يعد تصدير كائن PICTURE إلى ملف GIF من ملف Excel مهمة معقدة. يتم تنفيذ عمليات تصدير الصور إلى تنسيق GIF بواسطة Ruby SDK الخاص بنا مع الحفاظ على المحتوى الهيكلي والمنطقي الرئيسي لجدول بيانات PICTURE المصدر. تعد مكتبة Ruby الخاصة بنا حلاً احترافيًا لتصدير كائنات PICTURE إلى ملفات بتنسيق GIF عبر الإنترنت. يوفر Cloud SDK لمطوري Ruby وظائف قوية ومخرجات GIF مثالية.
مثال على التعليمات البرمجية في روبي باستخدام REST API لتصدير الصورة إلى تنسيق GIF من جدول البيانات
# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/
describe 'cells_save_as_post_document_save_as test' do
it "should work" do
@instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,"v3.0","https://api.aspose.cloud/")
files = {}
name = $DataSourceXlsx
files[name] = ::File.open(File.expand_path("data/"+name),"r")
name =$AssemblyTestXlsx
files[name] = ::File.open(File.expand_path("data/"+name),"r")
format = 'gif'
objectType = 'picture'
result = @instance.post_export(files ,objectType ,format)
end
end
كيفية استخدام Cells Cloud SDK لروبي لتصدير الكائنات من Excel PICTURE إلى GIF
- تسجيل حساب فيلوحة القيادة للحصول على تفاصيل الحصص والترخيص API مجانًا
- قم بتهيئة Cells API باستخدام معرف العميل وسر العميل وعنوان URL الأساسي وإصدار API.
- قم باستدعاء طريقة post_export للحصول على الدفق الناتج
متطلبات النظام
- روبي 2.5 أو أحدث