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
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.
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.