Comments (5)
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.
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.
I got it .
I'll do it in the traditional way ,thank you so much!
from jodconverter.
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.
Thanks! I'm able to import these classes.
from jodconverter.
Related Issues (20)
- Concurrency convertion not happen HOT 4
- When converting DOCX to PDF the style is confused and many pages are lost HOT 4
- how to use it in android application ? HOT 1
- pptx file conversion of PDF failed HOT 1
- Why Task was cancelled automatically HOT 2
- StoreProperties property settings HOT 1
- Temp folder not deleted after Timeout Exceptions HOT 5
- High memory consumptiom while converting even 2-3MB of excel files to PDF HOT 5
- The Word document with more than 12 pages will automatically cancel the task. HOT 4
- Started process; pid = -2
- Error when converting Excel to PDF HOT 3
- The program running on Docker keeps generating zombie processes.
- Not working with quartz? HOT 13
- I have a question about conversion options (password, page size ,etc) HOT 10
- Xslx SparkLine HOT 1
- Decimal number, from comma to dot HOT 17
- Information about supported properties and their meaning HOT 2
- LocalOfficeManager not killing existing process on the same port HOT 4
- Same issue with Temporary file name added in CSV -> PDF conversion HOT 3
- jodconverter-local 4.4.3 or later causes the service to fail to end. HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jodconverter.