summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
authorDan Meyers <daniel_meyers@brown.edu>2017-06-10 09:32:55 -0400
committerKurt Jung <kurt.w.jung@gmail.com>2017-06-10 09:32:55 -0400
commit78cae719840c4fd9cdd4a1247842c06dde6db36e (patch)
treedc1933566d57622c16194b2813a5144a75c9ddc5 /def.go
parent14c1db30737a138f8d9797cffea58783892b2fae (diff)
add the ability to include JavaScript in PDFs (#117)
Diffstat (limited to 'def.go')
-rw-r--r--def.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/def.go b/def.go
index 54abbd1..c80eb37 100644
--- a/def.go
+++ b/def.go
@@ -247,6 +247,8 @@ type Fpdf struct {
protect protectType // document protection structure
layer layerRecType // manages optional layers in document
catalogSort bool // sort resource catalogs in document
+ nJs int // JavaScript object number
+ javascript *string // JavaScript code to include in the PDF
colorFlag bool // indicates whether fill and text colors are different
color struct {
// Composite values of colors