New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some class can't find from the maven jar #14
Comments
You are totally right! Those classes were not in the 4.0.0-RELEASE. Please refer to the v4.0.0 tag for the complete content of the 4.0.0 version available through Maven. The trunk needs more robust tests in order to be released as a version. The next version will be 4.1.0 and should be release in a month or so. In the meantime, you can build the project yourself if you still want to use the new way JodConverter can be used (using a DefaultOfficeManager and DefaultConverter), but there is no guarantee that there will be no breaking changes. |
I got it . |
I have the same problem, but don't know how to refer to the v4.0.0 tag in Maven? I use:
And I don't want to use Gradle. Thanks for your help! |
Not sure I understand what is your problem exactly. If you are looking for an example using the v4.0.0 version, since the trunk contains new classes, here it is: File inputFile = new File("document.doc");
File outputFile = new File("document.pdf");
// Create an office manager using the default configuration.
// The default port is 2002.
OfficeManager officeManager = new DefaultOfficeManagerBuilder().build();
try {
// Start an office process and connect to the started instance (on port 2002).
officeManager.start();
// Convert
OfficeDocumentConverter converter = new OfficeDocumentConverter(officeManager);
converter.convert(inputFile, outputFile);
} finally {
// Stop the office process
officeManager.stop();
} If this doesn't answer to your question, please add more details. |
Thanks! I'm able to import these classes. |
The text was updated successfully, but these errors were encountered: