EPUB Optimization API का उपयोग करके Node.js में EPUB प्रोसेसिंग सॉफ़्टवेयर विकसित करें। यह शक्तिशाली Node.js समाधान आपको आसानी से EPUB फ़ाइलों के आकार को अनुकूलित और कम करने में मदद करता है। ऑनलाइन EPUB कंप्रेसिंग क्षमताओं का निःशुल्क परीक्षण करें!
हम वर्तमान में DOCX फ़ाइलों को इनपुट के रूप में स्वीकार नहीं करते हैं। लेकिन हम DOCX फाइलों को एक आउटपुट के रूप में तैयार कर सकते हैं। हम निकट भविष्य में पूर्ण DOCX समर्थन की आशा करते हैं।
JavaScript पुस्तकालय एक अकेला समाधान है और इसके लिए किसी तृतीय पक्ष सॉफ़्टवेयर को स्थापित करने की आवश्यकता नहीं है।
DOCX फ़ाइलों को गुणवत्ता की हानि के बिना छोटा करें। JavaScript लाइब्रेरी डेवलपर्स को DOCX सामग्री को अनुकूलित करने के लिए एक एकीकृत API प्रदान करती है। DOCX ऑप्टिमाइज़ेशन DOCX फ़ाइलों के अंदर छवियों को संपीड़ित करने के साथ-साथ अप्रयुक्त डेटा को हटाकर होता है।
ईबुक दोषरहित संपीड़न और सामग्री अनुकूलन 'Aspose.Words for Node.js via .NET' साथ आसान बना दिया। निम्न उदाहरण दर्शाता है कि JavaScript में DOCX फ़ाइल की सामग्री को कैसे अनुकूलित किया जाए:
npm install @aspose/words
प्रतिलिपि
const aw = require('@aspose/words');
var doc = new aw.Document("Input.docx");
doc.cleanup();
var shapes = doc.getChildNodes(aw.NodeType.Shape, true)
for (var shape of shapes) {
if (shape.hasImage()) {
// छवि संपीड़न के लिए लाइब्रेरी चुनना डेवलपर पर निर्भर है ।.
const imageData = shape.getImageData().toStream();
// ...
// छवि को संपीड़ित करें और इसे वापस आकार में सेट करें ।.
shape.getImageData().setImage(compressedImageBuffer);
}
}
doc.save("Output.epub")
const aw = require('@aspose/words');
var doc = new aw.Document("Input.docx");
doc.cleanup();
var shapes = doc.getChildNodes(aw.NodeType.Shape, true)
for (var shape of shapes) {
if (shape.hasImage()) {
// छवि संपीड़न के लिए लाइब्रेरी चुनना डेवलपर पर निर्भर है ।.
const imageData = shape.getImageData().toStream();
// ...
// छवि को संपीड़ित करें और इसे वापस आकार में सेट करें ।.
shape.getImageData().setImage(compressedImageBuffer);
}
}
var saveOptions = new aw.Saving.PdfSaveOptions()
saveOptions.cacheBackgroundGraphics = true
doc.save("Output.epub", saveOptions)
const aw = require('@aspose/words');
var doc = new aw.Document("Input.docx");
doc.cleanup();
var shapes = doc.getChildNodes(aw.NodeType.Shape, true)
for (var shape of shapes) {
if (shape.hasImage()) {
// छवि संपीड़न के लिए लाइब्रेरी चुनना डेवलपर पर निर्भर है ।.
const imageData = shape.getImageData().toStream();
// ...
// छवि को संपीड़ित करें और इसे वापस आकार में सेट करें ।.
shape.getImageData().setImage(compressedImageBuffer);
}
}
doc.save("Output.epub")
const aw = require('@aspose/words');
var doc = new aw.Document("Input.docx");
doc.cleanup();
var shapes = doc.getChildNodes(aw.NodeType.Shape, true)
for (var shape of shapes) {
if (shape.hasImage()) {
// छवि संपीड़न के लिए लाइब्रेरी चुनना डेवलपर पर निर्भर है ।.
const imageData = shape.getImageData().toStream();
// ...
// छवि को संपीड़ित करें और इसे वापस आकार में सेट करें ।.
shape.getImageData().setImage(compressedImageBuffer);
}
}
var saveOptions = new aw.Saving.OoxmlSaveOptions()
saveOptions.compressionLevel = aw.Saving.CompressionLevel.Maximum
doc.save("Output.epub", saveOptions)
const aw = require('@aspose/words');
var doc = new aw.Document()
var builder = new aw.DocumentBuilder(doc)
shape = builder.insertImage("Input.docx")
var saveOptions = new aw.Saving.ImageSaveOptions(aw.SaveFormat.Docx)
shape.getShapeRenderer().save("Output.epub", saveOptions)
We host our Node.js via .Net packages in NPM repositories. Please follow the step-by-step instructions on how to install "Aspose.Words for Node.js via .NET" to your developer environment.
This package is compatible with Node.js 14.17.0 or higher.
आप कई अन्य फ़ाइल स्वरूपों में फ़ाइलों को अनुकूलित कर सकते हैं: