I want to convert docx to pdf using groupdocs -conversion - 21.4 jar but not able to do.
Stream is (Document) docx File Content
InputStream is = new ByteArrayInputStream(stream);
Converter convert = new Converter(is)
It throws “X-MS950.HKSCS” is not support encoding.
If I change to
Converter converter = new Converter(docx_path)
PdfConvertOptions options = new PdfConvertOptions();
converter.convert(pdf_path, options);
It throws
com.groupdocs.conversion.internal.c.a.w.WindowsNativeCall.readRegistryStringValues(ILjava/lang/String;)Ljava/util/Map;
at com.groupdocs.conversion.internal.c.a.w.WindowsNativeCall.readRegistryStringValues(Native Method)
at com.groupdocs.conversion.internal.c.a.w.internal.ZK.readRegistryStringValues(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.eq.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.er.nGE(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.er.nGD(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.SystemFontSource.getFontDataInternal(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.rc.nYJ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.rc.o(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.ry.nZs(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.ry.zzKW(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.ry.aCW(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.ry.aCV(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.ry.eg(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.ry.zzU(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.FontSettings.zzU(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz3W.zzL(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz3W.zzK(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZTI.zzXC(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz3O$zzZ.zzH(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.eW.moveNext(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz3O.zzZR(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz3O.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzYQT.zzYuV(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzYQT.zzX(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz3O.zzOQ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz3O.(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzYNU.zzY(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz3N.zzZwM(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz3N.moveNext(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzYYO.zzYGv(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.updatePageLayout(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.zzWh(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.getPageCount(Unknown Source)
at com.groupdocs.conversion.contracts.documentinfo.WordprocessingDocumentInfo.(Unknown Source)
at com.groupdocs.conversion.documents.ai.(Unknown Source)
at com.groupdocs.conversion.documents.ai.(Unknown Source)
at com.groupdocs.conversion.loading.loaders.WordProcessingDocumentLoader.load(Unknown Source)
at com.groupdocs.conversion.pipeline.g.a(Unknown Source)
at com.groupdocs.conversion.Converter.convert(Unknown Source)
at com.groupdocs.conversion.Converter.convert(Unknown Source)
at com.groupdocs.conversion.Converter.convert(Unknown Source)
at pdfsign.PdfSign.main(PdfSign.java:37)