Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Words can load even such a complex format as PDF. This opens up new opportunities: it is possible to convert PDF to Word or other formats that bring users far ahead in solving many applied problems.
The most popular conversion from PDF is conversion to Microsoft Word formats such as DOCX, DOC, as well as image formats such as JPG or PNG. With that said, converting a document from one format to another performs in a familiar way.
The following code example shows how to convert a document from PDF to DOCX:
// For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-.NET.git. | |
Document doc = new Document(MyDir + "Pdf Document.pdf"); | |
doc.Save(ArtifactsDir + "BaseConversions.PdfToDocx.docx"); |
Aspose.Words provides you with the PdfLoadOptions class, which allows more precise control over how PDF documents are loaded.
Most properties inherit or overload properties that already exist in the LoadOptions
class. In addition to them, a number of properties are specified for PDF format. For example, you can use the PageCount and PageIndex properties to define the page range to be loaded from a PDF document, and the SkipPdfImages properties to control whether images should be skipped when loading PDF. Another supported parameter is the Password, which must be provided for password-protected documents.
PDF2Word plugin currently supports the following data types:
Some features are still in early development or included in the development roadmap:
PAGE
and NUMPAGES)During a PDF document conversion, one of the following exceptions might happen:
Exception | Description |
---|---|
FileLoadException |
A PDF file cannot be processed for some reason.
You can report the issue to the development team for a detailed investigation using the technical support.
|
DrmProtectedFileException |
A PDF file is protected by Adobe DRM and cannot be decoded by Pdf2Word. |
PasswordProtectedFileException |
The correct password must be provided for a password-protected PDF. |
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.