Skip to content
Browse files

Show (merge-pdfs ..) usage in README

Add comments for each example provided. This is feasible right now as we
have a small API. This might be better off in a wiki as the library
grows.
  • Loading branch information...
1 parent 34b7517 commit b6360bcfe477b49f330d2d58f6566683ddc01c01 @KushalP committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 README.md
View
5 README.md
@@ -13,10 +13,15 @@ Add camelot as a dependency to your project. Jars are [published to clojars.org]
Start using the library!
``` clojure
+;; Create PDF files with some text.
(-> {:font "Helvetica-Bold"
:size 12
:text "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"
```
## Development

0 comments on commit b6360bc

Please sign in to comment.
Something went wrong with that request. Please try again.