Dear Aspose-Team,
our client needs a Word to PDF conversion in the web application we’re building for him - therefore we are evaluating Aspose.Word. The problem that we’re having is that Aspose .Word does not seem to be able to convert the true type font our client uses. The problem is not, that the font is lost and converted in some standard font (as some stated here in the forum), BUT that the conversion doesn’t work at all.
When using the following code, we run into the following exceptions:
CODE ->
Document doc = new Document(PATHFROM + document);
doc.saveToPdf(PATHTO + documentName + ".pdf");
EXCEPTION ->
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 65306
at asposewobfuscated.go.go(HorizontalMetrics.java:62)
at asposewobfuscated.cr.a(CMap.java:180)
at asposewobfuscated.qx.UT(TTFontFiler.java:534)
at asposewobfuscated.qx.v(TTFontFiler.java:180)
at asposewobfuscated.qx.ix(TTFontFiler.java:150)
at asposewobfuscated.qx.iz(TTFontFiler.java:335)
at asposewobfuscated.qx.B(TTFontFiler.java:117)
at asposewobfuscated.qx.A(TTFontFiler.java:42)
at asposewobfuscated.oa.hc(PalFont.java:24)
at com.aspose.words.xb.Hd(SpanPr.java:231)
at com.aspose.words.sf.rr(Span.java:730)
at com.aspose.words.sf.getWidth(Span.java:593)
at com.aspose.words.zq.Jy(LineBuilder.java: 88)
at com.aspose.words.zq.Jx(LineBuilder.java: 30)
at com.aspose.words.bz.V(LinePart.java: 281)
at com.aspose.words.k.c(ColumnBuilder.java: 481)
at com.aspose.words.k.a(ColumnBuilder.java: 163)
at com.aspose.words.k.a(ColumnBuilder.java: 97)
at com.aspose.words.mw.a(PageBuilder.java: 119)
at com.aspose.words.mw.a(PageBuilder.java: 60)
at com.aspose.words.aji.b(SectionReflower.java: 40)
at com.aspose.words.il.nG(MainTextSectionLayout.java: 757)
at com.aspose.words.ql.nG(StoryLayoutBase.java: 88)
at com.aspose.words.mu.nG(PageLayoutModel.java: 124)
at com.aspose.words.yz.a(LayoutDocument.java: 33)
at com.aspose.words.Document.updatePageLayout(Document.java: 1637)
at com.aspose.words.Document.Iu(Document.java: 1590)
at com.aspose.words.Document.getPageCount(Document.java: 1618)
at com.aspose.words.Document.saveToPdf(Document.java: 1649)
at asposeWordTest.ToPDFConverter.convertToPDF(ToPDFConverter.java: 45)
at asposeWordTest.ToPDFConverter.main(ToPDFConverter.java: 54)
I’m attaching the concerning font and the simple Word-Document I used to this post.
I would be great if you could give me a feedback as soon as possible.
Thank you and best regards from Germany
Bianca Ott