Skip to content

Commit

Permalink
Change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
raykov committed Aug 29, 2021
1 parent 78184f8 commit c6626e1
Show file tree
Hide file tree
Showing 18 changed files with 71 additions and 65 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)
[![MIT
licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/jung-kurt/gofpdf/master/LICENSE)
[![Report](https://goreportcard.com/badge/github.com/jung-kurt/gofpdf)](https://goreportcard.com/report/github.com/jung-kurt/gofpdf)
[![GoDoc](https://img.shields.io/badge/godoc-GoFPDF-blue.svg)](https://godoc.org/github.com/jung-kurt/gofpdf)
[![Report](https://goreportcard.com/badge/github.com/raykov/gofpdf)](https://goreportcard.com/report/github.com/raykov/gofpdf)
[![GoDoc](https://img.shields.io/badge/godoc-GoFPDF-blue.svg)](https://godoc.org/github.com/raykov/gofpdf)

![](https://github.com/jung-kurt/gofpdf/raw/master/image/logo_gofpdf.jpg?raw=true)
![](https://github.com/raykov/gofpdf/raw/master/image/logo_gofpdf.jpg?raw=true)

Package gofpdf implements a PDF document generator with high level
support for text, drawing and images.
Expand Down Expand Up @@ -56,7 +56,7 @@ continue to function without modification for a longer time than would
be the case with many other languages.

Forks should be based on the [last viable
commit](https://github.com/jung-kurt/gofpdf/commit/603f56990463f011cb1dbb64ef7f872c1adc009a).
commit](https://github.com/raykov/gofpdf/commit/603f56990463f011cb1dbb64ef7f872c1adc009a).
Tools such as
[active-forks](https://techgaun.github.io/active-forks/index.html#jung-kurt/gofpdf)
can be used to select a fork that looks promising for your needs. If a
Expand All @@ -72,13 +72,13 @@ appreciated. Best wishes to all of you.
To install the package on your system, run

``` shell
go get github.com/jung-kurt/gofpdf
go get github.com/raykov/gofpdf
```

Later, to receive updates, run

``` shell
go get -u -v github.com/jung-kurt/gofpdf/...
go get -u -v github.com/raykov/gofpdf/...
```

## Quick Start
Expand All @@ -94,7 +94,7 @@ err := pdf.OutputFileAndClose("hello.pdf")
```

See the functions in the
[fpdf\_test.go](https://github.com/jung-kurt/gofpdf/blob/master/fpdf_test.go)
[fpdf\_test.go](https://github.com/raykov/gofpdf/blob/master/fpdf_test.go)
file (shown as examples in this documentation) for more advanced PDF
examples.

Expand Down Expand Up @@ -142,7 +142,7 @@ the tests complete.

Please note that these examples run in the context of a test. In order
run an example as a standalone application, you’ll need to examine
[fpdf\_test.go](https://github.com/jung-kurt/gofpdf/blob/master/fpdf_test.go)
[fpdf\_test.go](https://github.com/raykov/gofpdf/blob/master/fpdf_test.go)
for some helper routines, for example `exampleFilename()` and
`summary()`.

Expand Down Expand Up @@ -213,7 +213,7 @@ Here are guidelines for making submissions. Your change should
- be properly documented
- be formatted with `go fmt`
- include an example in
[fpdf\_test.go](https://github.com/jung-kurt/gofpdf/blob/master/fpdf_test.go)
[fpdf\_test.go](https://github.com/raykov/gofpdf/blob/master/fpdf_test.go)
if appropriate
- conform to the standards of [golint](https://github.com/golang/lint)
and [go vet](https://golang.org/cmd/vet/), that is, `golint .` and
Expand Down
2 changes: 1 addition & 1 deletion contrib/barcode/barcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
"github.com/boombuler/barcode/ean"
"github.com/boombuler/barcode/qr"
"github.com/boombuler/barcode/twooffive"
"github.com/jung-kurt/gofpdf"
"github.com/raykov/gofpdf"
"github.com/ruudk/golang-pdf417"
)

Expand Down
6 changes: 3 additions & 3 deletions contrib/barcode/barcode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/boombuler/barcode/code128"
"github.com/boombuler/barcode/qr"
"github.com/jung-kurt/gofpdf"
"github.com/jung-kurt/gofpdf/contrib/barcode"
"github.com/jung-kurt/gofpdf/internal/example"
"github.com/raykov/gofpdf"
"github.com/raykov/gofpdf/contrib/barcode"
"github.com/raykov/gofpdf/internal/example"
)

func createPdf() (pdf *gofpdf.Fpdf) {
Expand Down
4 changes: 2 additions & 2 deletions contrib/ghostscript/ghostscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ package main

// This command demonstrates the use of ghotscript to reduce the size
// of generated PDFs. This is based on a comment made by farkerhaiku:
// https://github.com/jung-kurt/gofpdf/issues/57#issuecomment-185843315
// https://github.com/raykov/gofpdf/issues/57#issuecomment-185843315

import (
"fmt"
"os"
"os/exec"

"github.com/jung-kurt/gofpdf"
"github.com/raykov/gofpdf"
)

func report(fileStr string, err error) {
Expand Down
4 changes: 2 additions & 2 deletions contrib/gofpdi/gofpdi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package gofpdi

import (
"bytes"
"github.com/jung-kurt/gofpdf"
"github.com/jung-kurt/gofpdf/internal/example"
"github.com/raykov/gofpdf"
"github.com/raykov/gofpdf/internal/example"
"io"
"sync"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion contrib/httpimg/httpimg.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"
"net/http"

"github.com/jung-kurt/gofpdf"
"github.com/raykov/gofpdf"
)

// httpimgPdf is a partial interface that only implements the functions we need
Expand Down
8 changes: 4 additions & 4 deletions contrib/httpimg/httpimg_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package httpimg_test

import (
"github.com/jung-kurt/gofpdf"
"github.com/jung-kurt/gofpdf/contrib/httpimg"
"github.com/jung-kurt/gofpdf/internal/example"
"github.com/raykov/gofpdf"
"github.com/raykov/gofpdf/contrib/httpimg"
"github.com/raykov/gofpdf/internal/example"
)

func ExampleRegister() {
Expand All @@ -12,7 +12,7 @@ func ExampleRegister() {
pdf.SetFillColor(200, 200, 220)
pdf.AddPage()

url := "https://github.com/jung-kurt/gofpdf/raw/master/image/logo_gofpdf.jpg?raw=true"
url := "https://github.com/raykov/gofpdf/raw/master/image/logo_gofpdf.jpg?raw=true"
httpimg.Register(pdf, url, "")
pdf.Image(url, 15, 15, 267, 0, false, "", 0, "")
fileStr := example.Filename("contrib_httpimg_Register")
Expand Down
2 changes: 1 addition & 1 deletion contrib/tiff/tiff.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"io"
"os"

"github.com/jung-kurt/gofpdf"
"github.com/raykov/gofpdf"
"golang.org/x/image/tiff"
)

Expand Down
6 changes: 3 additions & 3 deletions contrib/tiff/tiff_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package tiff_test

import (
"github.com/jung-kurt/gofpdf"
"github.com/jung-kurt/gofpdf/contrib/tiff"
"github.com/jung-kurt/gofpdf/internal/example"
"github.com/raykov/gofpdf"
"github.com/raykov/gofpdf/contrib/tiff"
"github.com/raykov/gofpdf/internal/example"
)

// ExampleRegisterFile demonstrates the loading and display of a TIFF image.
Expand Down
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ Installation
To install the package on your system, run
go get github.com/jung-kurt/gofpdf
go get github.com/raykov/gofpdf
Later, to receive updates, run
go get -u -v github.com/jung-kurt/gofpdf/...
go get -u -v github.com/raykov/gofpdf/...
Quick Start
Expand Down
22 changes: 11 additions & 11 deletions doc/document.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ Best wishes to all of you.
To install the package on your system, run

```shell
go get github.com/jung-kurt/gofpdf
go get github.com/raykov/gofpdf
```

Later, to receive updates, run

```shell
go get -u -v github.com/jung-kurt/gofpdf/...
go get -u -v github.com/raykov/gofpdf/...
```

## Quick Start
Expand Down Expand Up @@ -261,28 +261,28 @@ for file attachments and annotations.
[badge-github]: https://img.shields.io/badge/project-Git_Hub-blue.svg
[badge-mit]: https://img.shields.io/badge/license-MIT-blue.svg
[badge-no-maintain]: http://unmaintained.tech/badge.svg
[badge-report]: https://goreportcard.com/badge/github.com/jung-kurt/gofpdf
[badge-report]: https://goreportcard.com/badge/github.com/raykov/gofpdf
[badge-status]: https://travis-ci.org/jung-kurt/gofpdf.svg?branch=master
[coverage]: https://blog.golang.org/cover
[dfont]: http://dejavu-fonts.org/
[draw2d-site]: https://github.com/llgcode/draw2d
[effective-go]: https://golang.org/doc/effective_go.html
[fpdf-site]: http://www.fpdf.org/
[fpdf-test]: https://github.com/jung-kurt/gofpdf/blob/master/fpdf_test.go
[fpdf-test]: https://github.com/raykov/gofpdf/blob/master/fpdf_test.go
[gfont]: https://fonts.google.com/
[github]: https://github.com/jung-kurt/gofpdf
[godoc]: https://godoc.org/github.com/jung-kurt/gofpdf
[github]: https://github.com/raykov/gofpdf
[godoc]: https://godoc.org/github.com/raykov/gofpdf
[gofpdf-fork]: https://techgaun.github.io/active-forks/index.html#jung-kurt/gofpdf
[issue109]: https://github.com/jung-kurt/gofpdf/issues/109
[issue109]: https://github.com/raykov/gofpdf/issues/109
[jung]: https://github.com/jung-kurt/
[last-commit]: https://github.com/jung-kurt/gofpdf/commit/603f56990463f011cb1dbb64ef7f872c1adc009a
[last-commit]: https://github.com/raykov/gofpdf/commit/603f56990463f011cb1dbb64ef7f872c1adc009a
[license]: https://raw.githubusercontent.com/jung-kurt/gofpdf/master/LICENSE
[lint]: https://github.com/golang/lint
[logo]: https://github.com/jung-kurt/gofpdf/raw/master/image/logo_gofpdf.jpg?raw=true
[logo]: https://github.com/raykov/gofpdf/raw/master/image/logo_gofpdf.jpg?raw=true
[noto]: https://github.com/jsntn/webfonts/blob/master/NotoSansSC-Regular.ttf
[pr]: https://help.github.com/articles/using-pull-requests/
[report]: https://goreportcard.com/report/github.com/jung-kurt/gofpdf
[report]: https://goreportcard.com/report/github.com/raykov/gofpdf
[status]: https://travis-ci.org/jung-kurt/gofpdf
[test]: https://github.com/jung-kurt/gofpdf/blob/master/fpdf_test.go
[test]: https://github.com/raykov/gofpdf/blob/master/fpdf_test.go
[unmaintained]: http://unmaintained.tech/
[vet]: https://golang.org/cmd/vet/
10 changes: 5 additions & 5 deletions fpdf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import (
"testing"
"time"

"github.com/jung-kurt/gofpdf"
"github.com/jung-kurt/gofpdf/internal/example"
"github.com/jung-kurt/gofpdf/internal/files"
"github.com/raykov/gofpdf"
"github.com/raykov/gofpdf/internal/example"
"github.com/raykov/gofpdf/internal/files"
)

func init() {
Expand Down Expand Up @@ -1568,7 +1568,7 @@ func ExampleFpdf_CellFormat_align() {
pdf.CellFormat(170, 257, rec.txt, borderStr, 0, rec.align, false, 0, linkStr)
borderStr = ""
}
linkStr = "https://github.com/jung-kurt/gofpdf"
linkStr = "https://github.com/raykov/gofpdf"
}
}
pdf := gofpdf.New("P", "mm", "A4", "") // A4 210.0 x 297.0
Expand Down Expand Up @@ -1776,7 +1776,7 @@ func ExampleFpdf_RegisterImageReader() {
wd = 210
ht = 297
fontSize = 15
urlStr = "https://github.com/jung-kurt/gofpdf/blob/master/image/gofpdf.png?raw=true"
urlStr = "https://github.com/raykov/gofpdf/blob/master/image/gofpdf.png?raw=true"
msgStr = `Images from the web can be easily embedded when a PDF document is generated.`
)

Expand Down
16 changes: 8 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/jung-kurt/gofpdf
module github.com/raykov/gofpdf

go 1.12
go 1.16

//replace gofpdf => ./

require (
github.com/boombuler/barcode v1.0.0
github.com/phpdave11/gofpdi v1.0.7
github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58
golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a
github.com/boombuler/barcode v1.0.1
github.com/phpdave11/gofpdi v1.0.13
github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d
)

replace gofpdf => ./
22 changes: 14 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
github.com/boombuler/barcode v1.0.0 h1:s1TvRnXwL2xJRaccrdcBQMZxq6X7DvsMogtmJeHDdrc=
github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
github.com/boombuler/barcode v1.0.1 h1:NDBbPmhS+EqABEs5Kg3n/5ZNjy73Pz7SIV+KCeqyXcs=
github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
github.com/phpdave11/gofpdi v1.0.7 h1:k2oy4yhkQopCK+qW8KjCla0iU2RpDow+QUDmH9DDt44=
github.com/phpdave11/gofpdi v1.0.7/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY=
github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
github.com/phpdave11/gofpdi v1.0.13 h1:o61duiW8M9sMlkVXWlvP92sZJtGKENvW3VExs6dZukQ=
github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58 h1:nlG4Wa5+minh3S9LVFtNoY+GVRiudA2e3EVfcCi3RCA=
github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w=
github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245 h1:K1Xf3bKttbF+koVGaX5xngRIZ5bVjbmPnaxE/dR08uY=
github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
golang.org/x/image v0.0.0-20190902063713-cb417be4ba39 h1:4dQcAORh9oYBwVSBVIkP489LUPC+f1HBkTYXgmqfR+o=
golang.org/x/image v0.0.0-20190902063713-cb417be4ba39/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a h1:gHevYm0pO4QUbwy8Dmdr01R5r1BuKtfYqRqF0h/Cbh0=
golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d h1:RNPAfi2nHY7C2srAV8A49jpsYr0ADedCk1wq6fTMTvs=
golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
2 changes: 1 addition & 1 deletion internal/example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"strings"
"time"

"github.com/jung-kurt/gofpdf"
"github.com/raykov/gofpdf"
)

var gofpdfDir string
Expand Down
2 changes: 1 addition & 1 deletion internal/example/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package example_test
import (
"errors"

"github.com/jung-kurt/gofpdf/internal/example"
"github.com/raykov/gofpdf/internal/example"
)

// ExampleFilename tests the Filename() and Summary() functions.
Expand Down
2 changes: 1 addition & 1 deletion makefont/makefont.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"flag"
"fmt"
"github.com/jung-kurt/gofpdf"
"github.com/raykov/gofpdf"
"os"
)

Expand Down
4 changes: 2 additions & 2 deletions ttfparser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"bytes"
"fmt"

"github.com/jung-kurt/gofpdf"
"github.com/jung-kurt/gofpdf/internal/example"
"github.com/raykov/gofpdf"
"github.com/raykov/gofpdf/internal/example"
)

func ExampleTtfParse() {
Expand Down

0 comments on commit c6626e1

Please sign in to comment.