Is there any way to open a rtf-File?
I tried:
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new FileInputStream(new File(dataDir + "file.rtf")));
Or is there another lib wich can do this?
It is currently Tue Aug 04, 2026 7:10 pm
News of ForumsInstalling using command 'C:\Users\user865e6\AppData\Local\Temp\VSDAC69.tmp\VSTOR40\vstor40_x64.exe' and parameters ' /q:a /c:"install /q /l"'
Unable to run create process. GetLastError returned: 1223
Status of package 'Microsoft Visual Studio 2010 Tools for Office Runtime (x86 and x64)' after install is 'InstallFailed'String xmlEllipse = getXmlEllipse();
Object ellipse = XmlUtils.unmarshalString(xmlEllipse);
Graphic ellipseGraphic = (Graphic) ((JAXBElement)ellipse).getValue();
Anchor anchor = new Anchor();
anchor.setGraphic(ellipseGraphic);
ObjectFactory factory = new ObjectFactory();
P paragraph = factory.createP();
R run = factory.createR();
paragraph.getContent().add(run);
Drawing drawing = factory.createDrawing();
run.getContent().add(drawing);
drawing.getAnchorOrInline().add(anchor);
WordprocessingMLPackage newDoc = WordprocessingMLPackage.createPackage();
newDoc.getMainDocumentPart().getContent().add(paragraph);
newDoc.save(new File(dirPath + outputFilePath));Total posts 10234 • Total topics 2888 • Total members 2109