RunExamples ConvertToPdf ERROR

I’ve downloaded example and set the temporary license.

When I run the RunExamples.ConvertToPdf
below error occurs.

My environment : MacBook Air M2.
OpenJDK8, 17 both have the same ERROR…

What I did is

  1. pathVarable fix from “\” → “/”
  2. Just run 2 functions
  • SetLicenseFromFile.run();
  • ConvertToPdf.run();

/////////////ERROR LOG //////////////////////
Exception in thread “main” com.groupdocs.conversion.legacy.exceptions.GroupDocsException: java.lang.IllegalArgumentException: Expected a value between 0 and 2892.
Parameter name: index
at com.groupdocs.conversion.documents.ad.getPagesCount(Unknown Source)
at com.groupdocs.conversion.converting.operations.PagesLimitOperation.pageNumber(Unknown Source)
at com.groupdocs.conversion.converting.operations.PagesLimitOperation.pageLimitWordProcessing(Unknown Source)
at com.groupdocs.conversion.converting.operations.PagesLimitOperation.access$400(Unknown Source)
at com.groupdocs.conversion.converting.operations.PagesLimitOperation$3.a(Unknown Source)
at com.groupdocs.conversion.converting.operations.PagesLimitOperation.limitDocumentPages(Unknown Source)
at com.groupdocs.conversion.converting.operations.PagesLimitOperation.execute(Unknown Source)
at com.groupdocs.conversion.pipeline.e$1$1.a(Unknown Source)
at com.groupdocs.conversion.converting.operations.RemoveCommentsOperation.execute(Unknown Source)
at com.groupdocs.conversion.pipeline.e$1$1.a(Unknown Source)
at com.groupdocs.conversion.converting.operations.PreProcessWordProcessingDocumentOperation.execute(Unknown Source)
at com.groupdocs.conversion.pipeline.e$1$1.a(Unknown Source)
at com.groupdocs.conversion.pipeline.d.execute(Unknown Source)
at com.groupdocs.conversion.pipeline.g.a(Unknown Source)
at com.groupdocs.conversion.pipeline.g.a(Unknown Source)
at com.groupdocs.conversion.b.convert(Unknown Source)
at com.groupdocs.conversion.Converter.convert(Unknown Source)
at com.groupdocs.conversion.Converter.convert(Unknown Source)
at com.groupdocs.conversion.examples.basic_usage.convert_to_pdf.ConvertToPdf.run(ConvertToPdf.java:24)
at com.groupdocs.conversion.examples.RunExamples.main(RunExamples.java:83)
Caused by: java.lang.IllegalArgumentException: Expected a value between 0 and 2892.
Parameter name: index
at com.groupdocs.conversion.internal.c.a.w.internal.Sv.n(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.yX.zzWuo(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.yX.get(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.abA.brG(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.iv.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.iv.b(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.agT.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.qS.yEA(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.qS.yEy(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.qS.(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.qS.(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zztv.zzXQZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzYfT.zzWTK(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzYfT.zzXvn(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXvW.zzLK(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzYfT.zzLK(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXvW.zzZmX(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXvW.zzXvn(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXvW.zzLK(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXvW.zzZmX(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXvW.zzXvn(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXvW.zzLK(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXvW.zzZmX(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzYCf.zzZmA(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzWgP.zzuZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzWgP.zzZ7q(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzWgP.zzZPz(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzH0.zzWpo(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzWgP.getWidth(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzHn.zzZGk(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzW4P.zzYCV(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzWAD.zzWZl(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzWAD.zzXRc(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzWAD.zzZqQ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXkn.zzXQZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXkn.zzWTj(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzW5Z.zzVX9(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzW5Z.zzYJT(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZE9.zzYsU(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZE9.zzZfH(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZE9.zzfO(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzX89.zzY5h(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzX89.zzfO(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXv.zzZ2w(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXv.zzZfH(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXv.zzXQZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXgV.zzWSK(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXgV.zzXRc(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzXgV.zzZfH(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzVQ6.zzMy(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzVQ6.zzWLY(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzVQ6.zzW7I(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzVQ6.zzWW5(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz3t.zzWW5(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzCp.zzfO(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzWNR.zzWkz(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzVN.zzgB(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.updatePageLayout(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.zzZ3F(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.getPageCount(Unknown Source)
… 20 more

/////////////////

@GaryYKim
This issue is under investigation. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CONVERSIONJAVA-2351

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Sorry, Problem solved by myselft.

It was not processor problem
But was the Download Folder of MacBook’s problem.

Should avoid excuting source from Download Folder.

~thanks.

1 Like

@GaryYKim

Glad to know that the issue is resolved.