All Projects → derekblair → Ilpdfkit

derekblair / Ilpdfkit

Licence: mit
A simple toolkit for filling out PDF forms in iOS.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Ilpdfkit

sioyek
Sioyek is a PDF viewer designed for reading research papers and technical books.
Stars: ✭ 3,890 (+1115.63%)
Mutual labels:  pdf-viewer
svelte-pdf
svelte-pdf provides a component for rendering PDF documents using PDF.js
Stars: ✭ 102 (-68.12%)
Mutual labels:  pdf-viewer
android-pdfviewer
A Android PDF Viewer that render pdf using PdfRenderer and displays it in a RecyclerView.
Stars: ✭ 35 (-89.06%)
Mutual labels:  pdf-viewer
pdftron-android-samples
PDFTron Android Samples
Stars: ✭ 30 (-90.62%)
Mutual labels:  pdf-viewer
pdf-viewer
PDFjs with flipbook integration (using turnjs4)
Stars: ✭ 85 (-73.44%)
Mutual labels:  pdf-viewer
JasperViewerFX
The JasperViewerFX is a free JavaFX library which aims to avoid use of JasperReport's swing viewer
Stars: ✭ 27 (-91.56%)
Mutual labels:  pdf-viewer
i-librarian-free
I, Librarian - open-source version of a PDF managing SaaS.
Stars: ✭ 110 (-65.62%)
Mutual labels:  pdf-viewer
pdfgrep
PDFGrep is a GNU/Emacs module providing grep comparable facilities but for PDF files
Stars: ✭ 24 (-92.5%)
Mutual labels:  pdf-viewer
PDF4QT
All-in-one library and application for processing and rendering PDF documents. Contains document viewer/editor application, application for splitting/merging PDF documents and page manipulation, application for comparison of similar PDF documents.
Stars: ✭ 15 (-95.31%)
Mutual labels:  pdf-viewer
eaf-pdf-viewer
Fastest PDF Viewer in Emacs
Stars: ✭ 23 (-92.81%)
Mutual labels:  pdf-viewer
Vudit
A file viewer for Android
Stars: ✭ 40 (-87.5%)
Mutual labels:  pdf-viewer
aesop
[DEPRECATED] The simplest PDF viewer around
Stars: ✭ 1 (-99.69%)
Mutual labels:  pdf-viewer
react-view-pdf
A simple and powerful PDF Viewer library for React.js
Stars: ✭ 107 (-66.56%)
Mutual labels:  pdf-viewer
PDFoundry
A fully featured PDF viewer module for Foundry VTT, including form fillable actor sheets, journal links, and more!
Stars: ✭ 38 (-88.12%)
Mutual labels:  pdf-viewer
pdf-viewer
PDF viewer web component built in StencilJS. Reusable in Angular, Ionic, React, Vue.JS, etc.
Stars: ✭ 65 (-79.69%)
Mutual labels:  pdf-viewer
pdf-tools
Emacs support library for PDF files.
Stars: ✭ 219 (-31.56%)
Mutual labels:  pdf-viewer
zathura-solarized
The solarized color theme for Zathura
Stars: ✭ 39 (-87.81%)
Mutual labels:  pdf-viewer
Pdf Flipbook
Browse PDF document like a book turning its pages
Stars: ✭ 279 (-12.81%)
Mutual labels:  pdf-viewer
react-pdf
Simple and fancy PDF Viewer based on pdf.js 📄⚡️
Stars: ✭ 58 (-81.87%)
Mutual labels:  pdf-viewer
digitalmusicstand
web based music sheet viewer (go, pdfjs) as a single binary
Stars: ✭ 22 (-93.12%)
Mutual labels:  pdf-viewer

ILPDFKit Logo

CI Status Version Carthage compatible Swift License Platform

A simple, minimalist toolkit for filling out PDF forms, and extracting PDF data in iOS, that extends the Apple native PDFKit's PDFView and the CoreGraphics PDF C API.

screenshot

Features

  • [x] Parse and analyze PDF documents with easy API.
  • [x] Fill out and save PDF AcroForms to a flat non-editable PDF.
  • [x] Handle text, button and combo fields.
  • [x] Easy introspection using PDFDocument, PDFPage, PDFDictionary and PDFArray.
  • [x] Rapidly, parse, extract and analyze PDF document structure, data and properties.
  • [ ] Handle signature fields.
  • [ ] Save AcroForm values to the original, editable PDF.
  • [ ] Comprehensive Unit and Integration Test Coverage
  • [ ] Swift Documentation

Installation

Cocoapods

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
use_frameworks!

target '<Your Target Name>' do
    pod ILPDFKit
end

Then, run the following command: pod install

Carthage

To integrate ILPDFKit into your Xcode project using Carthage, specify it in your Cartfile:

github "derekblair/ILPDFKit"

Run carthage update to build the framework and drag the built ILPDFKit.framework into your Xcode project.

Quick Start

The quickest way to get started with ILPDFKit is to take a look at the included sample app. For example, to view a PDF form resource named 'test.pdf' you can do the following:

let document = ILPDFDocument(resource:"myPDF")
// Manually set a form value
document.forms.setValue("Derek", forFormWithName: "Contacts.FirstName")
// Save via a static PDF.
let flatPDF = document.savedStaticPDFData()

PDF Support

ILPDFKit currently supports a narrow range of PDF versions and is not suitable for a production app that needs to save general PDF files from versions 1.3 to 1.7

PDF features that cause issues with saving include:

  1. Linearized PDF files (Linearization is broken after save. File will open correctly using WKWebView, Preview, and Chrome but Adobe reader fails)

  2. Object Streams (This library can not currently save fields stored in object streams, introduced in PDF 1.5 , files that use object streams are sometimes referred to as compressed files as object streams can compress PDF objects in the file).

Usage

Filling Out Forms

pdfViewController = ILPDFViewController(resource:"test.pdf")
window.rootViewController = pdfViewController
// Have fun filling out the form.

Getting/Setting Form Values Explicitly

for form in pdfViewController.document.forms {
	// Get
	let formValue = form.value;
	let formName = form.name; // Fully qualified field name.
	// Set
	form.value = "foo";

	// If the form is visible on screen it will updated automatically.
	// You can access the actual associated widget annotation view as below.
	// let widgetView = form.associatedWidget()
}

Custom Styling of Form Fields

All fields are easily custom styled.

Donate

Donations are greatly appreciated and assist with the development of ILPDFKit.

Contact

[email protected]

License

(The MIT License)

Copyright (c) 2020 Derek Blair <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].