Hi,
When converting a DOCX to PDF using Aspose.Words, I got NullReferenceException.
Code:
var doc = new Document(@".\test.docx");
doc.LayoutOptions.TextShaperFactory = HarfBuzzTextShaperFactory.Instance;
doc.Save(@".\out.pdf");
The exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Aspose.Words.Themes.Theme.wlzu9jpn652rfznunjnnxf3ddlam7k7h (ThemeColor )
at .(Int32 , )
at .( , , Int32 , )
at .( , , , , Int32 )
at . ()
at .()
at .(ShapeBase , )
at . ( )
at .(ShapeBase )
at .(ShapeBase , )
at .( , Boolean )
at .( )
at .( )
at . ()
at .()
at . ()
at . ()
at . ()
at .()
at .(Boolean , Int32 )
at .(Boolean )
at .( )
at .( , Int32 )
at .( )
at .( )
at .( , Int32 , Boolean )
at .( , Int32 , Boolean )
at .()
at .( , Int32 , Boolean , Boolean )
at .( , Boolean )
at .( )
at .( , Int32 , Boolean )
at .()
at .( , Int32 , Boolean , Boolean )
at .()
at .( , Int32 )
at .( , Int32 )
at .( )
at .()
at .( )
at .( )
at .( )
at . ()
at .()
at Aspose.Words.Document.UpdatePageLayout()
at . ()
at .( )
at .( , )
at .(Node )
at Aspose.Words.Document.UpdateFields()
I’ve attached the test document for your reference. Could you please help us take a look at this?
test.docx (84.1 KB)
Thanks,