تحليل تنسيقات ODP في Java
تحليل مستندات ODP أصلي وعالي الأداء باستخدام Aspose من جانب الخادم. شرائح لـ Java APIs ، دون استخدام أي برنامج مثل Microsoft أو Adobe PDF.
كيفية تحليل ملف ODP باستخدام Java
من أجل تحليل ملف ODP ، سنستخدم
API وهي واجهة برمجة تطبيقات تحليل غنية بالميزات وقوية وسهلة الاستخدام لمنصة Java. يمكنك تنزيل أحدث إصدار مباشرة من
وقم بتثبيته ضمن مشروعك المستند إلى Maven عن طريق إضافة التكوينات التالية إلى ملف pom.xml.
مخزن
<repository>
<id>AsposeJavaAPI</id>
<name>Aspose Java API</name>
<url>https://releases.aspose.com/java/repo/</url>
</repository>
الاعتماد
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-slides</artifactId>
<version>version of aspose-slides API</version>
<classifier>jdk17</classifier>
</dependency>
خطوات تحليل ملفات ODP في Java
يمكن إجراء تحليل مستند أساسي باستخدام واجهات برمجة تطبيقات Aspose.Slides for Java ببضعة سطور من التعليمات البرمجية.
قم بتحميل ملف ODP عن طريق تثبيت فئة العرض التقديمي.
احصل على أول إطارات نصية للشرائح.
حلقة خلال كل جزء من فقرة.
احصل على المخرجات المطلوبة مثل النص والخط وما إلى ذلك.
متطلبات النظام
Aspose.Slides for Java يدعم جميع المنصات وأنظمة التشغيل الرئيسية. يرجى التأكد من توفر المتطلبات التالية.
- Microsoft Windows أو نظام تشغيل متوافق مع Java Runtime Environment لتطبيق JSP / JSF وتطبيقات سطح المكتب.
- احصل على أحدث إصدار من Aspose.Slides for Java مباشرة من مافن .
تحليل ملفات ODP - جافا
//Load ODP file
Presentation odpPresentation = new Presentation("demo.odp");
try{
//Get an Array of TextFrameEx objects from the first slide
ITextFrame[] textFramesSlideOne = SlideUtil.getAllTextBoxes(odpPresentation.getSlides().get_Item(0));
//Loop through the Array of TextFrames
for (int i = 0; i < textFramesSlideOne.length; i++){
//Loop through paragraphs in current TextFrame
for (IParagraph para : textFramesSlideOne[0].getParagraphs()){
//Loop through portions in the current Paragraph
for (IPortion port : para.getPortions()){
//Display text in the current portion
System.out.print(port.getText());
//Display font height of the text
System.out.print(port.getPortionFormat().getFontHeight());
//Display font name of the text
System.out.print(port.getPortionFormat().getLatinFont().getFontName());
}
}
}
} finally {
if (odpPresentation != null) odpPresentation.dispose();
}
//Similarly extarcting text from the Whole Presentation
//Use getAllTextFrames(odpPresentation, true) method and Iterate through Array
حول Aspose.Slides for Java API
يمكن استخدام Aspose.Slides API لقراءة وكتابة ومعالجة وتحويل مستندات Microsoft PowerPoint إلى PDF و XPS و HTML و TIFF و ODP وتنسيقات أخرى متنوعة. يمكن للمرء إنشاء ملفات جديدة من البداية وحفظ تلك في التنسيقات المدعومة ذات الصلة. Aspose.Slides هي واجهة برمجة تطبيقات مستقلة لإنشاء العروض التقديمية والشرائح والعناصر أو تحليلها أو معالجتها ، ولا تعتمد على أي برنامج مثل Microsoft أو OpenOffice.Online ODP Parser Live Demos
Extract text and images from ODP documents right now by visiting our Live Demos website . The live demo has the following benefits
ODP ما هو ODP تنسيق الملف
Files with ODP extension represent presentation file format used by OpenOffice.org in the OASISOpen standard. A presentation file is a collection of slides where each slide can comprise of text, images, formatting, animations, and other media. These slides are presented to audience in the form of slideshows with custom presentation settings. ODP files can be opened by applications that conform to the OpenDocument format (such as OpenOffice or StarOffice).
قراءة المزيد