From d1e3cc97591e94e6d83799475b39c9a3fde2a036 Mon Sep 17 00:00:00 2001 From: Peter Chakalov Date: Wed, 22 Jan 2025 18:40:43 +0200 Subject: [PATCH] Add missing comment --- pkg/modules/pdfengines/routes.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/modules/pdfengines/routes.go b/pkg/modules/pdfengines/routes.go index d6285e76..ca04afe0 100644 --- a/pkg/modules/pdfengines/routes.go +++ b/pkg/modules/pdfengines/routes.go @@ -202,6 +202,10 @@ func SplitPdfStub(ctx *api.Context, engine gotenberg.PdfEngine, mode gotenberg.S return outputPaths, nil } +// FlattenStub merges annotation appearances with page content for each given PDF +// in the input paths, effectively deleting the original annotations. It generates +// new output paths for the flattened PDFs and returns them. If an error occurs +// during the flattening process, it returns the error. func FlattenStub(ctx *api.Context, engine gotenberg.PdfEngine, inputPaths []string) ([]string, error) { outputPaths := make([]string, len(inputPaths)) for i, inputPath := range inputPaths {