When I converting in windows everything is ok.
When I converting in ubuntu (16.04 and 18.04) null reference occours.
Object reference not set to an instance of an object. stack trace at . ( )
at . ( )
at . ( )
at .( )
at .()
at . ()
at ( )
at . ( )
at Aspose.Words.Document.( , SaveOptions )
at Aspose.Words.Document.(Stream , String , SaveOptions )
The document include picture (the document is included in zip file).
If you still face problem, please share the source code without compilation errors that you are using at your end. Please also share the steps to reproduce this issue at our end. We will investigate the issue on our side and provide you more information on it.
Hi thank you for quick answer.
I tested again on clean ubuntu mashine. Everything was ok, pdf was generated.
Then I installed apt install libfontconfig-dev and above error occurs.
Thanks your patience. We have tested the scenario using the latest version of Aspose.Words for .NET 19.1 at Ubuntu 18.04 and have not found the shared issue. We have followed the following steps to test this case:
Create sample application to convert DOTX to PDF in Visual Studio 2017 at Windows 10.
Publish it for Linux operating system.
Run the following command at Ubuntu 19.04
sudo apt-get install libfontconfig-dev
Run the application at Ubuntu to convert DOTX to PDF.
No exception is thrown. PDF is converted successfully.
I think I know when error will be thown. If you add to your project below references
PackageReference Include=“SkiaSharp” Version=“1.68.0”
PackageReference Include=“SkiaSharp.NativeAssets.Linux” Version=“1.68.0”
When I removed it, pdf was generated in all cases.
Thanks for sharing the detail. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-18005. You will be notified via this forum thread once this issue is resolved.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.