English
 English

PDF API for .NET to process, edit, and accurately convert PDF documents

Experience powerful PDF editing functionality, conversion, and parsing capabilities without needing Adobe Acrobat. Render PDF documents to DOC, DOCX, PPTX, XLS, JPG, PNG, GIF, SVG, and other formats in your .NET apps.

Download Free TrialView All APIs

Take PDF document processing to the next level in C# .NET

Upgrade your .NET document processing applications by integrating comprehensive PDF manipulation features with the help of Aspose.PDF for .NET. This native library is loaded with immaculate PDF file processing abilities enabling .NET developers not only to generate, process, edit, and parse PDFs but accurately convert PDF documents too. Quickly and easily insert text, annotations, and images to PDF documents, add or remove attachments, watermarks, and bookmarks, split or merge PDF pages, and process form fields in your PDF files using this PDF API for .NET.

Offering matchless cross-platform compatibility, Aspose.PDF for .NET is designed to function seamlessly across multiple frameworks such as .NET Framework and .NET Core among others. Additionally, you can use this .NET PDF API to build PDF converter applications in C#, ASP.NET, and VB.NET and convert PDF to JPG, PDF to Excel, PDF to Word, PDF to PowerPoint, and several other file formats with high fidelity.

Getting Started

To correctly set up and use Aspose.PDF for .NET API, please check the below-given information. Please refer to the System Requirements page for a list of prerequisites to successfully set up the PDF API for .NET

Aspose.PDF for .NET Installation

To set up Aspose.PDF for .NET on your system, you can download the DLLs or the MSI Installer directly from the downloads section. Alternatively, you can make use of the NuGet package for the .NET PDF API installation. The package manager API command is given below.

PM> Install-Package Aspose.PDF

How to Convert PDF to Word in .NET and Quickly Merge PDFs

Aspose.PDF for .NET supports a vast array of document processing features, including converting PDF to Word and other file formats and merging PDFs in .NET. Using this .NET library, experience fully independent PDF document processing without relying on any third-party software.

Convert PDF to Word in .NET

Upgrade your existing .NET PDF conversion apps by integrating PDF to Word conversion functionality. Aspose.PDF for .NET API lets you convert PDF to DOC and PDF to DOCX within your .NET document conversion apps. Please refer to the following instructions and the code snippet to help yourself convert PDF to Word in .NET:

  • Create an instance of Document object with the source PDF document.
  • Save it to SaveFormat.Doc format by calling Document.Save() method.
public static void ConvertPDFtoWord()
{
    // Open the source PDF document
    Document pdfDocument = new Document(_dataDir + "PDFToDOC.pdf");
    // Save the file into MS document format
    pdfDocument.Save(_dataDir + "PDFToDOC_out.doc", SaveFormat.Doc);

}

Merge PDF Files in .NET

Merging PDF files is supported by Aspose.PDF for .NET API. Please check the below-given instructions and code snippet to quickly and easily merge PDF files in your C# .NET apps:

  • Create two Document objects, each containing one of the input PDF files.
  • Then call the PageCollection collection’s Add method for the Document object you want to add the other PDF file to.
  • Pass the PageCollection collection of the second Document object to the first PageCollection collection’s Add method.
  • Finally, save the output PDF file using the Save method.
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_Pages();

// Open first document
Document pdfDocument1 = new Document(dataDir + "Concat1.pdf");
// Open second document
Document pdfDocument2 = new Document(dataDir + "Concat2.pdf");

// Add pages of second document to the first
pdfDocument1.Pages.Add(pdfDocument2.Pages);

dataDir = dataDir + "ConcatenatePdfFiles_out.pdf";
// Save concatenated output file
pdfDocument1.Save(dataDir);

For more working examples and code samples of Aspose.PDF for .NET API, please visit our GitHub examples page. If you are looking to view, edit, merge, split, annotate, compare, or convert PDF documents on the fly, please check out our free online PDF processing apps.

Secure PDF file processing in .NET

Aspose.PDF for .NET is a fully secure PDF processing library providing security features such as digital signature support, password protection, and encryption. This ensures dependable access, processing, and transmission of your PDF documents while preventing unauthorized access and modification. Furthermore, you do not need to install Adobe Acrobat to use this .NET PDF processing API.

FAQ

1. How can I convert PDF in .NET?

Converting PDF in .NET is easy and straight forward using Aspose.PDF for .NET API. It only requires a few lines of code and you can convert PDF files to multiple file formats.

2. How long it takes to merge or convert PDF?

The .NET PDF API works fast and processes your merge or convert document requests in no time.

3. Is it safe to process PDF using a the .NET PDF API?

Of course! You can rest assured about the security of your documents while processing them using Aspose.PDF for .NET API. We ensure the privacy of your data and take all required measures to provide you with a secure user experience.

4. Can I process PDF on Mac OS, Windows, or Linux?

Yes, the .NET PDF manipulation API works across different OS, frameworks, and operating environments. You can use it on the platform of your choice. Our .NET PDF library does not require any additional software installation to function.

Looking for help?

Checkout our support channels for help with your questions related to Aspose product API features and working.

Ready to get started?

Download Free Trial View All APIs