Thanks!
Chinese language is ok.
But new question 1:
We can't convert (DOC ,PDF) format into HTML format.
test code1:
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.setAsListItems(true);
htmlSaveOptions.setSavePath("C:\\Users\\summer\\Desktop\\FileStructure02\\"
+ "toDOCPages\\");
ArrayList list;
System.out.println("DOC (page_size="
+ conversionHandler.getPageCount("GroupDocs_Demo1.doc") + ")");
htmlSaveOptions.setSaveName("GroupDocs_Demo1.doc");
list = conversionHandler.convertToHtml("GroupDocs_Demo1.doc", htmlSaveOptions);
for (String item : list) {
System.out.println(item);
}
error1:
DOC (page_size=2)
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.groupdocs.conversion.internal.c.a.pd.internal.p218.y.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p163.d.b(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p163.d.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p163.k.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p163.a.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p162.t.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p350.m.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.iZ.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.iZ.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.a.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.ay.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.a.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.ay.a(Unknown Source)
at w.toHtml(Unknown Source)
at S.toHtml(Unknown Source)
at ah.a(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.convertToHtml(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.convertToHtml(Unknown Source)
at com.groupdocs.conversion.maven.ConversionSample.main(ConversionSample.java:72)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 137
at com.groupdocs.conversion.internal.c.a.pd.internal.p549.a.b(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p265.b.(Unknown Source)
... 19 more
test code2:
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.setAsListItems(true);
htmlSaveOptions.setSavePath("C:\\Users\\summer\\Desktop\\FileStructure02\\"
+ "toPDFPages\\");
ArrayList list;
System.out.println("PDF (page_size="
+ conversionHandler.getPageCount("GroupDocs_Demo5.pdf") + ")");
htmlSaveOptions.setSaveName("GroupDocs_Demo5.pdf");
list = conversionHandler.convertToHtml("GroupDocs_Demo5.pdf", htmlSaveOptions);
for (String item : list) {
System.out.println(item);
}
error2:
PDF (page_size=2)
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.groupdocs.conversion.internal.c.a.pd.internal.p218.y.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p163.d.b(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p163.d.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p163.k.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p163.a.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p162.t.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p350.m.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.iZ.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.iZ.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.a.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.ay.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.a.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.ay.a(Unknown Source)
at w.toHtml(Unknown Source)
at ae.a(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.convertToHtml(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.convertToHtml(Unknown Source)
at com.groupdocs.conversion.maven.ConversionSample.main(ConversionSample.java:72)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 137
at com.groupdocs.conversion.internal.c.a.pd.internal.p549.a.b(Unknown Source)
at com.groupdocs.conversion.internal.c.a.pd.internal.p265.b.(Unknown Source)
... 18 more
test code3:
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
htmlSaveOptions.setAsListItems(true);
htmlSaveOptions.setSavePath("C:\\Users\\summer\\Desktop\\FileStructure02\\"
+ "toPPTPages\\");
ArrayList list;
System.out.println("PPT (page_size="
+ conversionHandler.getPageCount("GroupDocs_Demo6.ppt") + ")");
htmlSaveOptions.setSaveName("GroupDocs_Demo6.ppt");
list = conversionHandler.convertToHtml("GroupDocs_Demo6.ppt", htmlSaveOptions);
for (String item : list) {
System.out.println(item);
}
test code3 run result:
PPT (page_size=2)
四月 27, 2016 11:34:15 上午 L a
严重: Presentation uses next fonts:
'Arial'
'黑体' (ERROR: NOT FOUND IN YOUR SYSTEM!!!)
'宋体' (ERROR: NOT FOUND IN YOUR SYSTEM!!!)
'Wingdings'
'Calibri'
'微软雅黑' (ERROR: NOT FOUND IN YOUR SYSTEM!!!)
C:/Users/summer/Desktop/FileStructure02/toPPTPages/GroupDocs_Demo6.ppt_1.html\
C:/Users/summer/Desktop/FileStructure02/toPPTPages/GroupDocs_Demo6.ppt_2.html\
C:/Users/summer/Desktop/FileStructure02/toPPTPages/GroupDocs_Demo6.ppt_3.html\
C:/Users/summer/Desktop/FileStructure02/toPPTPages/GroupDocs_Demo6.ppt_4.html\
C:/Users/summer/Desktop/FileStructure02/toPPTPages/GroupDocs_Demo6.ppt_5.html\
C:/Users/summer/Desktop/FileStructure02/toPPTPages/GroupDocs_Demo6.ppt_6.html\
file list:
files.zip
Local document open mode:
WPS Office (10.1.0.5603)
My question:
This property(htmlSaveOptions.setAsListItems(true)) cannot be used in these formats(PDF,doc) ?
Summer
Thanks