Skip to content

Duplicated stamps #930

@nhannh23

Description

@nhannh23

Hi @hhrutter

I have a PDF file from a specific PDF Writer. I'm facing an issue of duplicated stamps when calling stamp multiple times.

Steps to reproduce:

  1. Firstly, I stamp a random string on page 4 of the document
    pdfcpu stamp add -p 4 -m text -- "WORLDDDDDDDDDDDDDDDD" "rot:0,offset:100 -800,pos:tl,fillcolor:#ff0000" duplicated-stamp.pdf 1.pdf
    
  2. Then, call another stamp command on page 3 with the produced PDF file from the first step, 1.pdf
    pdfcpu stamp add -p 3 -m text -- "Hiiiiiiiiiiii" "rot:0,offset:100 -800,pos:tl,fillcolor:#ff0000" 1.pdf 1_1.pdf
    

Result:

I'm seeing the word Hiiiiiiiiiiii is somehow duplicated on the page 3, which is not expected.

I will send you the sample file via email after submitting this issue. Thank you so much for the great tool!

Thank you for submitting a possible bug!

Please ensure the following:

  • Your issue is based on the latest commit
    v0.8.0
  • State your OS and OS version
    macOS Sonoma 14.5
  • When reporting a problem with a specific PDF input file please avoid stating the organization responsible for the PDFWriter - just refer to the PDFWriter

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions