Aspose.pdf.document to aspose.words.document

I have a Aspose.Pdf.Document I would like to change to a Aspose.Words.Document

How can I do this the easy way?

Hi Mikkel,


Thanks for contacting support.

Aspose.Pdf and Aspose.Words are two separate API’s. However both API’s have class named Document. So in case you need to use Aspose.Words.Document class, you need to add Aspose.Words for .NET reference in your project.

I’m aware that these classes are in different API’s.
My was that I couldnot controle margines in a Aspose.Pdf.Document when I loaded HTML.
I could do this in Aspose.Words.Document. But Words didn’t keep the HTML styling.

So I would create the document in PDF API and then needed a way to cast/transform this into the Words API.

I updated the Aspose.PDF API to 10.9, and can now controle the margine.
No need for this cast/transform anymore.

Hi Mikkel,

Thanks for your feedback. It is good to know that you have managed to accomplish your requirements.

However in reference to your above question, you can not use Aspose.Pdf Document object in Aspose.Word directly. But you can convert PDF to DOC(X) using Aspose.Pdf and later can manipulate resultant DOC(X) with Aspose.Words.

Please feel free to contact us for any further assistance, we will be more than happy to extend our support.

Best Regards,