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/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
go-version: '1.24.2'

- name: Run make lint
run: make lint
Expand Down
543 changes: 196 additions & 347 deletions .golangci.yml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GOLANG_VERSION=1.23.2
GOTENBERG_VERSION=edge
GOLANGCI_LINT_VERSION=1.61.0
GOLANG_VERSION=1.24.2
GOTENBERG_VERSION=8.20.1
GOLANGCI_LINT_VERSION=2.1.2

REPO=starwalkn/gotenberg-go-client/v8

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

|Gotenberg version | Client version |
|:----------------:|:----------------------------------------------------------------------------------------------------------:|
|`8.x` **(actual)**| `8.9.2` **(actual)** <br/> |
|`8.x` **(actual)**| `8.10.0` **(actual)** <br/> |
|`7.x` | `<= 8.5.0` |
|`6.x` | <a href="https://github.com/thecodingmachine/gotenberg-go-client">thecodingmachine/gotenberg-go-client</a> |

Expand Down
2 changes: 1 addition & 1 deletion build/lint/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG GOLANG_VERSION

FROM golang:${GOLANG_VERSION:-1.23.2}-alpine
FROM golang:${GOLANG_VERSION:-1.24.2}-alpine

# |--------------------------------------------------------------------------
# | GolangCI-Lint
Expand Down
4 changes: 2 additions & 2 deletions build/tests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG GOLANG_VERSION
ARG GOTENBERG_VERSION

FROM golang:${GOLANG_VERSION:-1.23.2}-alpine AS golang
FROM golang:${GOLANG_VERSION:-1.24.2}-alpine AS golang

FROM gotenberg/gotenberg:${GOTENBERG_VERSION:-8.15.0}
FROM gotenberg/gotenberg:${GOTENBERG_VERSION:-8.20.1}

USER root

Expand Down
1 change: 1 addition & 0 deletions fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const (
fieldOfficePdfA formField = "pdfa"
fieldOfficePdfUa formField = "pdfua"
fieldOfficeFlatten formField = "flatten"
fieldOfficeUpdateIndexes formField = "updateIndexes"
)

// Merge request property.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/starwalkn/gotenberg-go-client/v8

go 1.23.2
go 1.24.2

require github.com/stretchr/testify v1.10.0

Expand Down
6 changes: 6 additions & 0 deletions libreoffice.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ func (req *LibreOfficeRequest) Merge() {
req.fields[fieldOfficeMerge] = strconv.FormatBool(true)
}

// UpdateIndexes specifies whether to update the indexes before conversion, keeping in
// mind that doing so might result in missing links in the final PDF.
func (req *LibreOfficeRequest) UpdateIndexes(value bool) {
req.fields[fieldOfficeUpdateIndexes] = strconv.FormatBool(value)
}

// Compile-time checks to ensure type implements desired interfaces.
var (
_ = multipartRequester(new(LibreOfficeRequest))
Expand Down
8 changes: 2 additions & 6 deletions split_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func TestSplitIntervalsOnePage(t *testing.T) {
require.NoError(t, err)

r := NewSplitIntervalsRequest(doc)
r.Trace("testSplitIntervals")
r.Trace("testSplitIntervalsOnePage")
r.UseBasicAuth("foo", "bar")

r.SplitSpan(3)
Expand Down Expand Up @@ -137,7 +137,7 @@ func TestSplitPagesUnify(t *testing.T) {
require.NoError(t, err)

r := NewSplitPagesRequest(doc)
r.Trace("testSplitPagesOnePage")
r.Trace("testSplitPagesUnify")
r.UseBasicAuth("foo", "bar")

r.SplitSpan("1-2")
Expand All @@ -153,8 +153,4 @@ func TestSplitPagesUnify(t *testing.T) {
isPDF, err := test.IsPDF(dest)
require.NoError(t, err)
require.True(t, isPDF)

pageCount, err := test.GetPDFPageCount(dest)
require.NoError(t, err)
require.Equal(t, 2, pageCount)
}