What's new
Samples & Docs

PDF4NET is a .NET library for generating and importing PDF documents on the fly from any .NET application. The library does not rely on any Adobe products for creating and importing PDF files. It hides the complex structure of PDF files behind a simple object model that allows creation of complex PDF files or import of existing PDF files with a few lines of code.

The PDF4NET library can use either a grid based layout approach allowing precise positioning of content on document's pages or a flow based layout making the generation of complex documents a breeze. The final PDF file is compressed, making the library appropriate for web applications. The library can be used from WinForms, ASP.NET, WPF, UWP, .NET Core, Mac, iOS and Android applications without any restrictions, the source code being fully portable between platforms. The library is written entirely in C#, being 100% managed.

The PDF4NET library is licensed per developer and can be distributed ROYALTY FREE, reducing your project costs.

The main features of PDF4NET library are outlined below:

• .NET Framework 4.xYes
• .NET 5/6/7/8Yes
• .NET Core 2.x/3.xYes
• .NET StandardYes
• Windows FormsYes
• Xamarin.MacYes
• ASP.NET Webforms and MVCYes
• Console applicationsYes
• Windows servicesYes
• MonoYes
• WPF 4.xYes
• Xamarin.iOSYes
• Xamarin.AndroidYes
• Xamarin.FormsYes
• Universal Windows PlatformYes
• Create and load PDF documents from files and streamsYes
• Grid layout and/or flow layout modesYes
• Save PDF files in PDF/A-1B, PDF/A-2 B/U, PDF/A-3 B/U formatYes
• Save PDF files in PDF/UA-1 formatYes
• Save PDF files to disk and streamsYes
• PDF structure compressionYes
• Document information and custom propertiesYes
• Document viewer preferences and display modesYes
• Document and page XMP metadataYes
• Document file attachmentsYes
• Document level Javascripts and actionsYes
• Document outline (bookmarks)Yes
• Create CAD and geospatial enabled PDF filesYes
• Add, remove and read Bates numbersYes
• Add and remove PDF pagesYes
• Page boxes - media box, crop box, art box, trim box and bleed boxYes
• Page labeling ranges (page numbering)Yes
• Page user unitsYes
• Extract pages from external PDF filesYes
• Append PDF pagesYes
• Split PDF files into pagesYes
• Document incremental updatesYes
• Partial document loading and savingYes
• Logical document structureYes
• Tagged PDFYes
• Structure tree and structure elementsYes
• ID mapYes
• Role mapYes
• Structure element attributesYes
• Attribute classesYes
• PDF/UA-1Yes
• Automatic tagging of flow documentsYes
• Extraction of page content with associated logical structure informationYes
• Mixed formatted textYes
• Superscript/subscript textYes
• ImagesYes
• Form XObjectsYes
• AnnotationsYes
• TablesYes
• Headers and footersYes
• Table of contentsYes
• Automatic tagging for accessibilityYes
• Before/After draw events for flow contentYes
• External PDF pagesYes
• User and owner passwordsYes
• Document access rightsYes
• 40 bit and 128 bit RC4 encryptionYes
• 128 bit and 256 bit AES encryptionYes
Content redactionYes
• Disable text copy/pasteYes
• Approval and certifying digital signatures with X509 certificatesYes
• Basic CMS and PAdES digital signatures with SHA256 / SHA384 / SHA512Yes
• Signature timestampsYes
• OCSP and CRL information included in digital signaturesYes
• Document security storeYes
• Document timestampsYes
• LTV (Long Term Validation) enabled digital signaturesYes
• Support for hardware signature tokens/smartcards (Windows, WPF, Mac)Yes
• Externally computed signaturesYes
• Load digital signatures from signed PDF filesYes
• Decode existing signatures into basic ASN.1 blocksYes
• Extract the certificate from digital signaturesYes
• Save the signed copy of a PDF documentYes
• Grid layout for fixed content positioningYes
• Flow layout for relative content positioningYes
• All PDF color spaces: DeviceRGB, DeviceCMYK, DeviceGray, Indexed, CalGray, CalRGB, Lab, ICC, Separation, DeviceN and PANTONE colorsYes
• Pen and brush objects for stroking and filling operationsYes
• Hatch style brushesYes
• Graphics primitives: lines, ellipses, rectangles, rounded rectangles, arcs, pies, chords, Bezier curves, pathsYes
• Clipping pathsYes
• Images (see Images section) and form XObjectsYes
• Transparency groupsYes
• Single line and multi line text with vertical and horizontal aligment, including justified textYes
• Extended graphics states with support for fill and stroke alpha, blend modes and overprintingYes
• Affine transformations: multiply, translate, rotate and scaleYes
• Shadings - function, axial and radialYes
• Patterns - colored, uncolored and shadingYes
• Optional content (layers) with support for custom display trees, multipage and mixed layersYes
• Barcodes (see Barcodes section)Yes
• Drawing of external page content (page imposition)Yes
• Low level PDF graphics for full control over the page content streamYes
• Formatted content (paragraphs, text blocks, styled text, links inside text, bullet lists)Yes
• Tables (simple and composite cells, column spans, row spans, borders)Yes
• Standard PDF fonts, Western and CJKYes
• Type1 fontsYes
• Type3 fontsYes
• Ansi and Unicode TrueType fonts with support for font subsettingYes
• Disable text copy/paste for Unicode TrueType fontsYes
• Full color emojis and SVG fontsYes
• Advanced TrueType features:Yes
     - LigaturesYes
     - Vertical glyphsYes
     - Small capitalsYes
     - Old style figuresYes
• Load images from files and streamsYes
• Bmp, Png, Gif, Jpeg, Jpeg2000, Tiff and Raw imagesYes
• Automatic image type detectionYes
• Extra large JPEG imagesYes
• Extra large TIFF images (24bpp and 32bpp, uncompressed, zip, lzw)Yes
• Create images from System.Drawing.Bitmap (WinForms) (BMP, GIF, PNG, TIFF, JPG)Yes
• Native support for TIFF (grayscale, RGB and CMYK), JPEG, PNG and RAW imagesYes
• TIFF to PDF conversion with CCITT G4 compression for B/W imagesYes
• Image masks: color masks, stencil mask and soft masksYes
• Alternate images for printingYes
• SVG to PDF conversionYes
• Built in vector barcode engine, no barcode images or barcode fontsYes
• Unidimensional barcodes:Yes
   - Generic barcodes: Codabar, Code 11, Code 25, Code 25 Interleaved,
     Code 39, Code 39 Extended, Code 93, Code 93 Extended, Code 128 A,
     Code 128 B, Code 128 C, COOP 25, Matrix 25, MSI/Plessey
   - Pharmaceutical barcodes: Code 32, Pharmacode,
     PZN (Pharma-Zentral-Nummer)
   - EAN/UPC barcodes: EAN 128, EAN-13, EAN-8, ISBN, ISMN, ISSN,
     JAN-13, UPC-A, UPC-E
   - Postal and transportation barcodes: FedEx Ground 96, IATA 25,
     Identcode, Leitcode, KIX, Planet, PostNet, RM4SCC, SCC-14,
     SingaporePost, SSCC-18, USPS FIM, USPS Horizontal, USPS PIC
• Bidimensional barcodes:Yes
   - DataMatrix, QR, PDF417, Micro PDF417, Codablock F, Code 16KYes
• Add, edit and remove PDF annotationsYes
• Standard and custom appearance for annotationsYes
• Flatten annotationsYes
• Import/export annotations as FDFYes
• Import/export annotations as XFDFYes
• Supported annotations:Yes
   - Text (sticky notes) annotationsYes
   - Rubber stamp annotationsYes
   - Square and circle annotationsYes
   - Cloud square annotationsYes
   - File attachment annotationsYes
   - Link annotations (hyperlinks)Yes
   - Line annotationsYes
   - Ink annotationsYes
   - Polygon and polyline annotationsYes
   - Cloud polygon annotationsYes
   - Text markup annotations: highlight, underline, strikeout, squigglyYes
   - Free text (typewritter) annotationsYes
   - Sound annotationsYes
   - Movie annotationsYes
   - Rich media (Flash) annotationsYes
   - Redaction annotationsYes
   - 3D annotations with support for: views, projections, lighting schemes,
     cross sections, backgrounds and animations
PDF FORMS (Acrobat forms) 
• Create, load and save PDF formsYes
• Add, edit, remove and rename form fieldsYes
• Support for text box fields, combo box fields, list box fields,
  push button fields, check box fields, radio button fields, signature fields
• Read/Write (fill) form fieldsYes
• Create custom appearances for field widgetsYes
• Flatten form fieldsYes
• Form actions (see PDF actions)Yes
• Add, edit and remove PDF actionsYes
• Set actions at document level, page level, annotation level and form field levelYes
• Supported actions:Yes
   - GoTo actions - go to destinations in current PDF fileYes
   - Remote GoTo actions - go to destinations in external PDF filesYes
   - GoTo 3D view actions - activate a specific view in a 3D annotationYes
   - Lauch actions - launch executables and filesYes
   - URI actions - go to a web based destinationYes
   - Named actions - predefined PDF actionsYes
   - Javascript actions - execute Javascript codeYes
   - Submit form actions - submit form data to a serverYes
   - Reset form actions - reset form fields to default valuesYes
   - Hide actions - show or hide form fieldsYes
• Sample based functions (Type 0)Yes
• Exponential functions (Type 2)Yes
• Stitching functions (Type 3)Yes
• Postscript calculator functions (Type 4)Yes
• Search text in PDF pages with support for: 
   - case sensitive/insensitive searchYes
   - accent sensitive/insensitive searchYes
   - whole word searchYes
   - regular expression searchYes
• Extract text with position information at fragment level and glyph levelYes
• Extract text as words with position information at word level and glyph levelYes
• Extract text as lines with position information at line level and glyph levelYes
• Extract text and words from user defined regionsYes
• Extract images including image information such as: image size in pixels,
  bits per pixel, colorspace, image position on the PDF page,
  image size on the PDF page, image horizontal and vertical resolution
• Extract page content as a sequence of path, text, image and
  shading objects
• Extract optional content groups as vector drawingsYes
• Extract page content as vector drawings (including annotations and form fields)Yes
• Convert page content to RGBYes
• Convert page content to CMYKYes
• Convert page content to GrayscaleYes
• Convert images to GrayscaleYes
• Replace page imagesYes
• Remove page imagesYes
• Text redactionYes
• Image redactionYes
• Redaction annotationsYes
• Create and load PDF portfoliosYes
• Define portfolio attributes and define sort order for portfolio itemsYes
• Add and remove portfolio itemsYes
• Organize portfolio items into foldersYes
• Add, edit and remove COS objectsYes
• Supported COS objects: strings, numbers, names, booleans, nulls,
  arrays, dictionaries and streams
PDF RENDERING (included in PDF4NET+Render package) 
• Convert PDF pages to color, grayscale and black & white imagesYes
• Convert PDF pages to RAW, PNG and TIFF (single and multi-page)Yes
• Ultra-high dpi support - convert PDF pages to images up to 32bpp 65536x65536 pixelsYes
• Native RGBA, BGRA, ARGB, RGB, BGR and Grayscale renderingYes
• Built-in graphic engine that produces pixel matched results across all supported platformsYes
• Multi-threaded PDF to image conversionYes
• Selective content rendering: text and/or vector graphics and/or images and/or form fields and/or annotationsYes
• Turn on/off layer visiblity in PDF to image conversionYes
• Supported PDF features:Yes
    - Stroked and filled vector graphicsYes
    - Clipping paths including text based clipping pathsYes
    - Text (all text rendering modes)Yes
    - Fonts (standard PDF fonts, embedded fonts, TrueType, Type1, Type3)Yes
    - Images (RAW, DCT/JPEG, CCITT, JPEG2000, JBIG2, inline) with associated masks if presentYes
    - Colorspaces (RGB, CMYK, Gray, CalRGB, CalGray, Lab, ICC, Separation, DeviceN, Indexed)Yes
    - Graphics state soft masksYes
    - Transparency groupsYes
    - Blend modesYes
    - PDF patternsYes
    - PDF shadings (gradients)Yes
• Per developer licensing with royalty free distributionYes

to top

News Archive | Company | Site Map | Privacy Policy | Contact Us
2003 - 2024 O2 Solutions. All rights reserved