Index Out of Range exception when converting to PDF

Hi,

I’m trying to do a mailmerge and then convert the document to a PDF. This works fine using the old method of Aspose.Words + Aspose.PDF. When I try to do this using only Aspose.Words I get an index out of range exception.

I included a test project with sample code using both methods, the template, and the mailmerge data.

Could you please have a look at what I am doing wrong ?

Regards,
Chris Vrolijk

Hi
Thanks for your request. I cannot reproduce the problem on my side. Please make sure you are using the latest version of Aspose.Words. You can download the latest version from here:
https://releases.aspose.com/words/net
Best regards.

Hi,
I’m using version Aspose.Words.dll 6.1.0. I attached it. Could it be something else related to my machine. The document was made in Word 2003. I’m running the dutch Vista Business 32-bit SP1.
Could you please have another look, or is there something else I can try ?
I already tried to remove the mailmerge code. But even if I only open the template and save it to PDF, I get the same error.
Regards,
Chris Vrolijk

Hi
Thanks for your request. Could you please also provide me stack trace of the error. I will further investigate the issue and provide you more information.
Best regards.

Hi Alexey,
Here is the stacktrace.
I also tried it on a English Windows XP SP3, and I got the same error.
Best regards,
Chris Vrolijk

bij 㷩.㽳.㽹(㽭 㽺)
bij 㷩.㻭.㼎()
bij 㷩.㻭.ޭ(Stream ԑ)
bij 㷩.㻭.ޭ(String ԏ)
bij 㷩.㻭.㼄(String ⯧)
bij 㷩.㻭.㸡(String ⯧, FontStyle উ, Boolean 㼁)
bij 㷩.㻭.ਾ(String ⯧, FontStyle উ, Boolean 㼁)
bij 㵔.㷗..ctor(㶈 context, String familyName, FontStyle requestedStyle)
bij 㵔.㸬..ctor(㶈 context, String familyName, FontStyle requestedStyle)
bij 㵔.㷗.㷤(㶈 ೫, String ⯧, FontStyle 㷥, Boolean 㷦)
bij 㵔.㸚.ਾ(String ⯧, FontStyle উ, Boolean 㷦)
bij 㵔.䁝.䁦(଴ ஢)
bij 㵔.䁆.㬥(଴ ஢)
bij 㵔.䃔.VisitGlyphs(଴ glyphs)
bij ૜.଴.Accept(૥ visitor)
bij ૜.૟.Accept(૥ visitor)
bij ૜.૦.Accept(૥ visitor)
bij ૜.૟.Accept(૥ visitor)
bij ૜.૦.Accept(૥ visitor)
bij ૜.૟.Accept(૥ visitor)
bij ૜.૦.Accept(૥ visitor)
bij ૜.૟.Accept(૥ visitor)
bij ૜.૦.Accept(૥ visitor)
bij ૜.૟.Accept(૥ visitor)
bij ૜.૦.Accept(૥ visitor)
bij ૜.૟.Accept(૥ visitor)
bij ૜.૦.Accept(૥ visitor)
bij ૜.૟.Accept(૥ visitor)
bij ૜.૛.Accept(૥ visitor)
bij 㵔.䃔.ୣ(ૣ ԇ)
bij Aspose.Words.Document.SaveToPdf(Int32 pageIndex, Int32 pageCount, Stream stream, PdfOptions options)
bij Aspose.Words.Document.SaveToPdf(Int32 pageIndex, Int32 pageCount, String fileName, PdfOptions options)
bij Aspose.Words.Document.SaveToPdf(String fileName)
bij WindowsFormsApplication1.Form1.button2_Click(Object sender, EventArgs e) in c:\aspose\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs:regel 126

Thank you for additional information. I see that “KIX Barcode” font is used in your document. Could you please attach this font here for testing? Maybe it causes the problem.

Best regards,

Hi,
I attached the font.
Best regards,
Chris

Thank you for additional information. I managed to reproduce the problem and created new issue #7531 in our defect database. I will notify you as soon as it is fixed.
Best regards.

Thanks a lot.

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

This message was posted using Notification2Forum from Downloads module by alexey.noskov.