HomeCommunityControl GalleryManagement & ReportingAspose.Pdf for .NET

Aspose.Pdf for .NET



(2) Submit a Review

1,529 Downloads

29,370 Views


Description

Aspose.Pdf is a .Net Pdf component for the creation and manipulation of Pdf documents without using Adobe Acrobat. Create PDF by API, XML templates & XSL-FO files. It supports form field creation, PDF compression options, table creation & manipulation, graph objects, extensive hyperlink functionality, extended security controls, custom font handling, add or remove bookmarks; TOC; attachments & annotations; import or export PDF form data and many more. Also convert HTML, XSL-FO and MS WORD to PDF.

PDF Document Creation and Manipulation Features

Aspose.Pdf for .NET lets you create new and manipulate existing PDF documents in C#,VB.NET. With the Aspose.Pdf API you can transform image, XML, XSL-FO, HTML, SVG or simple text files into PDF files. You can specify XMP metadata, author details, creator details, and title information during PDF generation. The product allows you to generate PDF/A-1a or PDF/A-1b documents. Aspose.Pdf for .NET is features rich and lets you specify different bookmark levels for different headings in a document. You can set the compression level of the document, default document open action (fit to page or fit box), document open mode or even the appearance to thumbnails or bookmarks. You can further set page orientation from portrait to landscape and define the document zoom factor. To control how the file displays you can specify different page transition effects such as dissolve or box.
Table Features
Aspose.Pdf for .NET allows you to add tables to PDF documents, where you can specify the table border style, margin and padding information, column widths and spanning options, control row splitting attributes, create nested tables, clone table objects or simply import it

Syntax Example

Merge Xml Files in PDF Document Sometimes different PDF documents share some same content. For example, a number of PDF documents may have the same header or footer. In such cases, a lot of code duplication might be experienced by developers. To reduce this code duplication, it's a good practice to save the content (shared by multiple PDF documents) into different XML files and then merge the XML files together before generating PDF documents. [C#] FileStream fs1 = new FileStream(@"D:\AsposeTest\Example.xml", FileMode.Open); FileStream fs2 = new FileStream(@"D:\AsposeTest\Example.xslt", FileMode.Open); Pdf pdf1 = new Pdf(); pdf1.BindXML(fs1, fs2); pdf1.Save("D:/Asposetest/XMlXSLTMERGE.pdf"); fs1.Close(); fs2.Close(); Example: .Net Framework 1.1 and VS 2003 [C#] XmlDocument xmlDoc = new XmlDocument(); MemoryStream ms = new MemoryStream(); XslTransform xsl = new XslTransform(); xsl.Load("test.xslt"); xsl.Transform(xmlDoc,null,ms); ms.Position = 0; xmlDoc.Load(ms); ms.Close(); Pdf pdf = new Pdf(); pdf.BindXML(xmlDoc,null); pdf.Save("e:/temp/test.pdf"); [VB.NET] Dim xmlDoc As XmlDocument = New XmlDocument() Dim ms As MemoryStream = New MemoryStream() Dim xsl As XslTransform = New XslTransform() xsl.Load("test.xslt") xsl.Transform(xmlDoc, Nothing, ms) ms.Position = 0 xmlDoc.Load(ms) ms.Close() Dim pdf As Pdf = New Pdf() pdf.BindXML(xmlDoc, Nothing) pdf.Save("e:/temp/test.pdf") [test.xslt] <?xml version="1.0" encoding="utf-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <Pdf xmlns="Aspose.Pdf"> <Section> <Header> <xsl:copy-of select="document('header.xml')"/> </Header> <xsl:copy-of select="document('content.xml')"/> </Section> </Pdf> </xsl:template> </xsl:stylesheet> [header.xml] <Text> <Segment>header</Segment> </Text> [content.xml] <Text> <Segment>Hello world</Segment> </Text>

Screenshots

Reviews

Submit a review

PDF Automation on Custom Development

Reviewed by: aolano74 on Tuesday, January 08, 2008

5 Stars

With Aspose PDF for .NET, our technology has the ability to create .PDF files on the fly. We can store such documents for future references, share them internally within the organization and share them with customers in almost real time. We also eliminated the need for other technologies at the customer site as almost all of them use .PDF readers. The Aspose PDF for .NET is an easy to use product, with a good cost/benefit relation, it is solid and in our experience maintenance free

Powerful product, and helpful support!

Reviewed by: c46 on Sunday, December 02, 2007

5 Stars

We are utilizing ASPOSE.Pdf for two purposes. One is in combination with Aspose.Words to convert Word documents to PDF format via Aspose.Pdf.xml. A client needed functionality to upload MS Word documents, and provide PDF and HTML versions to their users available almost instantly. The documentation and demos provide all the help anyone needs to use this component. A second use is for creation of PDF certificate letters that are generated dynamically when a user finishes an online course. We would recommend this product to anyone who is looking to create/manipulate PDF documents through their .NET application.