Skip to content
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

Closed
ochive opened this issue Jul 13, 2017 · 5 comments
Closed

some class can't find from the maven jar #14

ochive opened this issue Jul 13, 2017 · 5 comments

Comments

@ochive
Copy link

ochive commented Jul 13, 2017

 I get the jar from maven:
  org.jodconverter
  jodconverter-core
  4.0.0-RELEASE

But i can't find the class below:DefaultOfficeManager ,DocumentConverter  etc,whether it need to be updated?

qq 20170713110934

@sbraconnier
Copy link
Member

sbraconnier commented Jul 13, 2017

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.

@ochive
Copy link
Author

ochive commented Jul 13, 2017

I got it .
I'll do it in the traditional way ,thank you so much!

@ochive ochive closed this as completed Jul 13, 2017
@cgruber0
Copy link

I have the same problem, but don't know how to refer to the v4.0.0 tag in Maven?

I use:

<dependency>
  <groupId>org.jodconverter</groupId>
  <artifactId>jodconverter-core</artifactId>
  <version>4.0.0-RELEASE</version>
</dependency>

And I don't want to use Gradle.

Thanks for your help!

@sbraconnier
Copy link
Member

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.

@cgruber0
Copy link

Thanks! I'm able to import these classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants