Apitron PDF Kit

Revision as of 16:20, 7 February 2018 by Adminko (talk | contribs)
Jump to: navigation, search


Apitron PDF Kit is a .NET component that provides API for creating, editing, digitally signing and manipulating the content of PDF documents. It supports adding text, images, drawings, annotations and basically all available content types defined by the PDF specification. The library contains 100% managed code and is available for any .NET framework version starting from 2.0. Xamarin/MONO, Silverlight and Windows Phone versions are provided in addition to the main builds.

For version history, purchasing or downloading visit the Apitron PDF Kit product page.

Supported PDF versions and subtypes

Documents saved using PDF versions starting from 1.4 until 2.0 can be opened, edited and saved, with PDF 2.0 being the latest version of the specification . Files can be normal, tagged, password-protected, signed, incrementally updated. PDF/A is supported as well, namely PDF/A-1A, PDF/A-1B, PDF/A-2A, PDF/A-2B, PDF/A-2U (unicode).

Support for digital signatures

Digital signing of PDF documents is implemented with extensibility in mind. So in addition to providing the own implementation for the common standards, the product supports 3d party signing implementations that makes it suitable for using hardware certificate storages like Suisse ID, Bank ID and others issued by governments, affiliated parties or large corporations which integrate with target OS using custom Crypto API drivers or tokend implementations. OCSP responses and CRLs combined with timestamps from 3d party servers can be embedded as well.


The Apitron PDF Kit library can be used to create cross-platform desktop, mobile, web and cloud solutions. Using this component you'll be able to create applications or services for:

  • Windows desktop systems (Windows Forms, WPF, Silverlight, console apps, windows services)
  • Windows Phone 8.1\10, Windows Store and Windows Runtime, Windows 10 UWP
  • Xamarin.Android, Xamarin.iOS, OS X (using MONO or Xamarin)
  • Azure Web or Worker Roles, Azure Web Jobs
  • Any system where .NET/MONO implementation exists

Features from functional perspective

  • Extract, modify and add graphics (text, images, drawings)
  • Split or merge PDF documents
  • Fill or create PDF forms, FDF support
  • Create multi-layer PDF documents with optional content groups ( OCG )
  • Add or remove document fields
  • Use bidirectional or right-to-left text to create page content
  • Examine resources within a document - fonts, embedded files
  • Digitally sign and validate existing signatures on PDF documents
  • Search text in PDF documents and extract intelligently formatted text
  • Protect document with passwords, digital certificates or custom implementation of security settings
  • Work with navigation objects, e.g. create bookmarks or links
  • Annotate PDF documents using all available annotation types
  • Add all available PDF actions, e.g. Javascript, GoTo, URI, Launch, Named etc.
  • Use all font formats defined by specification: TrueType, OpenType,Type3, Type1, Type0
  • Use custom fonts and automatically create and embed font subsets
  • Use the following colorspaces for drawing: Device (RGB, CMYK, GRAY); CIE-based (CalRGB, CalGRAY, Lab, ICCBased - via ICC color profile); Special (Pattern, DeviceN, Indexed, Separation)
  • Quickly create PDF documents from a list of images or scans
  • Implement custom html-like markup to PDF conversion
  • Generate PDF files using external xml templates
  • Save document to other “subtypes” of PDF – Linearized or PDF/A
  • Use external signer implementations based on Hardware Secure Modules (HSM) or signing certificates stored on USB sticks or other removable media.
  • Portfolio PDF
  • Unencrypted wrapper support
  • Associated Files
  • Add attachments
  • Text extraction (Formatted, Tagged, HTML, Raw)
  • Support custom annotations/fields appearance
  • Auth event handler support
  • Resources replacement support
  • Password-security handler, public key security handler, custom security handlers and encryption options support

Features mapped to specification structure

  1. Graphics
    1. Extract, modify and add graphic objects (Paths, Text, XObjects, Inline images, Shading objects)
    2. Coordinate Systems
      1. Native PDF coordinate system
      2. Device and User coordinate spaces
    3. Graphics State
      1. Graphics State Stack
      2. Graphics State operators and parameters
    4. Support for path construction, path-painting and clipping operators
    5. Colorspaces
      1. Device (RGB, CMYK, GRAY)
      2. CIE-based (CalRGB, CalGRAY, Lab, ICCBased - via ICC color profile)
      3. Special (Pattern, DeviceN, Indexed, Separation)
    6. Patterns
      1. Tiling patterns (colored, uncolored)
      2. Shading patterns ( type1, type2, type3)
    7. Images
      1. Standard images in common formats
      2. Masked images
        1. Stencil masked
        2. Explicitly masked
        3. Color Key masked
      3. Inline
    8. Form XObjects
    9. Optional content ( OCG )
  2. Text
    1. Text State parameters and operators
      1. General (Text font size, Text font)
      2. Character spacing
      3. Word spacing
      4. Horizontal scaling
      5. Leading
      6. Text Rendering Mode
      7. Text Rise
      8. Text Knockout
    2. Text Objects
      1. Text-Positioning Operators
      2. Text-Showing Operators
    3. Simple Fonts
      1. Standard Fonts
      2. Type1 Fonts
      3. TrueType Fonts
      4. Font Subsets
      5. Type 3 Fonts
      6. Character encodings (Type1, Type3, TrueType)
    4. Composite Fonts
      1. CIDFonts
      2. CMaps
      3. Type0 Font Dictionaries
    5. Embedded Font Programs (fonts)
    6. Extraction of Text Content
  3. Transparency
    1. Blend Modes
    2. Alpha
    3. Transparency groups
    4. Soft Masks
  4. Interactive Features
    1. Viewer Preferences
    2. Document-Level Navigation
      1. Destinations
        1. Explicit Destinations
        2. Named Destinations
      2. Document Outline (bookmarks)
      3. Thumbnail Images
      4. Collections
    3. Page-Level Navigation
      1. Page Labels
      2. Articles
      3. Presentations
    4. Annotations
      1. Appearance Streams
      2. Annotations of type: Markup, Text ,Link, Free Text, Line, Square and Circle, Polygon and Polyline, Text Markup, Caret, Rubber Stamp, Ink, Pop-up, File Attachment, Sound, Movie, Screen, Widget, Printer's mark, Trap Network, Watermark, Redaction
    5. Actions
      1. Trigger Events
      2. Go-To, Remote Go-To, Embedded Go-To, Launch, Thread, URI, Sound, Movie, Hide, Named, Set-OCG-State, Rendition, Transition, Go-To-3D-View, JavaScript actions
    6. Interactive Forms
      1. Fields
      2. Form Actions
      3. Named Pages
      4. XFA Forms
    7. Digital Signatures
  5. Document Interchange
    1. Marked Content
    2. Logical Structure
    3. Tagged PDF

API highlights

The library can be divided into two large parts, demonstrating different approaches to PDF creation and manipulation. Being independent from each other they share several common objects and can be used together to achieve a complex result.

FixedLayout API

This part is built around the FixedDocument class and provides “classic” approach for PDF manipulation. It has 100% mapping to spec-defined entities and can be used for every task where the developer needs precise control over the things which are to be put on PDF page and the way it should be done. The developer can get access to all drawing commands and content of the page; everything in PDF document can be manipulated using this API. See the article Fixed layout API for the details.

FlowLayout API

This part is built around the FlowDocument class and provides innovative and flexible approach for generating PDF documents using styles-based, html- and css- like document model. Developers can use it when they need automatic layout rules applied to the content blocks. The developer doesn't set the explicit position of content elements on page, but rather control the layout behavior using built-in styling mechanism similar to how the CSS is used with HTML. Content for the document has to be built using predefined content elements, e.g. Textblock, Image, Grid etc. while the flow layout engine performs automatic pagination or splitting if necessary. See the article Flow layout API for the details.

Scalability and development process

File processing and parsing is being done using all available processor cores, so applications are scaling well when you increase the processing power. It's especially important for server-side/cloud solutions. The build system use continuous integration including automated testing environment running thousands of test every day, and ensuring the component’s solidness and reliability. It helps the dev team to quickly track and fix possible problems before the new version is released. Customers' contribution is always welcome, so if you find any problems don't hesitate to contact us with your suggestions.