Create and add content to PDF documents in ASP.NET MVC
Create Adobe PDF documents from your web applications using ComponentOne PDF™ for ASP.NET MVC. The commands provided for adding content to documents are similar to the ones available in the .NET Graphics class. PDF for ASP.NET MVC comes with security, compression, outlining, hyperlinking, and attachments.
Fast Rendering and Compression of Images in Metafiles
Metafiles are not converted into bitmaps. Instead, they are parsed and converted into vector graphics commands, retaining the best possible resolution. This is especially useful for adding charts or technical drawings to your PDF document.
Use the AddField method to add Acrobat form fields to your PDF documents. This PDF control supports these field types: text box, check box, radio button, push button, combo box, and list box.
Use the DrawStringHTML method to render HTML into your PDF documents. You can flow HTML content into multiple pages or columns, use existing style sheets, and mix HTML with other types of content — like images, RTF, plain text, form fields, and so on.
Familiar Syntax Using DrawImage Method
Adding images to PDF documents is easy: all the work is done by the DrawImage method. DrawImage draws a given image at a specified location, and has parameters that provide control over the image alignment and scaling. You can render any regular .NET Image object, including metafiles.
Manage Document Permissions
Allow users to copy and edit content, restrict users from printing the document, set annotation edit permission to the user, and more.
Attachments can contain any kind of file, including spreadsheets with detailed information that would clutter the main document, multimedia files with movies and sound, sample code, and more. Adding an attachment to your PDF file is easy: simply specify which file you want to attach and what area of the page should contain the attachment. You can also specify the attachment's appearance.
If your PDF documents contain sensitive information, you can encrypt them so that only authorized users can access them. The document's owner has a separate password from all other users. The user's access can be selectively restricted to only certain operations, like viewing, printing, or editing the document.
Add lines, rectangles, ellipses, pies, arcs, rounded rectangles, polygons, Bezier curves, and more.
Most long PDF documents contain an outline structure that is displayed on a pane on the left of the reader. The outline makes it easy to browse through a document's structure and find specific topics. With PDF for ASP.NET MVC, you can build this outline structure by adding outline entries — which are also known as bookmarks.
PDF for ASP.NET MVC provides methods for adding hyperlinks and hyperlink targets to your PDF documents. You can also add local links that take the user to another location within the same PDF document when they're clicked on.
Document Metadata and Preferences
With PDF for ASP.NET MVC, you can add meta data to the PDF documents you create. Specify author, creation date, keywords, and so on. You can also provide default viewer preferences to be applied when the document is opened in the Adobe Reader. Specify the initial page layout and window position, as well as the reader toolbar and menu visibility.
- Templates & Scaffolders
- Standard Template
- AJAX Binding Template
- Model Binding Template
- Spreadsheet Template
- ASP.NET MVC Control Wizard
- Input & Editing
- Color Picker
- Masked Input
- Numeric Input