Hi, our subscription is expired, but we are evaluating the current version for .Net Core.
And here is the Problem.
Code:
ImageDevice jpegDevice = new PngDevice((int)actualwidth, (int)actualheight, resolution);
MemoryStream result = new MemoryStream();
jpegDevice.Process(pdfDocument.Pages[page], result);
Leads to:
System.ArgumentOutOfRangeException: ‘Length cannot be less than zero.’
System.String.Substring(Int32 startIndex, Int32 length)
at .()
at .(FontSource )
at .()
at .()
Any access to a property of FontRepository will lead to the same exception.
The System runs on docker/linux.
Base is microsoft/aspnetcore:2.0
Can you please help us?
Best Regards
Andreas
@aturowski,
Kindly send us your source PDF and the complete code. We will investigate and share our findings with you.
TodoApi.zip (1.2 MB)
Thank you. Here is the project, including the PDF. The code is in TodoController.cs.
@aturowski,
We have tested your source PDF document with the latest version 18.1 of Aspose.Pdf for .NET API and unable to replicate the said error in our environment. Please download and try the latest version 18.1 of Aspose.Pdf for .NET API, and then let us know how that goes into your environment.
You can get a 30 day temporary license from the purchase portal and its option is available in step 5. You will see a button with caption Get a Temp License in step 5 of the purchase portal. A temporary license is a time-restricted full license that lets you test every aspect of the API before renewing or buy it.
Did you tested it with the docker file in the project (Linux)? I tested it with 18.1 (Latest Version).
@aturowski,
We have tested your source file without docker file. We are working to setup the docker environment in our local Windows environment. Please also share the complete details of your Linux environment.
Yes, I know that it works on native windows. We have used Windows 10 with Hyper-V and Docker. The Linux distribition in this scenario is Debian. You can start the docker file directly from the solution i have sent you.
@aturowski,
Thank you for the details. We will investigate and share our findings with you in the next week.
Hi, we are still waiting for an answer. Before we renew our subscriptions, we need a guarantee that Aspose.Pdf, Word , Cells, Email and Slides will work on .Net Core with Windows/Linux on Docker until June/July 2018. Can you help us with this information? Regards, Andreas
@aturowski
Thanks for writing back and sorry for keeping you wait.
We are definitely working over investigating the scenario and gathering all information for respective APIs. As shared earlier, we will surely share our findings and feedback with you in current week. We really appreciate your patience and comprehension in this regard.
We are sorry for the inconvenience.
Hi, anything new? We found out that we have the same problem with native Linux.
@aturowski,
In reference to the Aspose.Slides and Aspose.Cells APIs, the .NET Core is not supported. We have already logged feature requests under the ticket IDs SLIDESNET-37572 and CELLSNET-43816. We have linked your post to these tickets and will keep you informed regarding any available updates.
We have prepared an instance of Windows 10 Enterprise with docker, and facing ‘MobyLinuxVM’ failed to initialize error. We will get back to you soon once it is resolved. Meanwhile, please send all complete details regarding the scenarios of Aspose.Words and Aspose.Email APIs, including source documents and code.
You find the complete VS Solution in my second post.
@aturowski,
It is about the PDF API scenario. You may not share the complete project, but share the scenario details regarding the Aspose.Email and Aspose.Words APIs, including source documents and code.
You HAVE source documents and code. We want to create PDFs from Images, convert word to PDF, save Images from Word, PDF and email. And I sent you a bug report with stacktrace. What else do you want? Do you want to hold me out??? I’m not pleased with the progress of this issue.
@aturowski,
You have shared source PDF and code. We do not have the source Word and email documents. Anyways, we are working over the Docker environment and will get back to you as soon as possible.
You can use any word file and any email. The problem occurs independently from the source file.
And you can use native Linux too, to reproduce it.
@aturowski,
In reference to the Aspose.Pdf for .NET API, we have logged this problem under the ticket ID PDFNET-44157 in our bug tracking system. Aspose.Words API throws an error in Docker and we have already logged an investigation under the ticket ID WORDSNET-16429. We have linked your post to these tickets and will keep you informed regarding any available updates. We are investigating in perspective of Aspose.Email API and will get back to you soon.
Really? After 3 weeks? What is worth waiting for…
@aturowski,
We have recently added support of .NET core and still in the progress for some Aspose for .NET APIs. The compatibility of Aspose for .NET APIs with Docker is dependent on internal feature support. However, it is difficult to say anything before the completion of analysis phase. We recommend our clients to post their critical issues in the paid support forums. In order to escalate the priority, you can also post tickets in the paid support forums. Please refer to this help topic: Aspose - Paid Support Helpdesk