Questions tagged [clj-pdf]

clj-pdf is a clojure library for creating PDFs

clj-pdf is a clojure library for creating PDFs, further information may be found on the project's github page. It is available as a Maven artifact from clojars.

7 questions
7
votes
1 answer

How to serve the stream pdf with ring

I'm trying to serve a clj-http generated document directly via ring/compojure. I thought ring.util/piped-output-stream would work, but it seems I'm not understanding something here... This: (defn laminat-pdf-t [natno] (piped-input-stream (fn…
mathiasp
  • 81
  • 5
3
votes
2 answers

Templating in clj-pdf

I'm using clj-pdf to generate pdf files. As the README file suggests, the library provides some rudimentary templating options. For example, given a vector of maps, such as: (def employees [{:country "Germany", :place "Nuremberg", …
DANG Fan
  • 854
  • 11
  • 21
1
vote
1 answer

How do you put a table in a table in clj-pdf?

I'm trying to make a pdf in Clojure with a one-to-many structure. Something like: +------+----+------+-------+------+ | Name | ID | Make | Model | Year | +------+----+------+-------+------+ | Bob 23 | Volvo 240 1980 | | | Saab …
Kingfranz
  • 184
  • 1
  • 12
1
vote
0 answers

clj-pdf Multi-page Table: Repeat Table Headers on Each Page?

Given a [:table] with rows that span multiple document pages, is there a way to have the header row repeat at the top of the table on each page?
0
votes
0 answers

clj-pdf seemingly doesn't handle table overflow correctly

I have created a pdf doc in clj-doc: As you can see, there's an overlap of a table and the footer, and I'm so far not able to make them not overlap and put the rows on the new page. Setting document margins affects all text, including headers and…
Lars Melander
  • 439
  • 3
  • 14
0
votes
1 answer

how to convert HTML modal conent to pdf with inline css in angular 7?

I am trying to convert html modal content to pdf.I also tried to use jsPDF and its working but my custom css is not applied in the pdf section.i have to apply my custom css to pdf section. I tried below solution download(){ var data =…
Kapil Soni
  • 1,003
  • 2
  • 15
  • 37
0
votes
0 answers

How to show vertical text in clj-pdf?

I tried by adding "\n" after every letter, doesn't look good though. I need something like this in cell. Some how the I and L don't align with the rest adding spaces messes up everything. V E R T I C A L
Amogh Talpallikar
  • 12,084
  • 13
  • 79
  • 135