diff options
author | Dave Barnes <phpdave11@gmail.com> | 2019-05-15 11:25:39 -0500 |
---|---|---|
committer | Dave Barnes <phpdave11@gmail.com> | 2019-05-15 11:25:39 -0500 |
commit | ce8a12ff5655c57989b925abc0b8a3a1e6535d59 (patch) | |
tree | ea613107fea203958236495fa9b516c2a781560c /contrib | |
parent | 0fb5126fefeb1a7be7ed1c4dac02539af931a237 (diff) |
Clean up code based on jung-kurt's feedback.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gofpdi/gofpdi.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/gofpdi/gofpdi.go b/contrib/gofpdi/gofpdi.go index c1f3df8..d1b98e9 100644 --- a/contrib/gofpdi/gofpdi.go +++ b/contrib/gofpdi/gofpdi.go @@ -29,10 +29,10 @@ func ImportPage(f gofpdiPdf, sourceFile string, pageno int, box string) int { // Import objects into current pdf document // Unordered means that the objects will be returned with a sha1 hash instead of an integer // The objects themselves may have references to other hashes which will be replaced in ImportObjects() - tplObjIds := fpdi.PutFormXobjectsUnordered() + tplObjIDs := fpdi.PutFormXobjectsUnordered() // Set template names and ids (hashes) in gofpdf - f.ImportTemplates(tplObjIds) + f.ImportTemplates(tplObjIDs) // Get a map[string]string of the imported objects. // The map keys will be the ID of each object. @@ -41,7 +41,7 @@ func ImportPage(f gofpdiPdf, sourceFile string, pageno int, box string) int { // Import gofpdi objects into gofpdf f.ImportObjects(imported) - // Get a map[string]map[int]string of the object hashes and their positions within each object, + // Get a map[string]map[int]string of the object hashes and their positions within each object, // to be replaced with object ids (integers). importedObjPos := fpdi.GetImportedObjHashPos() |