TextBuilder constructor throws exception

Using Aspose Pdf 18.9.0 running on AWS Lambda .NET Core 2.0 or 2.1 environment
which has .Net Core apps running on Amazon Linux.

Document doc = new Document(inputFilename);
Page firstPage = (Page)doc.Pages[1];
TextBuilder textBuilder = new TextBuilder(firstPage);

throws

Object reference not set to an instance of an object.: NullReferenceException
at ​ .(Operator )
at ​ .()
at ​ .(BaseOperatorCollection , Resources , Page )
at ​ .(BaseOperatorCollection , Resources )
at ​ .()
at Aspose.Pdf.Text.TextBuilder…ctor(Page page)

The problem does not occur when running the application on a Windows machine where my app is being
built

@PeteLee

Thank you for contacting support.

Would you please share a narrowed down sample application reproducing this behavior so that we may try to reproduce and investigate it further.

This is the code that fails:

Document doc = new Document(inputFilename);
Page firstPage = (Page)doc.Pages[1];
TextBuilder textBuilder = new TextBuilder(firstPage);

This is the PDF used to repro the exception (I am trying to add additional invisible text to it)

Again … this works on .NET CORE on Windows, does not work on .NET CORE 2.0 or 2.1 on a
AWS lambda image

Let me know if I can help to troubleshoot the issue

@PeteLee

Thanks for sharing sample document and code snippet.

We are in process to set up specific environment for Linux. As soon as we complete setting up the environment, we will test the scenario and address it accordingly. Please spare us little time.

@PeteLee

Thank you for being patient.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-45410 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.