Skip to content

Commit

Permalink
added valign property for table cell element
Browse files Browse the repository at this point in the history
  • Loading branch information
yogthos committed Aug 22, 2016
1 parent 297684a commit 1bb1fbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/clj/clj_pdf/core.clj
Expand Up @@ -286,6 +286,7 @@
rowspan
border
align
valign
set-border
border-color
border-width
Expand All @@ -310,7 +311,9 @@
(if border-width-left (.setBorderWidthLeft c (float border-width-left)))
(if border-width-right (.setBorderWidthRight c (float border-width-right)))
(if border-width-top (.setBorderWidthTop c (float border-width-top)))
(if valign (.setVerticalAlignment c ^int (get-alignment valign)))
(.setHorizontalAlignment c ^int (get-alignment align))

(doseq [item (map
#(make-section meta (if (string? %) [:chunk %] %))
content)]
Expand Down

0 comments on commit 1bb1fbb

Please sign in to comment.