zhangzhen1979 / jimu-convertpreview Goto Github PK
View Code? Open in Web Editor NEW格式转换:用于将常见的文件、图片转换为Pdf、Ofd、Jpg文件。支持对文件加图片水印、文字水印。预览:可以对以上格式在线预览,支持预览水印等。
License: Apache License 2.0
格式转换:用于将常见的文件、图片转换为Pdf、Ofd、Jpg文件。支持对文件加图片水印、文字水印。预览:可以对以上格式在线预览,支持预览水印等。
License: Apache License 2.0
项目中没有找到生成多个pdf返回base64的接口
服务器版本win7
接口地址:http://ip:8081/api/convert
接口参数:
{
"inputType": "path",
"inputFile": "D:/cvtest/001.docx",
"outPutFileName": "001-online",
"outPutFileType": "ofd",
"writeBackType": "path",
"writeBack": {
"path": "D:/cvtest/"
}
}
日志报错:
java.lang.NoClassDefFoundError: Could not initialize class com.jacob.com.ComThread
at com.thinkdifferent.convertpreview.utils.LocalConvertUtil.doc2PDF(LocalConvertUtil.java:287) ~[classes!/:0.7.0]
at com.thinkdifferent.convertpreview.utils.LocalConvertUtil.process(LocalConvertUtil.java:52) ~[classes!/:0.7.0]
at com.thinkdifferent.convertpreview.utils.ConvertUtil.convertOffice2Pdf(ConvertUtil.java:539) ~[classes!/:0.7.0]
at com.thinkdifferent.convertpreview.service.impl.ConvertServiceImpl.parseInputFile(ConvertServiceImpl.java:319) ~[classes!/:0.7.0]
at com.thinkdifferent.convertpreview.service.impl.ConvertServiceImpl.mergerInputFile(ConvertServiceImpl.java:222) ~[classes!/:0.7.0]
at com.thinkdifferent.convertpreview.service.impl.ConvertServiceImpl.convert(ConvertServiceImpl.java:123) ~[classes!/:0.7.0]
at com.thinkdifferent.convertpreview.service.impl.ConvertServiceImpl.asyncConvert(ConvertServiceImpl.java:90) ~[classes!/:0.7.0]
at com.thinkdifferent.convertpreview.service.impl.ConvertServiceImpl$$FastClassBySpringCGLIB$$2d36a398.invoke() ~[classes!/:0.7.0]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.13.jar!/:5.3.13]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783) ~[spring-aop-5.3.13.jar!/:5.3.13]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.13.jar!/:5.3.13]
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) ~[spring-aop-5.3.13.jar!/:5.3.13]
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.3.13.jar!/:5.3.13]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_144]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_144]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_144]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_144]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.