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

Free Support Forum - aspose.com

Issue While Converting HTML File to PDF

Hi,

I am trying to convert HTML To PDF, and am not able to do it as I am facing some run-time issue.
Any help in it would be appreciated. Attached is the HTML file and the Java File Code for correspondence.

Following is the error recieved:

Exception in thread “main” java.lang.RuntimeException: class com.aspose.pdf.internal.l70l.I1: Failed to parse URL.
com.aspose.pdf.internal.l694.I7.lif(Unknown Source)
com.aspose.pdf.internal.l607.I194.(Unknown Source)
com.aspose.pdf.internal.l1021.I17.lif(Unknown Source)
com.aspose.pdf.internal.l784.I1.lif(Unknown Source)
com.aspose.pdf.internal.l784.I1.lif(Unknown Source)
com.aspose.pdf.internal.l784.I07.lif(Unknown Source)
com.aspose.pdf.internal.l83l.Il.lif(Unknown Source)
com.aspose.pdf.internal.l607.I9l$1.ll(Unknown Source)
com.aspose.pdf.internal.l607.I9l$1.lif(Unknown Source)
com.aspose.pdf.internal.l607.I16l.lif(Unknown Source)
com.aspose.pdf.internal.l607.I9l.l0if(Unknown Source)
com.aspose.pdf.internal.l85l.Il$I7.lif(Unknown Source)
com.aspose.pdf.internal.l717.Il.lif(Unknown Source)
com.aspose.pdf.internal.l717.I1.l0l(Unknown Source)
com.aspose.pdf.internal.l697.II.hasNext(Unknown Source)
com.aspose.pdf.internal.l697.I7$I7.hasNext(Unknown Source)
com.aspose.pdf.internal.l85l.Il.(Unknown Source)
com.aspose.pdf.internal.l607.I51.l01(Unknown Source)
com.aspose.pdf.internal.l1067.I7.lif(Unknown Source)
com.aspose.pdf.internal.l1067.I7.lif(Unknown Source)
com.aspose.pdf.internal.l1034.I84.lif(Unknown Source)
com.aspose.pdf.I161.lif(Unknown Source)
com.aspose.pdf.I161.lif(Unknown Source)
com.aspose.pdf.ADocument.lif(Unknown Source)
com.aspose.pdf.ADocument.(Unknown Source)
com.aspose.pdf.Document.(Unknown Source)
awsCostOptimizer.cloudwatch_tracker.DevPackage.Aspose.Cells.HTMLToPDF.runFunction(HTMLToPDF.java:43)
configuration.api_structure.ApiStructure.mapHandler(ApiStructure.java:49)
handler.LocalHandler.main(LocalHandler.java:316)
at handler.LocalHandler.main(LocalHandler.java:326)
Caused by: class com.aspose.pdf.internal.l70l.I1: Failed to parse URL.
com.aspose.pdf.internal.l694.I7.lif(Unknown Source)
com.aspose.pdf.internal.l607.I194.(Unknown Source)
com.aspose.pdf.internal.l1021.I17.lif(Unknown Source)
com.aspose.pdf.internal.l784.I1.lif(Unknown Source)
com.aspose.pdf.internal.l784.I1.lif(Unknown Source)
com.aspose.pdf.internal.l784.I07.lif(Unknown Source)
com.aspose.pdf.internal.l83l.Il.lif(Unknown Source)
com.aspose.pdf.internal.l607.I9l$1.ll(Unknown Source)
com.aspose.pdf.internal.l607.I9l$1.lif(Unknown Source)
com.aspose.pdf.internal.l607.I16l.lif(Unknown Source)
com.aspose.pdf.internal.l607.I9l.l0if(Unknown Source)
com.aspose.pdf.internal.l85l.Il$I7.lif(Unknown Source)
com.aspose.pdf.internal.l717.Il.lif(Unknown Source)
com.aspose.pdf.internal.l717.I1.l0l(Unknown Source)
com.aspose.pdf.internal.l697.II.hasNext(Unknown Source)
com.aspose.pdf.internal.l697.I7$I7.hasNext(Unknown Source)
com.aspose.pdf.internal.l85l.Il.(Unknown Source)
com.aspose.pdf.internal.l607.I51.l01(Unknown Source)
com.aspose.pdf.internal.l1067.I7.lif(Unknown Source)
com.aspose.pdf.internal.l1067.I7.lif(Unknown Source)
com.aspose.pdf.internal.l1034.I84.lif(Unknown Source)
com.aspose.pdf.I161.lif(Unknown Source)
com.aspose.pdf.I161.lif(Unknown Source)
com.aspose.pdf.ADocument.lif(Unknown Source)
com.aspose.pdf.ADocument.(Unknown Source)
com.aspose.pdf.Document.(Unknown Source)
awsCostOptimizer.cloudwatch_tracker.DevPackage.Aspose.Cells.HTMLToPDF.runFunction(HTMLToPDF.java:43)
configuration.api_structure.ApiStructure.mapHandler(ApiStructure.java:49)
handler.LocalHandler.main(LocalHandler.java:316)
at com.aspose.pdf.internal.l694.I7.lif(Unknown Source)
at com.aspose.pdf.internal.l607.I194.(Unknown Source)
at com.aspose.pdf.internal.l1021.I17.lif(Unknown Source)
at com.aspose.pdf.internal.l784.I1.lif(Unknown Source)
at com.aspose.pdf.internal.l784.I1.lif(Unknown Source)
at com.aspose.pdf.internal.l784.I07.lif(Unknown Source)
at com.aspose.pdf.internal.l83l.Il.lif(Unknown Source)
at com.aspose.pdf.internal.l607.I9l$1.ll(Unknown Source)
at com.aspose.pdf.internal.l607.I9l$1.lif(Unknown Source)
at com.aspose.pdf.internal.l607.I16l.lif(Unknown Source)
at com.aspose.pdf.internal.l607.I9l.l0if(Unknown Source)
at com.aspose.pdf.internal.l85l.Il$I7.lif(Unknown Source)
at com.aspose.pdf.internal.l717.Il.lif(Unknown Source)
at com.aspose.pdf.internal.l717.I1.l0l(Unknown Source)
at com.aspose.pdf.internal.l697.II.hasNext(Unknown Source)
at com.aspose.pdf.internal.l697.I7$I7.hasNext(Unknown Source)
at com.aspose.pdf.internal.l85l.Il.(Unknown Source)
at com.aspose.pdf.internal.l607.I51.l01(Unknown Source)
at com.aspose.pdf.internal.l1067.I7.lif(Unknown Source)
at com.aspose.pdf.internal.l1067.I7.lif(Unknown Source)
at com.aspose.pdf.internal.l1034.I84.lif(Unknown Source)
at com.aspose.pdf.I161.lif(Unknown Source)
at com.aspose.pdf.I161.lif(Unknown Source)
at com.aspose.pdf.ADocument.lif(Unknown Source)
at com.aspose.pdf.ADocument.(Unknown Source)
at com.aspose.pdf.Document.(Unknown Source)
at awsCostOptimizer.cloudwatch_tracker.DevPackage.Aspose.Cells.HTMLToPDF.runFunction(HTMLToPDF.java:43)
at configuration.api_structure.ApiStructure.mapHandler(ApiStructure.java:49)
at handler.LocalHandler.main(LocalHandler.java:316)

Regards,
Kushagra

TestReport123_2018-08-09 10-59-07.zip (2.8 KB)

@kushagra93

Thank you for contacting support.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFJAVA-37912 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

:+1::+1:

Thanks, so in order to track the issue status, do I need to login to JIRA?

  • Kushagra

@kushagra93

We are afraid that you may not access our internal issue tracking system (JIRA). However, you may make a request for issue progress in this thread or you can view issue status from bottom left column, under this thread.

I see, Airtight b​:+1::+1:

@Farhan.Raza

Any updates on it?

@kushagra93

Thank you for getting back to us.

We would like to update you that PDFJAVA-37912 is dependent on a respective .NET internal ticket which can take some months to resolve. We will certainly let you know once we have some significant updates about investigation or resolution. We appreciate your patience and comprehension in this regard.

@Farhan.Raza
Sure, No Worries!

The issues you have found earlier (filed as PDFJAVA-37912) have been fixed in Aspose.PDF for Java 19.5.