Product Reviews

Create Documents with Aspose.Pdf for .NET

When it's time to create a document, PDF is often the format that your users prefer. Aspose.Pdf provides the coding support that lets you build PDF documents on the fly.

About a month ago, in a ToolTracker blog post entitled "Tool Markets You Don't Even Know About", I mentioned PDF document creation as a tool market that you may not have heard of. In that market, Aspose is one of the leaders with a suite of tools for creating PDF documents.

The Aspose.Pdf document-creation tool is more than just a PDF printer driver. Aspose.Pdf allows you to build a PDF document on the fly, inserting text, tables, graphs and more as you need them.

And, unlike creating a document in Microsoft Word using automation, Aspose.Pdf does it using a set of native Microsoft .NET Framework tools -- you don't even need to have Adobe Acrobat installed on the computer.

Creating simple documents is easy with Aspose.Pdf. More importantly, from a database developer's point of view, the software lets you create data-driven templates. You define an XML template using Extensible Stylesheet Language Formatting Objects (XSL-FO) and bind it to the Aspose.Pdf document to specify the structure of your document. While you can't load a complete document from your data as you would load a grid control, slotting data into your document is easy. The Aspose.Pdf FillTable method lets you transfer data from .NET DataTables to a document table in a single statement.

I found the Aspose.Pdf object model clean and easy to understand. However, as with any document-creation system, creating complex documents can be challenging, especially if you're worried about aesthetics.

I have two criticisms, one major and one minor. First, the major complaint: Creating XSL-FO templates is key to generating data-driven reports with Aspose.Pdf. Unfortunately, Aspose.Pdf doesn't include a tool to support creating those templates -- your best strategy is to start with one of the templates included in the many sample applications provided with Aspose.Pdf and modify it. You can download the schema for XSL-FO from Aspose and use that within Visual Studio to ensure that the templates you create are valid.

Which leads to my minor criticism: While Aspose provides a full range of sample applications, they're all Visual Studio 2003/2005 projects. When I converted the sample applications to Visual Studio 2010, I had to re-reference the Aspose library and reset the application's .NET version before they would run. That took me five minutes that Aspose could have spent on its end. Still, Aspose.Pdf is a capable and easy-to-use PDF creation tool with some intriguing data-centric talents.

Aspose.Pdf

Aspose
Web: aspose.com
Phone: 888-277-6734
Price: $599 for developer Enterprise license with Standard Support
Quick Facts: Native .NET objects for creating and displaying PDF documents with Adobe Acrobat in both Web and desktop environments
Pros: Powerful data-driven tools for creating simple and complex documents on the fly
Cons: No support tools (other than a schema) for creating document templates



About the Author

Peter Vogel is a system architect and principal in PH&V Information Services. PH&V provides full-stack consulting from UX design through object modeling to database design. Peter tweets about his VSM columns with the hashtag #vogelarticles. His blog posts on user experience design can be found at http://blog.learningtree.com/tag/ui/.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube