Convertion from DOC to PDF doesn't work with corporate font (TTF)

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

Hello

Thanks for your request. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed. This problem does not occur in .NET version of Aspose.Words. Currently we are working on synchronizing Java and .NET versions of Aspose.Words. Once we finish this work all functionality which is supported in, NET version will be supported in Java version. Also you should note, converting to PDF is in beta at the moment. I will notify you as soon as converting to PDF in Aspose.Words for Java is out of beta.
Best regards,

Thank you very much for your extremely fast reply!

We will communicate these results to our client, but in order to make any decisions we would need some timeframe. Do you have an estimate till when this problem could have been fixed or when the final release of Aspose.Word 4 is planned?

Thank you!

Hello

Thanks for your inquiry. Once we finish synchronization Java and .NET versions of Aspose.Words, all functionality which is supported in, NET version will be supported in Java version, including the fix of this issue. Hopefully it will be somewhere in May. You will be notified.
Best regards,

Thank you !!!

The issues you have found earlier (filed as 14852) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.

We are happy to inform you that the first auto-ported version of Aspose.Words for Java is ready. This version supports converting documents to PDF. You can get it from here.

Best regards,
Aspose.Words team

(99)