Comments (3)
If you want to just connect to a running office process (not started by jodconverter), try to build an OfficeManager using the ExternalOfficeManagerBuilder, which is not documented unfortunately. I think this manager is the old one that you used with jodconverter 2.2.1.
from jodconverter.
No feedback, closing this one. Fell free to reopen it.
from jodconverter.
I have been using jodconverter 2.2.1. But it doesn't support fodt, docx formats and I wanted to use your jodconverter. Then I realized that I could achieve other not supported formats with DocumentFormat class in old jodconverter. So I'm continuing using old jodconverter with following code changes:
var connection: SocketOpenOfficeConnection = null
try {
connection = new SocketOpenOfficeConnection(8100)
connection.connect()
val defaultFormatRegistry = new DefaultDocumentFormatRegistry()
val fodtDocFormat = new DocumentFormat("OpenDocument Text Flat XML", DocumentFamily.TEXT, "application/vnd.oasis.opendocument.text-flat-xml", "fodt")
fodtDocFormat.setExportFilter(DocumentFamily.TEXT, "OpenDocument Text Flat XML")
defaultFormatRegistry.addDocumentFormat(fodtDocFormat)
val docxDocFormat = new DocumentFormat("Microsoft Word 2007-2013 XML", DocumentFamily.TEXT, "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "docx")
docxDocFormat.setExportFilter(DocumentFamily.TEXT, "MS Word 2007 XML")
defaultFormatRegistry.addDocumentFormat(docxDocFormat)
val converter = new OpenOfficeDocumentConverter(connection, defaultFormatRegistry)
converter.convert(docxFile, fodtFile)
} catch {
case e: Throwable =>
logger.error("", e)
} finally {
if (connection != null) {
connection.disconnect()
}
}
from jodconverter.
Related Issues (20)
- Add publish mode to presentation->html conversion in document-formats.json HOT 7
- missing fonts on convertion from docx to pdf HOT 2
- When exporting a PDF document, how do I set the document title / author? HOT 2
- 启动加载异常 bean of type 'org.jodconverter.core.DocumentConverter' that could not be found. HOT 1
- Accesible PDF export HOT 2
- Failed to load class "org.slf4j.impl.StaticLoggerBinder".
- Could not store document: tempfile_1.pdf HOT 4
- Can not convert .pdf to .docx HOT 1
- Using SpringBoot autoconfiguration with a remote setup fails with ClassNotFoundException HOT 2
- Compress Images When convert from Excel to pdf HOT 2
- Custom Page Size HOT 18
- excel转pdf设置格式 HOT 3
- Issues with converting Excel to HTML HOT 6
- 4.4.2word导出pdf,偶尔出现org.jodconverter.core.office.OfficeException: Task did not complete: LocalConversionTask{source=SourceDocumentSpecsFromInputStream{file=null, for mat=null}, loadProperties=null, target=TargetDocumentSpecsFromOutputStream{file=null, format=pdf}, storeProperties=null} HOT 9
- Getting error: Unsupported URL "type detection failed" HOT 2
- Unable to connect to external liberoffice when deploying springboot applications using Docker HOT 2
- LibreOffice not starting when run from Systemd / tomcat user HOT 2
- Feature Request - Send multiple documents to JodConverter and receive a merged document? HOT 1
- Use of plug-ins HOT 1
- hwp file cannot be opened HOT 2
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.