aspose-pdf / Aspose.PDF-for-.NET

Aspose.PDF for .NET examples, plugins and showcase projects
MIT License
134 stars 57 forks source link

Nuget Nuget GitHub

.NET API to Process & Manipulate PDF Files

Integrate PDF creation, processing, manipulation & conversion features into your own .NET applications without needing Adobe Acrobat®.

Aspose.PDF for .NET allows to work with PDF documents, pages, text, images, attachments, fonts, bookmarks, annotations, forms, operators, stamps, watermarks, links, security, signatures, and printing.

Directory Description
Demos Source code for the live demos hosted at https://products.aspose.app/pdf/family.
Docker Source code of examples based on Docker-containers.
Examples A collection of .NET examples that help you learn the product features.
Showcases Standalone ready-to-use applications that demonstrate some specific use cases.
Plugins Visual Studio plugins of Aspose.PDF for .NET.

PDF Processing via .NET

Read & Write PDF & Other Formats

Fixed Layout: PDF, PDF/A, PDF/UA, XPS\ Books: EPUB\ Web: HTML, MHTML\ Other: TEX, CGM, XSLFO, XML, PCL, SVG

Save PDF Documents As

Microsoft Office: DOC, DOCX, XLS, XLSX, PPTX\ Images: JPEG, PNG, BMP, TIFF, EMF\ Other: MobiXML, XML

Read Formats

PostScript: PS

Platform Independence

Aspose.PDF for .NET can be used to build applications for Windows, Mac OS X x64 as well as for Linux x64. Developers may also code in PHP, VBScript, Delphi & C++ programming languages while using Aspose.PDF for .NET via COM Interop.

Getting Started with Aspose.PDF for .NET

Are you ready to give Aspose.PDF for .NET a try? Simply execute Install-Package Aspose.PDF from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.PDF for .NET and want to upgrade the version, please execute Update-Package Aspose.PDF to get the latest version.

Create a PDF Document from Scratch

// initialize document object
Document document = new Document();
// add a page
Page page = document.Pages.Add();
// add text to the new page
page.Paragraphs.Add(new Aspose.Pdf.Text.TextFragment("Hello World!"));
// save PDF document
document.Save(dir + "output.pdf");

Save PDF as Office & HTML Formats

One of the most popular feature of Aspose.PDF for .NET is to convert PDF documents to other formats without needing to understand the underlying structure of the resultant format.

Give the following snippet a try with your own samples:

// load the file to be converted
var pfile = new Aspose.Pdf.Document(dir + "template.pdf");
// save in different formats
pfile.Save(dir + "output.docx", Aspose.Pdf.SaveFormat.DocX);
pfile.Save(dir + "output.pptx", Aspose.Pdf.SaveFormat.Pptx);
pfile.Save(dir + "output.html", Aspose.Pdf.SaveFormat.Html);

Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License