SkillAgentSearch skills...

Camelot

A fast, nimble PDF generation and manipulation library

Install / Use

/learn @KushalP/Camelot
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Camelot

Camelot is a fast, nimble PDF generation and manipulation library.

Continuous Integration status

Why the name?

In the Spring of 1991, Dr. John Warnock released a paper which first described the Camelot Project. The project's goal was to solve a fundamental problem that confronts today's companies. The problem is concerned with our ability to communicate visual material between different computer applications and systems.

Camelot (this library) is named after the thoughts and discussions laid out in that paper.

Usage

Add camelot as a dependency to your project. Jars are published to clojars.org.

[camelot "0.2.0"]

Start using the library!

;; Create PDF files with some text.
(-> {:font "Helvetica-Bold"
     :page-size :A6
     :lines [[{:font-face "Times-Roman" :font-size 25} "Hello, world!"]
             [{} "Here be dragons!"]]
     :metadata {:author   "Joe Bloggs"
                :title    "Hello World"
                :keywords ["test" "hello" "world"]}}
    (save-as "/tmp/test.pdf"))

;; Merge a number of existing PDF files.
(-> ["filea.pdf" "fileb.pdf" "filec.pdf" "filed.pdf"]
    (merge-pdfs "/tmp/merged.pdf"))

;; Get a map of metadata from an existing PDF file.
(get-metadata "my-existing-document.pdf")

Development

More than happy to accept patches! Once you are done with your changes and all tests pass, submit a pull request on Github.

License

Copyright (C) 2012 Kushal Pisavadia

Distributed under the Eclipse Public License, the same as Clojure.

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated1y ago
Forks1

Languages

Clojure

Security Score

55/100

Audited on Nov 28, 2024

No findings