Hi,
When I tried converting a document to pdf, InvalidCasteException (“Unable to cast object of type ' ’ to type ' '.”) occurs. Code:
Document convertedDocument = new Document(@“test”);
convertedDocument.Save(“test.pdf”);
From the stacktrace it seems to come from convertedDocument.UpdatePageLayout(); so I tried this method and I saw the same exception.
I have attached the Word test document, could you please have a look on this?
Thanks,