Date: prev next · Thread: first prev next last
2016 Archives by date, by thread · List index


Hi Team members,

Does anyone know how to do it as the subject describes?  Thanks a lot!

LibreOffice version: 4.1.4.2
OS:RedHat7
Java1.7

My code is as follow:
XComponentContext xContext = OOoConnector.bootstrap(ooExeFolder);
XMultiComponentFactory xMCF = xContext.getServiceManager();
Object desktop = xMCF.createInstanceWithContext("com.sun.star.frame.Desktop", xContext);
XComponentLoader loader = (XComponentLoader)UnoRuntime.queryInterface(XComponentLoader.class, 
desktop);
String url = "file://" + targetFile;
// If execute the next line, the related file will be opened automatically, but we do not want to 
open it. What we want is change value for some cells and work as background.
XComponent component = loader.loadComponentFromURL(url, "_default", 0, new PropertyValue[0]);
    ……

The default options for the ‘soffice’ command is as follow.
ArrayList<String> options = new ArrayList<String>();
options.add("--nologo");
options.add("--nodefault");
options.add("--norestore");
options.add("--nocrashreport");
options.add("--nolockcheck");
…….

Anyone who knows the solution is much appreciated!

Best Regards
William
From: Zhang, William
Sent: 2015年12月25日 13:08
To: 'libreoffice@lists.freedesktop.org'
Subject: How to decrypt ods file

Hi Team members,

Does anyone know how to decrypt an encrypted Libreoffice Calc file with Java or other languages? Or 
even some workarounds. Thanks a lot!

LibreOffice version: 4.1.4.2

What I’ve tried.

1.       Try some common decrypt API such as javax.crypto.Cipher, failed.

2.       Change the ‘ods’ extension to ‘zip’, unzip it and try to parse file to get the content, 
failed.

Then try to get xml content with Java IO, failed.
……

Best Regards
William


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.