We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception exporting html to PDF using DocumentBuilder

Hi -

When using Aspose Words to export html to a pdf file I get StringOutOfBoundsException.

java.lang.StringIndexOutOfBoundsException: String index out of range: 7

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);



Html file attached.

Hi Dave,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 10.7.0, I managed to reproduce this exception on my side. I have logged this issue in our bug tracking system. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved.

Sorry for inconvenience.

Best Regards,