New Upstream Release - golang-github-jung-kurt-gofpdf
Ready changes
Summary
Merged new upstream version: 2.17.3+ds (was: 2.17.2+ds).
Resulting package
Built on 2022-09-29T06:35 (took 2m33s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-releases golang-github-jung-kurt-gofpdf-dev
Lintian Result
Diff
diff --git a/README.md b/README.md
index 3321b24..b6327a3 100644
--- a/README.md
+++ b/README.md
@@ -4,8 +4,7 @@
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)
+[![GoDoc](https://img.shields.io/badge/godoc-GoFPDF-blue.svg)](https://pkg.go.dev/github.com/jung-kurt/gofpdf)
![](https://github.com/jung-kurt/gofpdf/raw/master/image/logo_gofpdf.jpg?raw=true)
diff --git a/debian/changelog b/debian/changelog
index d51af96..49a44ee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-github-jung-kurt-gofpdf (2.17.3+ds-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk> Thu, 29 Sep 2022 06:33:08 -0000
+
golang-github-jung-kurt-gofpdf (2.17.2+ds-3) unstable; urgency=medium
* Do not Remove extra license file
diff --git a/debian/patches/disable-tests-needing-binaries.patch b/debian/patches/disable-tests-needing-binaries.patch
index 430ea38..096cda8 100644
--- a/debian/patches/disable-tests-needing-binaries.patch
+++ b/debian/patches/disable-tests-needing-binaries.patch
@@ -1,9 +1,11 @@
Author: Nilesh Patra <npatra974@gmail.com>
Description: Remove tests needing ttf binary files / other non-free binaries - these binaries need to be removed and hence cannot be used for testing.
Last Changed: July 22, 01:11
---- a/fpdf_test.go
-+++ b/fpdf_test.go
-@@ -24,7 +24,6 @@
+Index: golang-github-jung-kurt-gofpdf/fpdf_test.go
+===================================================================
+--- golang-github-jung-kurt-gofpdf.orig/fpdf_test.go
++++ golang-github-jung-kurt-gofpdf/fpdf_test.go
+@@ -24,7 +24,6 @@ import (
"io/ioutil"
"math"
"math/rand"
@@ -11,7 +13,7 @@ Last Changed: July 22, 01:11
"os"
"path/filepath"
"strconv"
-@@ -34,7 +33,6 @@
+@@ -34,7 +33,6 @@ import (
"github.com/jung-kurt/gofpdf/v2"
"github.com/jung-kurt/gofpdf/v2/internal/example"
@@ -19,7 +21,7 @@ Last Changed: July 22, 01:11
)
func init() {
-@@ -774,6 +772,7 @@
+@@ -774,6 +772,7 @@ func ExampleFpdf_HTMLBasicNew() {
// Successfully generated pdf/Fpdf_HTMLBasicNew.pdf
}
@@ -27,7 +29,7 @@ Last Changed: July 22, 01:11
// ExampleFpdf_AddFont demonstrates the use of a non-standard font.
func ExampleFpdf_AddFont() {
pdf := gofpdf.New("P", "mm", "A4", example.FontDir())
-@@ -787,6 +786,7 @@
+@@ -787,6 +786,7 @@ func ExampleFpdf_AddFont() {
// Output:
// Successfully generated pdf/Fpdf_AddFont.pdf
}
@@ -35,7 +37,7 @@ Last Changed: July 22, 01:11
// ExampleFpdf_WriteAligned demonstrates how to align text with the Write function.
func ExampleFpdf_WriteAligned() {
-@@ -948,6 +948,7 @@
+@@ -948,6 +948,7 @@ func ExampleFpdf_SetAcceptPageBreakFunc(
// Successfully generated pdf/Fpdf_SetAcceptPageBreakFunc_landscape.pdf
}
@@ -43,7 +45,7 @@ Last Changed: July 22, 01:11
// This example tests corner cases as reported by the gocov tool.
func ExampleFpdf_SetKeywords() {
var err error
-@@ -972,6 +973,7 @@
+@@ -972,6 +973,7 @@ func ExampleFpdf_SetKeywords() {
// Output:
// Successfully generated pdf/Fpdf_SetKeywords.pdf
}
@@ -51,7 +53,7 @@ Last Changed: July 22, 01:11
// ExampleFpdf_Circle demonstrates the construction of various geometric figures,
func ExampleFpdf_Circle() {
-@@ -1534,6 +1536,7 @@
+@@ -1534,6 +1536,7 @@ func ExampleFpdf_SVGBasicWrite() {
// Successfully generated pdf/Fpdf_SVGBasicWrite.pdf
}
@@ -59,7 +61,7 @@ Last Changed: July 22, 01:11
// ExampleFpdf_CellFormat_align demonstrates Stefan Schroeder's code to control vertical
// alignment.
func ExampleFpdf_CellFormat_align() {
-@@ -1588,6 +1591,7 @@
+@@ -1588,6 +1591,7 @@ func ExampleFpdf_CellFormat_align() {
// Generalized font loader reading calligra.z
// Successfully generated pdf/Fpdf_CellFormat_align.pdf
}
@@ -67,7 +69,7 @@ Last Changed: July 22, 01:11
// ExampleFpdf_CellFormat_codepageescape demonstrates the use of characters in the high range of the
// Windows-1252 code page (gofdpf default). See the example for CellFormat (4)
-@@ -1623,6 +1627,7 @@
+@@ -1623,6 +1627,7 @@ func ExampleFpdf_CellFormat_codepageesca
// ExampleFpdf_CellFormat_codepage demonstrates the automatic conversion of UTF-8 strings to an
// 8-bit font encoding.
@@ -75,7 +77,7 @@ Last Changed: July 22, 01:11
func ExampleFpdf_CellFormat_codepage() {
pdf := gofpdf.New("P", "mm", "A4", example.FontDir()) // A4 210.0 x 297.0
// See documentation for details on how to generate fonts
-@@ -1662,6 +1667,7 @@
+@@ -1662,6 +1667,7 @@ func ExampleFpdf_CellFormat_codepage() {
// Output:
// Successfully generated pdf/Fpdf_CellFormat_codepage.pdf
}
@@ -83,7 +85,7 @@ Last Changed: July 22, 01:11
// ExampleFpdf_SetProtection demonstrates password protection for documents.
func ExampleFpdf_SetProtection() {
-@@ -1769,6 +1775,7 @@
+@@ -1769,6 +1775,7 @@ func ExampleFpdf_AddLayer() {
// ExampleFpdf_RegisterImageReader demonstrates the use of an image that is retrieved from a web
// server.
@@ -91,7 +93,7 @@ Last Changed: July 22, 01:11
func ExampleFpdf_RegisterImageReader() {
const (
-@@ -1810,6 +1817,7 @@
+@@ -1810,6 +1817,7 @@ func ExampleFpdf_RegisterImageReader() {
// Successfully generated pdf/Fpdf_RegisterImageReader_url.pdf
}
@@ -99,7 +101,7 @@ Last Changed: July 22, 01:11
// ExampleFpdf_Beziergon demonstrates the Beziergon function.
func ExampleFpdf_Beziergon() {
-@@ -1900,6 +1908,7 @@
+@@ -1900,6 +1908,7 @@ func ExampleFpdf_Beziergon() {
}
@@ -107,7 +109,7 @@ Last Changed: July 22, 01:11
// ExampleFpdf_SetFontLoader demonstrates loading a non-standard font using a generalized
// font loader. fontResourceType implements the FontLoader interface and is
// defined locally in the test source code.
-@@ -1919,6 +1928,7 @@
+@@ -1919,6 +1928,7 @@ func ExampleFpdf_SetFontLoader() {
// Generalized font loader reading calligra.z
// Successfully generated pdf/Fpdf_SetFontLoader.pdf
}
@@ -115,7 +117,7 @@ Last Changed: July 22, 01:11
// ExampleFpdf_MoveTo demonstrates the Path Drawing functions, such as: MoveTo,
// LineTo, CurveTo, ..., ClosePath and DrawPath.
-@@ -2115,6 +2125,7 @@
+@@ -2115,6 +2125,7 @@ func ExampleFpdf_CreateTemplate() {
// Successfully generated pdf/Fpdf_CreateTemplate.pdf
}
@@ -123,7 +125,7 @@ Last Changed: July 22, 01:11
// ExampleFpdf_AddFontFromBytes demonstrate how to use embedded fonts from byte array
func ExampleFpdf_AddFontFromBytes() {
pdf := gofpdf.New("P", "mm", "A4", "")
-@@ -2128,6 +2139,7 @@
+@@ -2128,6 +2139,7 @@ func ExampleFpdf_AddFontFromBytes() {
// Output:
// Successfully generated pdf/Fpdf_EmbeddedFont.pdf
}
@@ -131,7 +133,7 @@ Last Changed: July 22, 01:11
// This example demonstrate Clipped table cells
func ExampleFpdf_ClipRect() {
-@@ -2286,6 +2298,7 @@
+@@ -2286,6 +2298,7 @@ func ExampleFpdf_RegisterAlias() {
// ExampleFpdf_RegisterAlias_utf8 demonstrates how to use `RegisterAlias` to
// create a table of contents. This particular example demonstrates the use of
// UTF-8 aliases.
@@ -139,7 +141,7 @@ Last Changed: July 22, 01:11
func ExampleFpdf_RegisterAlias_utf8() {
pdf := gofpdf.New("P", "mm", "A4", "")
pdf.AddUTF8Font("dejavu", "", example.FontFile("DejaVuSansCondensed.ttf"))
-@@ -2316,6 +2329,7 @@
+@@ -2316,6 +2329,7 @@ func ExampleFpdf_RegisterAlias_utf8() {
// Output:
// Successfully generated pdf/Fpdf_RegisterAliasUTF8.pdf
}
@@ -147,7 +149,7 @@ Last Changed: July 22, 01:11
// ExampleNewGrid demonstrates the generation of graph grids.
func ExampleNewGrid() {
-@@ -2598,6 +2612,7 @@
+@@ -2598,6 +2612,7 @@ func ExampleFpdf_TransformRotate() {
// ExampleFpdf_AddUTF8Font demonstrates how use the font
// with utf-8 mode
@@ -155,7 +157,7 @@ Last Changed: July 22, 01:11
func ExampleFpdf_AddUTF8Font() {
var fileStr string
var txtStr []byte
-@@ -2606,16 +2621,13 @@
+@@ -2606,16 +2621,13 @@ func ExampleFpdf_AddUTF8Font() {
pdf := gofpdf.New("P", "mm", "A4", "")
pdf.AddPage()
@@ -172,7 +174,7 @@ Last Changed: July 22, 01:11
pdf.SetFont("dejavu", "B", 17)
pdf.MultiCell(100, 8, "Text in different languages :", "", "C", false)
pdf.SetFont("dejavu", "", 14)
-@@ -2637,7 +2649,9 @@
+@@ -2637,7 +2649,9 @@ func ExampleFpdf_AddUTF8Font() {
// Output:
// Successfully generated pdf/Fpdf_AddUTF8Font.pdf
}
@@ -182,7 +184,7 @@ Last Changed: July 22, 01:11
// ExampleUTF8CutFont demonstrates how generate a TrueType font subset.
func ExampleUTF8CutFont() {
var pdfFileStr, fullFontFileStr, subFontFileStr string
-@@ -2685,6 +2699,7 @@
+@@ -2685,6 +2699,7 @@ func ExampleUTF8CutFont() {
// Output:
// Successfully generated pdf/Fpdf_UTF8CutFont.pdf
}
@@ -190,9 +192,11 @@ Last Changed: July 22, 01:11
func ExampleFpdf_RoundedRect() {
const (
---- a/ttfparser_test.go
-+++ b/ttfparser_test.go
-@@ -24,6 +24,7 @@
+Index: golang-github-jung-kurt-gofpdf/ttfparser_test.go
+===================================================================
+--- golang-github-jung-kurt-gofpdf.orig/ttfparser_test.go
++++ golang-github-jung-kurt-gofpdf/ttfparser_test.go
+@@ -24,6 +24,7 @@ import (
"github.com/jung-kurt/gofpdf/v2/internal/example"
)
@@ -200,7 +204,7 @@ Last Changed: July 22, 01:11
func ExampleTtfParse() {
ttf, err := gofpdf.TtfParse(example.FontDir() + "/calligra.ttf")
if err == nil {
-@@ -44,6 +45,7 @@
+@@ -44,6 +45,7 @@ func ExampleTtfParse() {
// Xmax: 1328
// Ymax: 899
}
diff --git a/doc.go b/doc.go
index ca822fc..57755f0 100644
--- a/doc.go
+++ b/doc.go
@@ -2,7 +2,6 @@
Package gofpdf implements a PDF document generator with high level
support for text, drawing and images.
-
Features
@@ -55,7 +54,6 @@ example, NotoSansSC for simplified Chinese) can be used.
Also, support is provided to automatically translate UTF-8 runes to code
page encodings for languages that have fewer than 256 glyphs.
-
We Are Closed
This repository will not be maintained, at least for some unknown
@@ -73,7 +71,6 @@ that direction.
The efforts of all contributors to this project have been deeply
appreciated. Best wishes to all of you.
-
Installation
If you currently use the $GOPATH scheme, install the package with the
@@ -85,7 +82,6 @@ To test the installation, run
go test ./...
-
Quick Start
The following Go code generates a simple PDF file.
@@ -99,7 +95,6 @@ The following Go code generates a simple PDF file.
See the functions in the fpdf_test.go file (shown as examples in this
documentation) for more advanced PDF examples.
-
Errors
If an error occurs in an Fpdf method, an internal error field is set.
@@ -115,7 +110,6 @@ during the life cycle of the Fpdf instance, the error state can be
determined with a call to Ok() or Err(). The error itself can be
retrieved with a call to Error().
-
Conversion Notes
This package is a relatively straightforward translation from the
@@ -136,7 +130,6 @@ cases additional methods have been exported to provide similar
functionality. Font definition files are produced in JSON rather than
PHP.
-
Example PDFs
A side effect of running go test ./... is the production of a number of
@@ -164,7 +157,6 @@ timestamps must be the same. To do this, the methods SetCatalogSort()
and SetCreationDate() need to be called for both files. This is done
automatically for all examples.
-
Nonstandard Fonts
Nothing special is required to use the standard PDF fonts (courier,
@@ -191,14 +183,12 @@ with the standard fonts, SetFont() to begin using it. Most examples,
including the package example, demonstrate this method. Good sources of
free, open-source fonts include Google Fonts and DejaVu Fonts.
-
Related Packages
The draw2d package is a two dimensional vector graphics library that can
generate output in different forms. It uses gofpdf for its document
production mode.
-
Contributing Changes
gofpdf is a global community effort and you are invited to make it even
@@ -226,13 +216,11 @@ go vet . should not generate any warnings
Pull requests are the preferred means of accepting your changes.
-
License
gofpdf is released under the MIT License. It is copyrighted by Kurt Jung
and the contributors acknowledged below.
-
Acknowledgments
This package’s code and documentation are closely derived from the FPDF
@@ -281,7 +269,6 @@ functionality and optimized image storage. Benoit KUGLER contributed
support for rectangles with corners of unequal radius, modification
times, and for file attachments and annotations.
-
Roadmap
diff --git a/doc/document.md b/doc/document.md
index 33e79a5..0c458dd 100644
--- a/doc/document.md
+++ b/doc/document.md
@@ -2,7 +2,6 @@
[![No Maintenance Intended][badge-no-maintain]][unmaintained]
[![MIT licensed][badge-mit]][license]
-[![Report][badge-report]][report]
[![GoDoc][badge-doc]][godoc]
![][logo]
@@ -262,7 +261,6 @@ 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-status]: https://travis-ci.org/jung-kurt/gofpdf.svg?branch=master
[coverage]: https://blog.golang.org/cover
[dfont]: http://dejavu-fonts.org/
@@ -272,7 +270,7 @@ for file attachments and annotations.
[fpdf-test]: https://github.com/jung-kurt/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
+[godoc]: https://pkg.go.dev/github.com/jung-kurt/gofpdf
[gofpdf-fork]: https://techgaun.github.io/active-forks/index.html#jung-kurt/gofpdf
[issue109]: https://github.com/jung-kurt/gofpdf/issues/109
[jung]: https://github.com/jung-kurt/
@@ -282,7 +280,6 @@ for file attachments and annotations.
[logo]: https://github.com/jung-kurt/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
[status]: https://travis-ci.org/jung-kurt/gofpdf
[test]: https://github.com/jung-kurt/gofpdf/blob/master/fpdf_test.go
[unmaintained]: http://unmaintained.tech/
diff --git a/go.mod b/go.mod
index eb861d8..cd86ea8 100644
--- a/go.mod
+++ b/go.mod
@@ -1,3 +1,3 @@
module github.com/jung-kurt/gofpdf/v2
-go 1.12
+go 1.16
Debdiff
File lists identical (after any substitutions)
No differences were encountered in the control files