From ddd31d40fb0345c006943f4312062de9eed4c83c Mon Sep 17 00:00:00 2001 From: Gered King Date: Wed, 23 Aug 2017 17:35:09 -0400 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3fbd93b..0810c5f 100644 --- a/README.md +++ b/README.md @@ -182,12 +182,13 @@ object by providing custom functions under the `:objects` key in your options. {; ... ; other options ; ... - :objects {:by-id {"my-object" (fn [^java.awt.Graphics2D g] + :objects {:by-id {"my-object" (fn [element-attrs ^java.awt.Graphics2D g] ; your custom rendering here )}}} ``` -This sets up an object renderer for the `` element with id `my-object`. +This sets up an object renderer for the `` element with id `my-object`. The first argument is a map containing +all of the `` element's attributes. Note that with Open HTML to PDF, `` tags have no default dimensions, so you should always make sure to include a bit of CSS to give them some size so that they will be rendered. For example: