summaryrefslogtreecommitdiff
path: root/template.go
AgeCommit message (Collapse)Author
2018-12-22Updated font id generation and image id (#222)Paul Montag
Generated font ID will now be the same across machines when generating the same font file. Generated image Id will now be the same across machines when generating the same image file.
2018-12-17Fixed id collisions with fonts when encoding and decoding (#220)d1ngd0
- Made font id a string which is a sha1 sum of the contents of the json file.
2018-12-17Refactored Encode and Decode functions, Fixed Template ID ConflictsPaul Montag
- Updated Encode and Decode to ensure templates and images are pointers to the original objects - Refactored so encoding no longer has to create p and o labels for images - removed id from template and generate it using Bytes instead.
2018-12-12Added the ability to have multiple pages in a template (#216)d1ngd0
* Added the ability to have multiple pages in a template Templates are now aware of the number of pages they have. The main additions are the FromPage and FromPages methods which allow you to extract a Template from a template if you pass in the page number. It follows the same page mechanism as FPDF where pages start in the index 1. * Update fpdf_test.go
2018-11-10Merge branch 'ftr/gob' of https://github.com/d1ngd0/gofpdf into d1ngd0-ftr/gobKurt
2018-11-07Created helper functions for serialiationPaul Montag
2018-11-01Explain in documentation why CreateTemplate() is deprecated.Kurt
2018-11-01orientation of a template is now defined by the parent document. depricated ↵d1ngd0
CreateTemplate (#207)
2018-10-31Added Ability to turn template into a byte stringPaul Montag
2017-11-24Replace strings.Index with strings.ContainsWang Guoliang
2016-08-18Allow default compression mode to be set. Go 1.7 introduces a new ↵Kurt
compression/flate routine that results in different compressed streams than before. Consequently, PDFs generated with go 1.7 are not generally binary-equivalent with those generated with previous versions. Turning off compression for test files removes this variability. However, it does not help with PDFs that contain images. For now, those reference PDFs have been removed to allow tests to proceed.
2016-06-05Add Font resource declaration to templates. Thank you geekpexKurt
2015-10-13Use %f rather than %F since earlier versions of Go did not support the ↵Kurt Jung
latter. Thanks, Marcus.
2015-10-12Add reference PDFs for comparison purposes. Document comparison of example ↵Kurt Jung
documents.
2015-10-11Conditionally order another map iteration. Fix 'go vet' problem with unkeyed ↵Kurt Jung
field in composite literal.
2015-10-11Conditionally sort two map iterations in template code; more to come.Kurt Jung
2015-10-10Conditionally sort image catalog. Correct small typos.Kurt Jung
2015-08-12License and attributionMarcus Downing
2015-08-04TemplatingMarcus Downing