summaryrefslogtreecommitdiff
path: root/fpdf.go
AgeCommit message (Collapse)Author
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.
2016-08-01Check for error in ghostscript exampleKurt
2016-07-30Fix some glitches reported by goreportcard.comKurt
2016-07-30Fix some typos and other goreportcard violationsKurt
2016-07-30Fix lint violation in documentationKurt
2016-07-30Isolate embedded font dataKurt
2016-07-28adding support to embedded fonts as byte arrayPaulo Coutinho
2016-07-03fpdf: typoChris Ramón
typo fix
2016-03-07Satisfy golint with small changes to documentation. Remove diagnostic print ↵Kurt
statement to allow tests to succeed.
2016-03-07Support reading and/or setting image dpikentquirk
Adds the ability to support reading dpi from PNG images, and setting dpi on any image directly; this allows images to be displayed at the designed size.
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-10-10Introduce helper functions to set default catalog sort flag and creation ↵Kurt Jung
date value. Remove regular expression scheme that effectively ignored the embedded creation date when comparing PDFs.
2015-10-10Implement conditional catalog sort featureKurt Jung
2015-10-10Add method to fix document creation dateKurt Jung
2015-09-25Fpdf: add WriteAligned.Jelmer Snoeck
WriteAligned allows a user to write a single string and align it. Previously, Write() would only write with Left alignment. Sometimes, you want to align a specific text string to the center or the right. HTMLBasic: add <center> tag. This allows a user to center text within the HTML block. This way they do not have to split up their input. A new line will be created automatically before and after the centered text.
2015-08-31Add Barcode contribution package.Jelmer Snoeck
This package adds the ability to easily add a barcode to the PDF. This barcode is generated with the github.com/boombuler/barcode package. It adds wrappers for all the available barcode types through the `Register()` and `Register<Type>()` methods. These register methods put the barcode on the PDF, but not on the page. They will return a unique key that should be used later on with the `Barcode()` method scale the barcode and put it on the page.
2015-08-21Change GetImageInfo to return pointerKurt Jung
2015-08-19Add image information retrieval method and testKurt Jung
2015-08-17Add method to clear current errorKurt Jung
2015-08-04Templating fixesMarcus Downing