All Projects → hons82 → Thpdfkit

hons82 / Thpdfkit

Licence: other
PDF viewer component on top of Apples PDFKit

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Thpdfkit

Vivliostyle Cli
⚒ Supercharge command-line publication workflow.
Stars: ✭ 57 (-16.18%)
Mutual labels:  pdf
Resume Builder
Resume Builder is a free open-source project that allows anyone to easily maintain and build any kind of resume.
Stars: ✭ 62 (-8.82%)
Mutual labels:  pdf
Milewski Ctfp Pdf
Bartosz Milewski's 'Category Theory for Programmers' unofficial PDF and LaTeX source
Stars: ✭ 9,037 (+13189.71%)
Mutual labels:  pdf
Fwcyclescrollview
轮播控件:支持本地图片、网络图片、自定义视图,轮播分页控件有多重可选方案,轮播次数、间隔时间也可设置,更多配置请参考”可设置参数“。提供OC使用Demo。
Stars: ✭ 59 (-13.24%)
Mutual labels:  pod
Superfileview
基于腾讯浏览服务Tbs,使用X5Webkit内核,实现文件的展示功能,支持多种文件格式
Stars: ✭ 1,115 (+1539.71%)
Mutual labels:  pdf
Knowledge Base
pdf,txt,djvu, various useful books
Stars: ✭ 63 (-7.35%)
Mutual labels:  pdf
Gulp Markdown Pdf
Markdown to PDF
Stars: ✭ 56 (-17.65%)
Mutual labels:  pdf
Books Pdf
books pdf
Stars: ✭ 1,149 (+1589.71%)
Mutual labels:  pdf
Html to pdf
Generate a simple invoice PDF from HTML using puppeteer & handlebars
Stars: ✭ 62 (-8.82%)
Mutual labels:  pdf
Pdfthumbnails
A small script to generate thumbnail images for pdf files, based on pdf.js
Stars: ✭ 66 (-2.94%)
Mutual labels:  pdf
Whc pageviewkit
iOS平台轻量级的PageView组件,其中TitleBar拥有30多种UI样式
Stars: ✭ 59 (-13.24%)
Mutual labels:  pod
Academic Pandoc Template
Write beautiful academic texts with the distraction-free Pandoc Markdown and typademic.
Stars: ✭ 60 (-11.76%)
Mutual labels:  pdf
Gopdf
pdf document generation library
Stars: ✭ 63 (-7.35%)
Mutual labels:  pdf
Openhtmltopdf
An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!
Stars: ✭ 1,096 (+1511.76%)
Mutual labels:  pdf
Docnado
Rapid documentation tool that will blow you away...
Stars: ✭ 67 (-1.47%)
Mutual labels:  pdf
Documentreader
This library reads word documents (.doc and .docx), txt and PDF files, and gives the output content of the document as a String.
Stars: ✭ 57 (-16.18%)
Mutual labels:  pdf
Blabel
🏷 Python label/sticker PDF generation. HTML templates, built-in barcodes, qr codes, and other goodies
Stars: ✭ 63 (-7.35%)
Mutual labels:  pdf
Scanbot Sdk Example Android
Document scanning SDK example apps for the Scanbot SDK for Android.
Stars: ✭ 67 (-1.47%)
Mutual labels:  pdf
Php Svg Lib
SVG file parsing / rendering library
Stars: ✭ 1,146 (+1585.29%)
Mutual labels:  pdf
Notion Pdf Export
A tool to allow batch PDF export for free Notion users. You can export as HTML and then use this tool to convert those into PDFs.
Stars: ✭ 66 (-2.94%)
Mutual labels:  pdf

THPDFKit

Build Status Pod Version Pod Platform Pod License Coverage Status

PDF viewer component on top of Apples PDFKit

Screenshots

iPhone Portrait iPhone Landscape

Installation

CocoaPods

Install with CocoaPods by adding the following to your Podfile:

platform :ios, '9.0'
use_frameworks!
pod 'THPDFKit', '~> 0.3.1'

Note: We follow http://semver.org for versioning the public API.

Usage

This is a sample initialization taken from the sample project which uses storyboards to define viewcontrollers and navigation.

However the only thing that is really needed is passing the URL to the PDF file to the Wrapper (If you wanna use the Quicklook fallback) or directly to the PDFKitViewController if you're not targeting platforms below iOS11.

    // MARK: - Navigation

    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        if let indexPath = tableView.indexPathForSelectedRow {
            let selectedRow = indexPath.row
            let detailVC = segue.destination as! PDFViewControllerWrapper
            detailVC.url = self.samplePDFs[selectedRow]

        }
    }

TODOs

  • Finally fix the broken TravisCI integration
  • Support for annotations
  • Improve podspec for iOS11 only version without Quicklook
  • Extend customizability (colors, sizes, fonts, ...)
  • Support for CocoaLumberjack (for logging)

Contributions

...are really welcome. If you have an idea just fork the library change it and if its useful for others and not affecting the functionality of the library for other users I'll insert it

License

Source code of this project is available under the standard MIT license. Please see the license file.

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].