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

Free Support Forum - aspose.com

Throwing java.lang.InternalError while converting PDF to PNG

Hi,


Aspose is throwing bellow error while converting PDF to PNG.

Still inside at end of active edge list!
num curves = 3
num links = 3
y top = 778.405517578125
y top of next curve = 780.4586639404297
Edge[Curve[3, (306.13848876953125, 781.6905517578125), (306.13848876953125, 779.1409301757812), (306.87384033203125, 778.405517578125), (307.7809753417969, 778.405517578125), U], L, I]
Edge[Curve[3, (307.7809753417969, 778.405517578125), (306.13848876953125, 779.5005493164062), (306.13848876953125, 780.5955810546875), (307.7809753417969, 781.6905517578125), D], L, O]
Edge[Curve[1, (307.7809753417969, 781.6905517578125), (307.7809753417969, 778.405517578125), U], L, I]
Exception in thread “main” java.lang.InternalError: Odd number of new curves!
at sun.awt.geom.AreaOp.resolveLinks(AreaOp.java:450)
at sun.awt.geom.AreaOp.pruneEdges(AreaOp.java:392)
at sun.awt.geom.AreaOp.calculate(AreaOp.java:159)
at java.awt.geom.Area.pathToCurves(Area.java:195)
at java.awt.geom.Area.(Area.java:126)
at com.aspose.pdf.internal.p487.z1.createStrokedShape(Unknown Source)
at sun.java2d.pipe.AAShapePipe.draw(AAShapePipe.java:60)
at sun.java2d.pipe.PixelToParallelogramConverter.draw(PixelToParallelogramConverter.java:148)
at sun.java2d.pipe.ValidatePipe.draw(ValidatePipe.java:154)
at sun.java2d.SunGraphics2D.draw(SunGraphics2D.java:2497)
at com.aspose.pdf.internal.p356.z42.m1(Unknown Source)
at com.aspose.pdf.internal.p356.z42.m2(Unknown Source)
at com.aspose.pdf.internal.p356.z42.m1(Unknown Source)
at com.aspose.pdf.internal.p356.z42.m1(Unknown Source)
at com.aspose.pdf.internal.p635.z8.m1(Unknown Source)
at com.aspose.pdf.internal.p632.z13.m1(Unknown Source)
at com.aspose.pdf.internal.p632.z13.m22(Unknown Source)
at com.aspose.pdf.internal.p571.z10.m1(Unknown Source)
at com.aspose.pdf.internal.p565.z20.m2(Unknown Source)
at com.aspose.pdf.internal.p565.z20.m4(Unknown Source)
at com.aspose.pdf.internal.p565.z7.m2(Unknown Source)
at com.aspose.pdf.internal.p565.z7.m1(Unknown Source)
at com.aspose.pdf.devices.z1.m1(Unknown Source)
at com.aspose.pdf.devices.z1.m1(Unknown Source)
at com.aspose.pdf.devices.ImageDevice.m1(Unknown Source)
at com.aspose.pdf.devices.PngDevice.processInternal(Unknown Source)
at com.aspose.pdf.facades.PdfConverter.getNextImage(Unknown Source)
at com.aspose.pdf.facades.PdfConverter.getNextImage(Unknown Source)

Attached PDF for your reference.

Hi Upendra,

Thanks for your inquiry. I have tested your scenario with shared document using Aspose.Pdf for Java 10.6.1 and managed to observe the reported exception. For further investigation, I have logged an issue in our issue tracking system as PDFNEWJAVA-35187 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

Best Regards,

Has this been fixed yet, I have the same issue…

Hi there,


Thanks for your inquriy. Our product team has completed the issue investigation and now they will plan its resolution. However please note most of the time issue varies from file to file, we will recommend you to share your sample PDF document here. We will look into it and will guide you accordingly.

We are sorry for the inconvenience.

Best Regards,

The issues you have found earlier (filed as PDFNEWJAVA-35187) have been fixed in Aspose.Pdf for Java 11.4.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.