summaryrefslogtreecommitdiff
path: root/fpdf.go
AgeCommit message (Collapse)Author
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
2015-07-12implement GetAlphaStani
2015-07-12GetFontDesc returns the current font descriptor if familyStr is emptyStani
2015-07-12implement vertical baseline alignment for textStani
2015-07-12added Fpdf.GetFontDesc method and documentation for FontDescTypeStani
2015-07-09Fixed duplicate name for SetFontSize and SetFontUnitSizeKurt Jung
2015-07-09Add some font size and conversion methods that use document units rather ↵Kurt Jung
than points
2015-07-07Convert sequential examples to ones that are bound to gofpdf methods.Kurt Jung
2015-07-06Start with the conversion of indexed examples to ones that are associated withKurt Jung
a gofpdf method. This involves changes mostly in the test source file, but also references in the main source files. After this conversion is complete, the docWriter routine and interface can be scrapped. The current scheme will be more straightforward for programmers using the library.
2015-07-06implement full support for fill stylesStani
2015-07-06fix path drawing methods for ArcToStani
2015-07-06implemented ArcToStani
2015-07-06fix documentation string MoveToStani
2015-07-04implement line join styleStani
2015-07-04Multi-segment path drawing routines by stanimKurt Jung
2015-07-04Example of Claudio Felber's generalized font loaing implementationKurt Jung
2015-07-04Small adjustment to documentationKurt Jung
2015-07-04Dashed lines: tutorial example and tip of hat to Claudio FelberKurt Jung
2015-06-27Add SetFontLoader() method to load fonts from arbitrary locationsClaudio Felber
2015-06-27Add SetDashPattern() methodClaudio Felber
2015-06-23Added path drawing methods:Stani
- MoveTo - LineTo - CurveTo - CurveBezierCubicTo - ClosePath - DrawPath