احفظ ملف XLT باسم EMF في NodeJS
API
POST
https://api.aspose.cloud/v3.0/cells/{name}/SaveAs
يعد حفظ تنسيقات الملفات من XLT كـ EMF مهمة معقدة. يتم تنفيذ جميع انتقالات تنسيق XLT إلى EMF بواسطة NodeJS SDK الخاص بنا مع الحفاظ على المحتوى الهيكلي والمنطقي الرئيسي لجدول بيانات XLT المصدر. تعد مكتبة NodeJS الخاصة بنا حلاً احترافيًا لحفظ XLT كملفات EMF عبر الإنترنت. يوفر Cloud SDK لمطوري NodeJS وظائف قوية وإخراج EMF مثاليًا.
مثال على رمز NodeJS لحفظ XLT كـ EMF باستخدام REST API
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/
const { CellsApi, CellsSaveAs_PostDocumentSaveAsRequest } = require("asposecellscloud");
const cellsApi = new CellsApi(process.env.ProductClientId, process.env.ProductClientSecret);
var req = new CellsSaveAs_PostDocumentSaveAsRequest({
name: "Book1.xlt",
folder: "CellsTests",
newfilename: "Book1Saveas.emf",
});
cellsApi.cellsSaveAsPostDocumentSaveAs(req)
.then((result) => {
console.log(result)
});
كيفية حفظ XLT كـ EMF باستخدام مكتبة Cloud NodeJS Cells.
- تسجيل حساب فيلوحة القيادة للحصول على تفاصيل الحصص والترخيص API مجانًا
- قم بتثبيت مكتبة NodeJS وأضف المرجع (استيراد المكتبة) إلى مشروعك.
- افتح الملف المصدر في جافا سكريبت.
- استخدم طريقة `PostWorkbookSaveAs` لاسترداد الدفق الناتج.
متطلبات النظام
- العقدة v6.17.1 أو الأحدث