From cca07a99215982abf5887b2e493f0434bf114097 Mon Sep 17 00:00:00 2001 From: Peter Chakalov Date: Wed, 22 Jan 2025 18:38:35 +0200 Subject: [PATCH] Add missing comment --- pkg/modules/pdfengines/multi.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/modules/pdfengines/multi.go b/pkg/modules/pdfengines/multi.go index e3d4c456..1d421246 100644 --- a/pkg/modules/pdfengines/multi.go +++ b/pkg/modules/pdfengines/multi.go @@ -101,6 +101,9 @@ func (multi *multiPdfEngines) Split(ctx context.Context, logger *zap.Logger, mod return nil, fmt.Errorf("split PDF with multi PDF engines: %w", err) } +// Flatten merges existing annotation appearances with page content, effectively deleting the original annotations. +// This process can flatten forms as well, as forms share a relationship with annotations. +// Note that this operation is irreversible. func (multi *multiPdfEngines) Flatten(ctx context.Context, logger *zap.Logger, inputPath, outputPath string) error { var err error errChan := make(chan error, 1)