PDF to HTML conversion issue in Java

hi

Can you explain the use of each of the methods in htmlSaveOptions, or you can provide a description of the document?

Our present needs are: .XLS .Doc .ppt .PDF to .HTML for these documents,
If test.doc has 3 pages ,it will be converted to 3 HTML


Please tell me according to this demand:How to set the parameters of htmlSaveOptions?

this is my util code:GroupDocsConversionFileUtils.java
Please tell me: How to set the parameters of htmlSaveOptions

Use GroupDocsConversionFileUtils.java ,I can't conver .ppt .PDF to html
This is error:
L:01:54:45.138 ##SUMMER######: Conversion Info ######
L:01:54:45.138 ##SUMMER######: GroupDocs_License :/cc/deployment/apps/fileConversion/GroupDocs.Conversion.lic
L:01:54:45.138 ##SUMMER######: inputFileSuffix: .ppt
L:01:54:45.138 ##SUMMER######: outputFile.getAbsolutePath(): /cc/CCFile/FileManager/__cp1/__cmu/__cls10962/10962230/__view/64016109/GroupDocs_Demo.html
L:01:54:45.138 ##SUMMER######: outputFile.getParent(): /cc/CCFile/FileManager/__cp1/__cmu/__cls10962/10962230/__view/64016109
L:01:54:45.138 ##SUMMER######: folderName: GroupDocs_Demo.ppt
L:01:54:45.138 ##SUMMER######: folder.getAbsolutePath():/cc/CCFile/FileManager/__cp1/__cmu/__cls10962/10962230/__view/64016109/conversion
L:01:54:45.138 ##SUMMER######: firstFileName: GroupDocs_Demo
L:01:54:45.139 ##SUMMER######: inputFile.getName(): GroupDocs_Demo.ppt
L:01:54:45.139 ##SUMMER######: inputFile.getParent(): /cc/CCFile/FileManager/__cp1/__cmu/__cls10962/10962230/__view/64016109

java.lang.ExceptionInInitializerError
at com.groupdocs.conversion.internal.c.a.s.p6a2feef8.p9f36407e.x.do(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.p6a2feef8.p9f36407e.x.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.p6a2feef8.p9f36407e.u.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.Xv.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.Xm.(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.Xm.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.Ji.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.Ji.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.IK.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.IK.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.IK.do(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.IK.(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.nY.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.nY.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.nY.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.x.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.cX.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.nh.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.zV.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.zV.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.mn.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.mn.do(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.mn.save(Unknown Source)
at N.toHtml(Unknown Source)
at ag.a(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.convertToHtml(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.convertToHtml(Unknown Source)
at WebMan.campus.files.server.conversion.GroupDocsConversionFileUtils.converFiles(GroupDocsConversionFileUtils.java:58)
at WebMan.campus.files.server.conversion.AbstractFileConvertor.process(AbstractFileConvertor.java:52)
at WebMan.campus.files.server.conversion.ConversionExecutor.execute(ConversionExecutor.java:153)
at tcc.batch.server.impl.ExecuteWorkerImpl.execute(ExecuteWorkerImpl.java:143)
at tcc.batch.server.impl.ExecuteWorkerImpl.run(ExecuteWorkerImpl.java:113)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at com.groupdocs.conversion.internal.c.a.s.ms.pbdb106a0.p6a2feef8.p.do(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.ms.pbdb106a0.p6a2feef8.cG.c(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.ms.pbdb106a0.p6a2feef8.cG.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.ms.pbdb106a0.p6a2feef8.p.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.s.ms.pbdb106a0.p6a2feef8.p.(Unknown Source)
... 33 more


Hello,

Your code from the GroupDocsConversionFileUtils.java file looks well and we have checked it . But unfortunately we can't reproduce the issue with .pdf and .ppt files that you shared with us. If you use another files , then please share them with us and we will test them. Also will be useful if you prepare for us the sample project with which we can reproduce the issue .

Note: You can investigate our documentations for GroupDocs.Conversion for Java library here.

We will wait for your results.

----------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+

this is filelist

hi

I use GroupDocsConversionFileUtils.java to test the file(aaa.doc).
But , path of the file(aaaa_html_m66c28260.jpg) is error.

so can you tell me the reason ?


And what mean of this ?
conversionHandler.convertToHtml(s1, htmlSaveOptions);

‘s1’ :What does it mean? it must be a path ? Does it have a relationship with the production of image resources ? Can you give me an example ?

This is my result :
##SUMMER######: Conversion Info ######
##SUMMER######: GroupDocs_License :D:/tccwork2/conversion/license/GroupDocs.Conversion.lic
##SUMMER######: inputFileSuffix: .doc
##SUMMER######: outputFile.getAbsolutePath(): D:\tccwork2\conversion\out
##SUMMER######: outputFile.getParent(): D:\tccwork2\conversion
##SUMMER######: folderName: aaaa.doc
##SUMMER######: folder.getAbsolutePath(): D:\tccwork2\conversion\conversion
##SUMMER######: firstFileName: aaaa
##SUMMER######: inputFile.getName(): aaaa.doc
##SUMMER######: inputFile.getParent(): D:\tccwork2\conversion\file_samples


Hello,

Unfortunately, we cann't reproduce the issue with these files on our side. Could you please explain, did you try to convert the files via our demo examples, or not? If the issue will be reproduced with our demo examples , then please share your OS configuration with us . But, if the issue will not be reproduced , then please share your demo project and we will investigate it to find a reason of the issue. At the moment we don't see any issue with your GroupDocsConversionFileUtils class .

We will wait for your results.

----------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+

hi

This is my demo(server.zip ),only these(Config_Conversion.java ,GroupDocsConversionFileUtils.java ,AbstractFileConvertor.java)


Now use these files(files.zip) ,I can't conver(.doc .xls .pdf .ppt) to html

This is parameter:
L:01:54:45.138 ##SUMMER######: Conversion Info ######
L:01:54:45.138 ##SUMMER######: GroupDocs_License :/cc/deployment/apps/fileConversion/GroupDocs.Conversion.lic
L:01:54:45.138 ##SUMMER######: inputFileSuffix: .ppt
L:01:54:45.138 ##SUMMER######: outputFile.getAbsolutePath(): /cc/CCFile/FileManager/__cp1/__cmu/__cls10962/10962230/__view/64016109/GroupDocs_Demo.html
L:01:54:45.138 ##SUMMER######: outputFile.getParent(): /cc/CCFile/FileManager/__cp1/__cmu/__cls10962/10962230/__view/64016109
L:01:54:45.138 ##SUMMER######: folderName: GroupDocs_Demo.ppt
L:01:54:45.138 ##SUMMER######: folder.getAbsolutePath():/cc/CCFile/FileManager/__cp1/__cmu/__cls10962/10962230/__view/64016109/conversion
L:01:54:45.138 ##SUMMER######: firstFileName: GroupDocs_Demo
L:01:54:45.139 ##SUMMER######: inputFile.getName(): GroupDocs_Demo.ppt
L:01:54:45.139 ##SUMMER######: inputFile.getParent(): /cc/CCFile/FileManager/__cp1/__cmu/__cls10962/10962230/__view/64016109
Hello,

Thank you for your code example.

Сould you please share with us a runnable demo project, because seems that your project is not complete. And as we understand from your previous answer that by this path "/cc/CCFile/FileManager/__cp1/__cmu/__cls10962/10962230/__view/64016109" you store all your files from the "files.zip" archive. Is it correct?

We will wait for your details.

--------

Best regards,
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+