From 002ccc40e3d353715f9a2ca69f404176d6213aeb Mon Sep 17 00:00:00 2001 From: Gunnsteinn Hall Date: Thu, 27 Jun 2019 20:13:22 +0000 Subject: [PATCH 1/5] Prepare release of unipdf v3.0.3 --- common/version.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/version.go b/common/version.go index c96594bc..2d2d199c 100644 --- a/common/version.go +++ b/common/version.go @@ -12,11 +12,11 @@ import ( const releaseYear = 2019 const releaseMonth = 6 -const releaseDay = 11 -const releaseHour = 22 +const releaseDay = 27 +const releaseHour = 20 const releaseMin = 10 // Version holds version information, when bumping this make sure to bump the released at stamp also. -const Version = "3.0.2" +const Version = "3.0.3" var ReleasedAt = time.Date(releaseYear, releaseMonth, releaseDay, releaseHour, releaseMin, 0, 0, time.UTC) From 9818e52a07890aecc5e28e72aa07097901afdcc6 Mon Sep 17 00:00:00 2001 From: Gunnsteinn Hall Date: Thu, 18 Jul 2019 19:37:48 +0000 Subject: [PATCH 2/5] Prepare release v3.1.0 --- common/version.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/version.go b/common/version.go index 2d2d199c..fac27c4e 100644 --- a/common/version.go +++ b/common/version.go @@ -11,12 +11,12 @@ import ( ) const releaseYear = 2019 -const releaseMonth = 6 -const releaseDay = 27 -const releaseHour = 20 -const releaseMin = 10 +const releaseMonth = 7 +const releaseDay = 18 +const releaseHour = 19 +const releaseMin = 40 // Version holds version information, when bumping this make sure to bump the released at stamp also. -const Version = "3.0.3" +const Version = "3.1.0" var ReleasedAt = time.Date(releaseYear, releaseMonth, releaseDay, releaseHour, releaseMin, 0, 0, time.UTC) From c5c8eaba9ed6a8faa67211cf09c54c2c64d67317 Mon Sep 17 00:00:00 2001 From: Gunnsteinn Hall Date: Fri, 19 Jul 2019 20:17:26 +0000 Subject: [PATCH 3/5] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 414ad8f2..b8826510 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,15 @@ creating and reading, processing PDF files. The library is written and supported ## Features -- [Create PDF reports](https://github.com/unidoc/unipdf-examples/blob/v3/report/pdf_report.go) +- [Create PDF reports](https://github.com/unidoc/unipdf-examples/blob/v3/report/pdf_report.go). Example output: [unidoc-report.pdf](https://github.com/unidoc/unipdf-examples/blob/v3/report/unidoc-report.pdf). +- [Table PDF reports](https://github.com/unidoc/unipdf-examples/blob/v3/report/pdf_tables.go). Example output: [unipdf-tables.pdf](https://github.com/unidoc/unipdf-examples/blob/v3/report/unipdf-tables.pdf). - [Invoice creation](https://unidoc.io/news/simple-invoices) -- Advanced table generation in the creator with subtable support - Paragraph in creator handling multiple styles within the same paragraph - [Merge PDF pages](https://github.com/unidoc/unipdf-examples/blob/v3/pages/pdf_merge.go) - [Split PDF pages](https://github.com/unidoc/unipdf-examples/blob/v3/pages/pdf_split.go) and change page order - [Rotate pages](https://github.com/unidoc/unipdf-examples/blob/v3/pages/pdf_rotate.go) - [Extract text from PDF files](https://github.com/unidoc/unipdf-examples/blob/v3/text/pdf_extract_text.go) +- [Text extraction support with size, position and formatting info](https://github.com/unidoc/unipdf-examples/blob/v3/text/pdf_text_locations.go) - [Extract images](https://github.com/unidoc/unipdf-examples/blob/v3/image/pdf_extract_images.go) with coordinates - [Images to PDF](https://github.com/unidoc/unipdf-examples/blob/v3/image/pdf_images_to_pdf.go) - [Add images to pages](https://github.com/unidoc/unipdf-examples/blob/v3/image/pdf_add_image_to_page.go) @@ -34,6 +35,7 @@ creating and reading, processing PDF files. The library is written and supported - [Protect PDF files with a password](https://github.com/unidoc/unipdf-examples/blob/v3/security/pdf_protect.go) - [Digital signing validation and signing](https://github.com/unidoc/unipdf-examples/tree/v3/signatures) - CCITTFaxDecode decoding and encoding support +- JBIG2 decoding support Multiple examples are provided in our example repository https://github.com/unidoc/unidoc-examples as well as [documented examples](https://unidoc.io/examples) on our website. From a2d0f7b6a881d0ac69ce33cb1ab4e251385eb5cf Mon Sep 17 00:00:00 2001 From: Gunnsteinn Hall Date: Sun, 4 Aug 2019 11:43:24 +0000 Subject: [PATCH 4/5] Update README.md --- README.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b8826510..66506f7c 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ creating and reading, processing PDF files. The library is written and supported - [Rotate pages](https://github.com/unidoc/unipdf-examples/blob/v3/pages/pdf_rotate.go) - [Extract text from PDF files](https://github.com/unidoc/unipdf-examples/blob/v3/text/pdf_extract_text.go) - [Text extraction support with size, position and formatting info](https://github.com/unidoc/unipdf-examples/blob/v3/text/pdf_text_locations.go) +- [PDF to CSV](https://github.com/unidoc/unipdf-examples/blob/v3/text/pdf_to_csv.go) illustrates extracting tabular data from PDF. - [Extract images](https://github.com/unidoc/unipdf-examples/blob/v3/image/pdf_extract_images.go) with coordinates - [Images to PDF](https://github.com/unidoc/unipdf-examples/blob/v3/image/pdf_images_to_pdf.go) - [Add images to pages](https://github.com/unidoc/unipdf-examples/blob/v3/image/pdf_add_image_to_page.go) @@ -42,12 +43,6 @@ as well as [documented examples](https://unidoc.io/examples) on our website. Contact us if you need any specific examples. -## News -- unidoc has been renamed to unipdf and is maintained under https://github.com/unidoc/unipdf -- The old repository remains under https://github.com/unidoc/unidoc for backwards compatibility and will be read-only. -All development is under the unipdf repository. -- The initial release of unipdf v3.0.0 is compatible with Go modules from the start. - ## Installation With modules: ~~~ @@ -111,10 +106,18 @@ To use unipdf in your projects, you need to get a license. Get your license on [https://unidoc.io](https://unidoc.io). -To load your license, simply do: +The easiest way to load your license is through environment variables, for example: +```bash +export UNIPDF_CUSTOMER_NAME=UniDoc +export UNIPDF_LICENSE_PATH=/path/to/licenses/UniDoc.txt +``` + +Alternatively you can load the license in code, simply do: ```go -unidocLicenseKey := "... your license here ..." -err := license.SetLicenseKey(unidocLicenseKey) +licenseKey := "... your license here ..." +customerName := `name of license holder` + +err := license.SetLicenseKey(licenseKey, customerName) if err != nil { fmt.Printf("Error loading license: %v\n", err) os.Exit(1) From 0549d63fb37e555d576ae9f88bcbe01daccc6c8e Mon Sep 17 00:00:00 2001 From: Gunnsteinn Hall Date: Sun, 4 Aug 2019 11:43:45 +0000 Subject: [PATCH 5/5] Update version.go to 3.1.1 --- common/version.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/version.go b/common/version.go index fac27c4e..e2c1f080 100644 --- a/common/version.go +++ b/common/version.go @@ -11,12 +11,12 @@ import ( ) const releaseYear = 2019 -const releaseMonth = 7 -const releaseDay = 18 -const releaseHour = 19 +const releaseMonth = 8 +const releaseDay = 4 +const releaseHour = 11 const releaseMin = 40 // Version holds version information, when bumping this make sure to bump the released at stamp also. -const Version = "3.1.0" +const Version = "3.1.1" var ReleasedAt = time.Date(releaseYear, releaseMonth, releaseDay, releaseHour, releaseMin, 0, 0, time.UTC)