summaryrefslogtreecommitdiff
path: root/fpdf.go
AgeCommit message (Collapse)Author
2019-04-29Add SetFontStyle method (#248)Joe Westcott
2019-04-17Anka2310's modified fix for the right justify bugKurt
2019-04-17Fix right alignmentAnka2310
width has already been reduced by left and right margin, so right margin doesn't need to be subtracted twice
2019-04-10Add watermark exampleKurt
2019-04-09Add PageCount() methodKurt
2019-03-08Remove additional graphics state checksJoe Westcott
2019-03-06Unconditionally assign colors (fill, text and draw) and line width, cap ↵Kurt
style and line join style so that the manipulation of these properties in transformations, which begin with default values, will work as intended. Add example to demonstrate expected results.
2019-02-28Refer to example in SetPage() documentation.Kurt
2019-02-27added functionality to change the current page in the pdf documentYash Kamothi
2019-02-21Acknowledge word spacing authorKurt
2019-02-21Match precision of word spacing with rest of code.Wojciech Matusiak
2019-02-21Adds the ability to set word spacing.Wojciech Matusiak
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-11Fix comments according to best practices by effective go (#217)CodeLingo Bot
* Fix comments according to best practices by effective go * Update font.go * Update fpdf_test.go * Update fpdf.go * Update example.go * Update util.go
2018-11-16Make SplitLines and MultiCell split at the same place (#210)Wilk
* Make SplitLines and MultiCell split at the same place * Use integer math for SplitLines and MultiCell
2018-11-10Add an example for Paul Montag's page box featureKurt
2018-11-08Fixed a stupid bugPaul Montag
2018-11-08Added an error if an invalid box type is passed inPaul Montag
2018-11-08Added page boxesPaul Montag
2018-09-15fixed warnings gocritic 3.3 (#192)Veselkov Konstantin
2018-06-15Merge branch 'master' of https://github.com/jung-kurt/gofpdfKurt
2018-06-15Support negative X position when placing imageKurt
2018-06-01Added public wrapper "GetPageSizeStr" of private method (#181)Marcus Oblak
2018-04-20EOF error when using reader (#176)daill
While you're using a reader for i.e. an image you'll receive an EOF from go's io package which leads to pdf creation error
2018-04-15Add SetHeaderFuncMode() method to automatically set position to left and top ↵Kurt
margin after header function is called. Backward compatibility is preserved. This addresses issue #174.
2018-04-01Emit Fill/Draw/Text color codes only if changed from current valueKurt
2018-03-19Add charting facilityKurt
2018-02-03sort the objs in the output more consistentlyAndy Bakun
When CatalogSort is enabled, the sort.Strings routine is used to order the "keys" used for the various objects being put into the PDF. Use sort.SliceStable instead, and specify a function Less function that, if possible, uses an attribute of the objs being sorted. This is more deterministic.
2018-01-08Added generic alias-replacement function to enable Table of Contents ↵David Fish
functionality
2017-12-02Add consts for page orientations (#150)Paweł Słomka
2017-11-24Replace strings.Index with strings.ContainsWang Guoliang
2017-11-12Add partial support for spot colors. This does not yet include gradients, etcKurt
2017-09-29Add "Tabloid" page size (#138)OlegFX
Add "Tabloid" page size, 11 x 17 inches according to ANSI X3.151.
2017-08-30output xmp earlier to not clash with trailer refsAlexander Eichhorn
2017-08-30add xmp metadata outputAlexander Eichhorn
2017-07-19Remove reference to inapplicable exampleKurt
2017-07-19Tweak some last page expressions and commentsKurt
2017-07-19Issue #121 Add Last Page information FooterFncAloidev
2017-06-12Fix typo in documentationKurt
2017-06-12Trigger an error when attempting to render text if font has not been setKurt
2017-06-10add the ability to include JavaScript in PDFs (#117)Dan Meyers
2017-02-11Accept interfaces where appropriate. (#103)dchapes
* Accept interfaces where appropriate. `Fpdf.RawWriteBuf` only needs an `io.Reader`, it doesn't have to be a `bytes.Buffer`. The only reason I can see not to do this is to avoid the interface "boxing" if the caller is actually using a `bytes.Buffer`; however, since eventually this gets into `binary.Read` which takes an `io.Reader` the boxing will happen anyway (and possibly repeatedly if `readByte` gets called a number of times; I didn't bother to check). * Also use interface for segmentRead * Use read-only bytes.Reader instead of bytes.Buffer where appropriate.
2016-12-16Merge branch 'master' of https://github.com/jung-kurt/gofpdfKurt
2016-12-16Clarify state of current position after call to MultiCell(). Thanks, Roger ↵Kurt
Flores
2016-12-10Added A1 and A2 page sizes (#98)Vinayak Nagpal
2016-12-09Add page size for A6 (#97)Sebastian Müller
2016-09-08Adding support CMYK in parsejpg (#81)midiland
* adding support CMYK in jpg parseur * adding support CMYK in parsejpg * clear code debug * Clear code * Clear code
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.