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

Free Support Forum - aspose.com

.net core aspose.pdf library usage on linux container


We are using the ASPOSE.PDF .net core library for pdf creation. And teh code works fine on Windows container. But it fails with below error for Lunux container.

​ : Unexpected font parsing exception —> System.IO.DirectoryNotFoundException: Could not find a part of the path ‘/usr/share/fonts/truetype/msttcorefonts’.

2018-12-26T14:04:51.909+05:30 [APP/PROC/WEB/0] [OUT] at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)

2018-12-26T14:04:51.909+05:30 [APP/PROC/WEB/0] [OUT] at System.IO.Enumeration.FileSystemEnumerator`1…ctor(String directory, EnumerationOptions options)

2018-12-26T14:04:51.909+05:30 [APP/PROC/WEB/0] [OUT] at System.IO.Enumeration.FileSystemEnumerable`1…ctor(String directory, FindTransform transform, EnumerationOptions options)

2018-12-26T14:04:51.909+05:30 [APP/PROC/WEB/0] [OUT] at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles(String directory, String expression, EnumerationOptions options)

2018-12-26T14:04:51.909+05:30 [APP/PROC/WEB/0] [OUT] at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)

2018-12-26T14:04:51.909+05:30 [APP/PROC/WEB/0] [OUT] at System.IO.Directory.GetFiles(String path)

Can we get the know the recommendation from aspose team regarding this?


Thank you for contacting support.

Would you please create a narrowed down sample application along with source files, if any. We will try to reproduce and investigate it in our environment. Before sharing requested data, please ensure using latest version of the API.


Is this issue resolved? We are doing feasibility check to run Aspose.Pdf using .net core 2.x on linux container.
Let me know if we have this support from Aspose.


Can you please share source file along with complete working sample project and version details so that we may further investigate to help you out.