PDFBundle4NET (PDFView4NET WinForms Edition + PDF4NET) について


PDFBundle4NET は PDF4NET と PDFView4NET を含みます。どんな .NET アプリケーションからでもその場その場でPDF ファイルの作成・編集を可能にするPDF4NET は .NET ライブラリです。ライブラリは少数のコードで、複合した PDF 書類の作成、あるいは既存の PDF ファイルを編集することを可能にするシンプルな API を提供します。コア機能は3つのメインエリアに分けられることができます。PDF 作成、 PDF 編集と PDF フォームフィリング。PDFView4NET は、.NET アプリケーションで PDF ファイルを閲覧およびプリントできる.NET ツールキットです。どんな .NET アプリケーションからでも PDF ファイルを生成してプリント、Windows Forms と .NET ライブラリのためのPDF ビューアーコントロールを含みます。PDF viewer control for Windows Forms はPDF ファイルに注釈を付けること、ブックマークナビゲーション、添付ファイルの追加、削除等の機能を含んでいます。ツールキットはそれ自身の PDF レンダリングエンジンを含み、PDF ファイルの生成、プリントのための他のいかなるソフトウェアも必要としません。

PDF4NET is a .NET library for creating, editing and filling PDF documents on the fly from any .NET application.

The library provides a simple API that allows to create complex PDF documents, or to edit existing PDF files with a few lines of code. Its core functionality can be divided into 3 main areas: PDF creation, PDF editing and PDF forms management.

Using PDF4NET, a developer can create PDF files from any .NET compatible language, like C# or VB.NET. The drawing architecture is similar to GDI+, so if you know how to draw on the screen then you know how to create a PDF file. The PDF creation features include both basic and advanced features, allowing the developer to create PDF files of any complexity.

The PDF4NET library can be used for creating reports of any types, invoices, business cards or any other types of PDF documents or it can be integrated in PDF processing workflows.

PDF4NET provides support for the following features when creating PDF files:

  • Support for document wide properties like: document information and XMP metadata with custom properties, viewer preferences.Unlimited number of pages per document, each page with its size and orientation.
  • Random access to any page in the document.
  • Headers, footers, page templates and layers.
  • Native support for 1D (Codabar, Code 11, Code 128 A/B/C, Code 25, Code 25 Interleaved, Code 39, Code 93, COOP 25, EAN-13, EAN-8, IATA 25, ISBN, ISMN, ISSN, JAN-13, Matrix 25, MSI/Plessey, Planet, Postnet, RM4SCC, SCC-14, SSCC-18, UPC-A, UPC-E) and 2D (Codablock F, Code 16K, DataMatrix, MicroPDF417, PDF417) barcodes.
  • Automatic page numbering with support for roman and Arabic numerals.
  • Grid based layout when placing content on page, in this way drawing on a PDF page is much like drawing on the screen. The library also allows creating user defined units and coordinate systems.
  • Support for basic drawing primitives (lines, poly lines, arcs, pies, rectangles and rounded rectangles, ellipses, Bezier curves, paths, form XObjects). All primitives can be stroked or filled, and developer has full control over lines styles. Clipping regions are also supported by PDF4NET library. The library includes full support for transparency and blend modes. All drawing primitives can be filled with solid, hatched and gradient brushes.
  • RGB, CMYK and Gray color spaces.
  • Support for images, including jpeg, gif, bmp, png, emf; images can be placed anywhere on the page, scaled and rotated; Embedded images are cached, so when the same image is used multiple time in the PDF file, it is embedded only once. Images can be loaded from files, streams or System.Drawing.Bitmap. Transparent images are supported by default, support for color key masking, image masking and alpha channel transparency being also included. Windows Enhanced Metafiles are converted to PDF vector graphics.
  • CCITT G4 compression for B/W images. Tiff2PDF applications will benefit most of this feature.
  • Support for various text layouts using single text lines or text boxes with automatic word wrapping, text alignment (left, center, right or justified on horizontal, or top, middle bottom for vertical) and rotation;
  • Support for HTML formatting tags when drawing text.
  • Support for base 14 fonts, Type1 fonts, Unicode TrueType fonts, System.Drawing.Font and CJK fonts from Adobe Asian Language pack. Both Type1 and TrueType fonts can be embedded in the PDF document, and for TrueType fonts the library performs font sub setting automatically to reduce the size of the embedded font. The fonts are cached, so only one instance of the font is embedded in the final PDF file.
  • Support for PDF hyperlinks and document bookmarks. The target of a hyperlink can be a page in the same document, an external PDF file, an external non PDF file or a URL on the web.
  • PDF Actions are supported at document, page and bookmark level. Control how the PDF document is opened or add custom JavaScript code to your PDF document with a few lines of code.
  • Several types of annotations are supported, including text annotations, rubber stamp annotations and file attachment annotations.
  • Support for PDF security specification. Documents can be encrypted and password protected, both with user and owner passwords. The library supports both 40bit and 128bit encryption keys. Also, operations on a document can be restricted using access rights (allow print, allow assemble, allow content extraction, etc).
  • PDF files can be saved to file or stream, including HTTP output streams.
  • The content of PDF files is compressed to reduce file size and download times when the library is used from a web application.

PDF editing capabilities of PDF4NET allow a developer to perform a wide range of operations on existing PDF files. All PDF editing capabilities are available also on encrypted PDF files.

  • PDF files merge – multiple PDF files can be merged together with a single line of code and the resulted PDF file can be saved to disk or to a stream. Also, the final PDF file can be encrypted.
  • PDF files split – PDF files can be split to single pages in a single step.
  • Apply security to existing PDF files – existing PDF files can be encrypted and protected by passwords.
  • Page extraction – pages from external PDF files can be extracted and added to new documents, thus allowing mixing existing PDF files into a single new one. When a page is extracted, also its annotations, links and form fields are extracted.
  • Content extraction – the content of a page can be extracted and placed on a new page. Multiple pages content can be placed on a single new page (page imposition) to reduce the number of pages in the final PDF document.

PDF4NET library can create and fill PDF forms (AcroForms) and it can read and fill XFA forms. The following features are supported:

  • Create and modify PDF forms (Acroforms only)
  • Read and fill PDF forms (Acroforms)
  • Support for pushbuttons, single and multi lines text fields, checkboxes, radio buttons, comboboxes and listboxes (Acroforms)
  • Read and fill static XFA forms (Adobe Designer 7 static forms)
  • Support for pushbuttons, single and multi lines text fields, numeric fields, datetime fields, checkboxes, radio buttons, choice fields, image fields and barcode fields (XFA forms)
  • Support for encrypted forms
  • Form fields flattening
  • Import/Export of form data in FDF, XFDF and XML 

The library includes a MSDN style help file.

PDF4NET library has been developed entirely in C#, taking full advantage of .NET Framework. It supports both standard .NET Framework and Compact .NET Framework.

PDFView4NET provides support for the following features when displaying and printing PDF files:


  • .NET Framework 2.0, 3.0, 3.5 support
  • Load files from file or stream, with support for RC4/AES encrypted files

PDF Rendering:

  • Separate class library for converting PDF files to images and for printing PDF files to any Windows printer without any user interface
  • Render PDF files to BMP, GIF, JPEG, TIFF or any System.Drawing.Graphics object
  • Render PDF files to multipage B/W TIFF with CCITT FAX compression
  • Filters and compression: FlateDecode, LZWDecode, DCTDecode, CCITTFaxDecode, ASCII85Decode, ASCIIHexDecode
  • Images: RAW, CCITT, DCT, Inline, Soft masks, Image masks, Chroma key masks
  • Fonts: standard PDF fonts, embedded fonts, CID keyed fonts, TrueType fonts, Type 1 fonts (CFF and Postscript)
  • Colorspaces: DeviceRGB, DeviceCMYK, DeviceGray, CalGray, CalRGB, Lab, ICC, Separation, DeviceN
  • Printing: print to any Windows printer, print page content and/or annotations and/or form fields, auto-rotate and center, print custom page range, multiple print scaling options, print multiple pages per sheet

PDF View Windows Forms controls:

  • All the above rendering features
  • 5 controls: document, pages viewer, bookmarks viewer, annotations viewer and attachments viewer
  • Navigation: zoom (absolute, fit width, fit height, fit visible), rotate pages,  PDFBookmarksView control for displaying bookmarks and navigating within the document, active links, multiple page display layouts
  • Annotations: display all annotations, standard and owner draw annotation tooltips, add/edit text, free text, ellipse, file attachment, ink, line, link, rectangle, stamp, highlight, strikeout and underline annotations, active links to other pages or web, PDFAnnotationsView control for displaying all the annotations in a document
  • Forms: user interactive form filling with support for saving filled forms; textbox, checkbox, radio button, pushbutton, dropdown list and list box fields.
  • Text: extract text from pages, search text and highlight search results.
  • Document attachments: add/edit/delete file attachments, PDFFileAttachmentsView control for displaying all the attachments in a document  
  • Save the modified files to file or stream

The install package includes 2 PDFView4NET assemblies, a MSDN style help file, several samples both in C# and VB.NET and support PDF files for the samples.

The evaluation version is includes all the features but prints an evaluation message on document’s pages.

The library is licensed per developer and can be distributed royalty.