Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
המרת מסמכים מפורמט אחד למשנהו היא תכונה הדגל של Aspose.Words. ניתן להמיר מסמכים בכל זמין המונחים גם בפורמט XLSX.
המרת מסמך ל- XLSX הוא תהליך מסובך למדי. כדי לשמור את המסמך שלך בפורמט XLSX Aspose.Words שימוש XlsxSaveOptions הכיתה והחדשה Xlsx אלמנט ב SaveFormat אזהרה. כפי שצוין לעיל, אתה יכול לשמור את המסמך בכל תבנית עומס נתמך על ידי Aspose.Words תגית: XLSX
דוגמה לקוד הבא מראה כיצד לשמור PDF ל- XLSX:
Document doc = new Document(getMyDir() + "Pdf Document.pdf");
doc.save(getArtifactsDir() + "BaseConversions.PdfToXlsx.xlsx");גם באמצעות Aspose.Words, אתה יכול למצוא מחרוזת מסוימת או ביטוי קבוע במסמך שלך ולהחליף אותו עם ההתאמה שאתה צריך. ניתן גם לחסוך את התוצאה לתבנית XLSX.
הדוגמה הבאה של הקוד מראה כיצד לבצע את הפעולה ולהחליפם ל- XLSX:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.writeln("Ruby bought a ruby necklace.");
// We can use a "FindReplaceOptions" object to modify the find-and-replace process.
FindReplaceOptions options = new FindReplaceOptions();
// Set the "MatchCase" flag to "true" to apply case sensitivity while finding strings to replace.
// Set the "MatchCase" flag to "false" to ignore character case while searching for text to replace.
options.setMatchCase(true);
doc.getRange().replace("Ruby", "Jade", options);
doc.save(getArtifactsDir() + "BaseConversions.FindReplaceXlsx.xlsx");ניתן גם לציין את רמת הדחיסה בעת שמירת השימוש CompressionLevel רכוש.
הדוגמה הבאה של הקוד מראה כיצד לציין את רמת הדחיסה בעת שמירת פורמט XLSX:
Document doc = new Document(getMyDir() + "Document.docx");
XlsxSaveOptions saveOptions = new XlsxSaveOptions();
saveOptions.setCompressionLevel(CompressionLevel.MAXIMUM);
doc.save(getArtifactsDir() + "BaseConversions.CompressXlsx.xlsx", saveOptions);Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.