Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ body:
id: gpdf-version
attributes:
label: gpdf Version
placeholder: "v0.9.2"
placeholder: "v1.0.0"
validations:
required: true

Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
- Reed-Solomon coefficient order in QR code encoder
- binary.Write return value handling for errcheck lint

[Unreleased]: https://github.com/gpdf-dev/gpdf/compare/v0.9.0...HEAD
[0.9.0]: https://github.com/gpdf-dev/gpdf/compare/v0.8.0...v0.9.0
[Unreleased]: https://github.com/gpdf-dev/gpdf/compare/v1.0.0...HEAD
[0.9.0]: https://github.com/gpdf-dev/gpdf/compare/v0.8.0...v1.0.0
[0.8.0]: https://github.com/gpdf-dev/gpdf/compare/v0.5.0...v0.8.0
[0.7.0]: https://github.com/gpdf-dev/gpdf/releases/tag/v0.7.0
[0.6.0]: https://github.com/gpdf-dev/gpdf/releases/tag/v0.6.0
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

[![Go Reference](https://pkg.go.dev/badge/github.com/gpdf-dev/gpdf.svg)](https://pkg.go.dev/github.com/gpdf-dev/gpdf)
[![CI](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml/badge.svg)](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml)
![coverage](https://img.shields.io/badge/coverage-92.6%25-brightgreen)
![coverage](https://img.shields.io/badge/coverage-85.0%25-green)
[![Go Report Card](https://goreportcard.com/badge/github.com/gpdf-dev/gpdf)](https://goreportcard.com/report/github.com/gpdf-dev/gpdf)
[![Go Version](https://img.shields.io/badge/Go-%3E%3D1.22-blue)](https://go.dev/)
[![Website](https://img.shields.io/badge/Website-gpdf.dev-blue)](https://gpdf.dev/)

**English** | [日本語](README_ja.md) | [中文](README_zh.md) | [한국어](README_ko.md) | [Español](README_es.md) | [Português](README_pt.md)

Expand Down
1 change: 1 addition & 0 deletions README_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![CI](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml/badge.svg)](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/gpdf-dev/gpdf)](https://goreportcard.com/report/github.com/gpdf-dev/gpdf)
[![Go Version](https://img.shields.io/badge/Go-%3E%3D1.22-blue)](https://go.dev/)
[![Website](https://img.shields.io/badge/Website-gpdf.dev-blue)](https://gpdf.dev/)

[English](README.md) | [日本語](README_ja.md) | [中文](README_zh.md) | [한국어](README_ko.md) | **Español** | [Português](README_pt.md)

Expand Down
1 change: 1 addition & 0 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![CI](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml/badge.svg)](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/gpdf-dev/gpdf)](https://goreportcard.com/report/github.com/gpdf-dev/gpdf)
[![Go Version](https://img.shields.io/badge/Go-%3E%3D1.22-blue)](https://go.dev/)
[![Website](https://img.shields.io/badge/Website-gpdf.dev-blue)](https://gpdf.dev/)

[English](README.md) | **日本語** | [中文](README_zh.md) | [한국어](README_ko.md) | [Español](README_es.md) | [Português](README_pt.md)

Expand Down
1 change: 1 addition & 0 deletions README_ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![CI](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml/badge.svg)](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/gpdf-dev/gpdf)](https://goreportcard.com/report/github.com/gpdf-dev/gpdf)
[![Go Version](https://img.shields.io/badge/Go-%3E%3D1.22-blue)](https://go.dev/)
[![Website](https://img.shields.io/badge/Website-gpdf.dev-blue)](https://gpdf.dev/)

[English](README.md) | [日本語](README_ja.md) | [中文](README_zh.md) | **한국어** | [Español](README_es.md) | [Português](README_pt.md)

Expand Down
1 change: 1 addition & 0 deletions README_pt.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![CI](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml/badge.svg)](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/gpdf-dev/gpdf)](https://goreportcard.com/report/github.com/gpdf-dev/gpdf)
[![Go Version](https://img.shields.io/badge/Go-%3E%3D1.22-blue)](https://go.dev/)
[![Website](https://img.shields.io/badge/Website-gpdf.dev-blue)](https://gpdf.dev/)

[English](README.md) | [日本語](README_ja.md) | [中文](README_zh.md) | [한국어](README_ko.md) | [Español](README_es.md) | **Português**

Expand Down
1 change: 1 addition & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![CI](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml/badge.svg)](https://github.com/gpdf-dev/gpdf/actions/workflows/check-code.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/gpdf-dev/gpdf)](https://goreportcard.com/report/github.com/gpdf-dev/gpdf)
[![Go Version](https://img.shields.io/badge/Go-%3E%3D1.22-blue)](https://go.dev/)
[![Website](https://img.shields.io/badge/Website-gpdf.dev-blue)](https://gpdf.dev/)

[English](README.md) | [日本語](README_ja.md) | **中文** | [한국어](README_ko.md) | [Español](README_es.md) | [Português](README_pt.md)

Expand Down
4 changes: 2 additions & 2 deletions _benchmark/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ go 1.24
replace github.com/gpdf-dev/gpdf => ../

require (
github.com/go-pdf/fpdf v0.9.0
github.com/go-pdf/fpdf v1.0.0
github.com/johnfercher/maroto/v2 v2.3.3
github.com/gpdf-dev/gpdf v0.9.2
github.com/gpdf-dev/gpdf v1.0.0
github.com/signintech/gopdf v0.36.0
golang.org/x/image v0.18.0
)
Expand Down
4 changes: 2 additions & 2 deletions _benchmark/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/f-amaral/go-async v0.3.0 h1:h4kLsX7aKfdWaHvV0lf+/EE3OIeCzyeDYJDb/vDZUyg=
github.com/f-amaral/go-async v0.3.0/go.mod h1:Hz5Qr6DAWpbTTUjytnrg1WIsDgS7NtOei5y8SipYS7U=
github.com/go-pdf/fpdf v0.9.0 h1:PPvSaUuo1iMi9KkaAn90NuKi+P4gwMedWPHhj8YlJQw=
github.com/go-pdf/fpdf v0.9.0/go.mod h1:oO8N111TkmKb9D7VvWGLvLJlaZUQVPM+6V42pp3iV4Y=
github.com/go-pdf/fpdf v1.0.0 h1:PPvSaUuo1iMi9KkaAn90NuKi+P4gwMedWPHhj8YlJQw=
github.com/go-pdf/fpdf v1.0.0/go.mod h1:oO8N111TkmKb9D7VvWGLvLJlaZUQVPM+6V42pp3iV4Y=
github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU=
github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/hhrutter/lzw v1.0.0 h1:laL89Llp86W3rRs83LvKbwYRx6INE8gDn0XNb1oXtm0=
Expand Down
2 changes: 1 addition & 1 deletion encrypt/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func Apply(pw *pdf.Writer, opts ...Option) error {
pdf.Name("Filter"): pdf.Name("Standard"),
pdf.Name("V"): pdf.Integer(5),
pdf.Name("R"): pdf.Integer(6),
pdf.Name("Length"): pdf.Integer(256),
pdf.Name("Length"): pdf.Integer(256),
pdf.Name("CF"): pdf.Dict{
pdf.Name("StdCF"): pdf.Dict{
pdf.Name("Type"): pdf.Name("CryptFilter"),
Expand Down
2 changes: 1 addition & 1 deletion gpdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (

"github.com/gpdf-dev/gpdf/document"
"github.com/gpdf-dev/gpdf/encrypt"
"github.com/gpdf-dev/gpdf/pdfa"
"github.com/gpdf-dev/gpdf/pdf"
"github.com/gpdf-dev/gpdf/pdfa"
"github.com/gpdf-dev/gpdf/signature"
"github.com/gpdf-dev/gpdf/template"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/buildinfo/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package buildinfo

// Version is the library version. It is the single source of truth used by
// the public gpdf.Version constant and the default PDF Producer metadata.
const Version = "0.9.2"
const Version = "1.0.0"
20 changes: 10 additions & 10 deletions pdfa/icc.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ func buildSRGBProfile() []byte {
_ = binary.Write(&buf, binary.BigEndian, uint32(0)) // unicode count
// ScriptCode (empty)
_ = binary.Write(&buf, binary.BigEndian, uint16(0)) // scriptcode code
buf.WriteByte(0) // scriptcode count
buf.Write(make([]byte, 67)) // scriptcode string (67 bytes)
buf.WriteByte(0) // scriptcode count
buf.Write(make([]byte, 67)) // scriptcode string (67 bytes)
// Pad to 4-byte boundary
for buf.Len()%4 != 0 {
buf.WriteByte(0)
Expand Down Expand Up @@ -135,7 +135,7 @@ func buildSRGBProfile() []byte {
buf.Grow(totalSize)

// === Header (128 bytes) ===
_ = binary.Write(buf, binary.BigEndian, uint32(totalSize)) // Profile size
_ = binary.Write(buf, binary.BigEndian, uint32(totalSize)) // Profile size
buf.WriteString("gpdf") // Preferred CMM Type
_ = binary.Write(buf, binary.BigEndian, uint32(0x02100000)) // Version 2.1.0
buf.WriteString("mntr") // Device class: monitor
Expand All @@ -148,13 +148,13 @@ func buildSRGBProfile() []byte {
_ = binary.Write(buf, binary.BigEndian, uint16(0)) // hour
_ = binary.Write(buf, binary.BigEndian, uint16(0)) // minute
_ = binary.Write(buf, binary.BigEndian, uint16(0)) // second
buf.WriteString("acsp") // File signature (always "acsp")
buf.WriteString("APPL") // Primary platform
_ = binary.Write(buf, binary.BigEndian, uint32(0)) // Profile flags
buf.WriteString("gpdf") // Device manufacturer
buf.WriteString("sRGB") // Device model
_ = binary.Write(buf, binary.BigEndian, uint64(0)) // Device attributes
_ = binary.Write(buf, binary.BigEndian, uint32(0)) // Rendering intent (perceptual)
buf.WriteString("acsp") // File signature (always "acsp")
buf.WriteString("APPL") // Primary platform
_ = binary.Write(buf, binary.BigEndian, uint32(0)) // Profile flags
buf.WriteString("gpdf") // Device manufacturer
buf.WriteString("sRGB") // Device model
_ = binary.Write(buf, binary.BigEndian, uint64(0)) // Device attributes
_ = binary.Write(buf, binary.BigEndian, uint32(0)) // Rendering intent (perceptual)
// PCS illuminant (D50 XYZ)
_ = binary.Write(buf, binary.BigEndian, s15Fixed16(0.9642))
_ = binary.Write(buf, binary.BigEndian, s15Fixed16(1.0))
Expand Down
Loading
Loading