From 80c5811b6b15479b473e814cad0aae7de9920bb3 Mon Sep 17 00:00:00 2001 From: David Fish Date: Mon, 8 Jan 2018 11:19:41 -0800 Subject: Added generic alias-replacement function to enable Table of Contents functionality --- def.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'def.go') diff --git a/def.go b/def.go index 52e6474..936ca09 100644 --- a/def.go +++ b/def.go @@ -40,7 +40,10 @@ type gradientType struct { } const ( - OrientationPortrait = "portrait" + // OrientationPortrait represents the portrait orientation. + OrientationPortrait = "portrait" + + // OrientationLandscape represents the landscape orientation. OrientationLandscape = "landscape" ) @@ -243,6 +246,7 @@ type Fpdf struct { fontSize float64 // current font size in user unit ws float64 // word spacing images map[string]*ImageInfoType // array of used images + aliasMap map[string]string // map of alias->replacement pageLinks [][]linkType // pageLinks[page][link], both 1-based links []intLinkType // array of internal links outlines []outlineType // array of outlines -- cgit v1.2.1-24-ge1ad