Code Monkey home page Code Monkey logo

Comments (5)

sbraconnier avatar sbraconnier commented on May 11, 2024 1

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.

from jodconverter.

sbraconnier avatar sbraconnier commented on May 11, 2024

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.

from jodconverter.

ochive avatar ochive commented on May 11, 2024

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

from jodconverter.

cgruber0 avatar cgruber0 commented on May 11, 2024

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!

from jodconverter.

cgruber0 avatar cgruber0 commented on May 11, 2024

Thanks! I'm able to import these classes.

from jodconverter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.