Swiftpack.co - techprimate/TPPDF as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by techprimate.
techprimate/TPPDF 2.4.1
TPPDF is a simple-to-use PDF builder for iOS
⭐️ 693
πŸ•“ 1 year ago
iOS macOS
.package(url: "https://github.com/techprimate/TPPDF.git", from: "2.4.1")

TPPDF

TPPDF is a fast PDF builder for iOS & macOS using simple commands to create advanced documents!

Swift iOS|macOS License
Swift Package Manager Cocoapods Carthage

Created and maintained by Philip Niedertscheider and all the amazing contributors.

Features β€’ Getting Started β€’ Communication β€’ Usage β€’ Installation β€’ Credits β€’ License

Features

  • β˜‘ Page header and footer
  • β˜‘ Dynamic content layout with page alignment
  • β˜‘ Support for tables and cell alignment
  • β˜‘ Attributed strings
  • β˜‘ Custom spacing
  • β˜‘ Image support
  • β˜‘ Horizontal line separators
  • β˜‘ Custom indentation
  • β˜‘ Custom top offset (good for layered rendering)
  • β˜‘ Pagination
  • β˜‘ Image caption
  • β˜‘ Compress images
  • β˜‘ Custom image size fit
  • β˜‘ Images in the header and footer
  • β˜‘ Horizontal line separators in the header and footer
  • β˜‘ Generate PDF files directly to handle large PDF files (Details)
  • β˜‘ PDF metadata
  • β˜‘ Custom table styling
  • β˜‘ Multi-column sections
  • β˜‘ Swift Package Manager Support
  • β˜‘ Tables with cell merging & automatic page breaking
  • β˜‘ Hyperlinks in text
  • β˜‘ Native progress tracking using Foundation.Progress

Getting Started

Building a PDF document is very easy:

First, you create a document with a paperformat...

let document = PDFDocument(format: .a4)

...then you add your information to a container...

document.add(.contentCenter, text: "Create PDF documents easily.")

...then you render the document...

let generator = PDFGenerator(document: document)
let url  = try generator.generateURL(filename: "Example.pdf")

...done!

If you need more details, checkout Usage.

Communication

Attention:

TPPDF is an Open Source side-project of techprimate. As we are currently working on multiple other projects, we only have limited time for fixing bugs and enhancing TPPDF.

That's why any issue reporting and especially Pull Requests are very welcome!

If you need professional support for your company, you can reach out to @philprimes on Twitter or on our website techprimate.com! This is mainly for custom or high-priority requests, therefore we won't publish a consulting pricing for now.

For everything else, please see Communication and this message. Thank you!

  • If you need help, open an issue.
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Example

Take a look at the Getting Started Guide or checkout the Examples (using of one of the following):

  • Clone the repository and open the Examples.xcworkspace
  • Run the Example macOS (SPM) or Example macOS (iOS)

Apps using TPPDF

If you are using TPPDF in your app and want to be listed here, simply create a pull request or let us know on Twitter or via GitHub. We are always curious to see, who is using our project :)

Burnout Coach ChatHistory Hikingbook Bug Journal EnergyTracker Lyrcs
Burnout Coach
by StΓ©phane MΓ©gy
ChatHistory
by techprimate
Hikingbook
by Zheng-Xiang Ke
Bug Journal
by David Johnson
EnergyTracker
by Stefan Nebel
Lyrcs
by ptrkstr

Credits

TPPDF is created and maintained by Philip Niedertscheider, co-founder of techprimate.

techprimate.com twitter

Contributors

Please consider backing this project by using the following GitHub Sponsor button.

We want to thank all contributors for their effort!

GitHub

link
Stars: 693
Last commit: 8 hours ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

2.4.1
1 year ago
  • Fixed crash due to force-unwrapping if not possible to instatiate URL from string (#325 by @neobeppe)
  • Added conditional scaling of images in table only if larger than cell width (#299 by @brendand)

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics