pdf_signature/test/features/support_multiple_signature_...

31 lines
1.4 KiB
Gherkin

Feature: support multiple signature pictures
Scenario: Place signatures on different pages with different images
Given a multi-page PDF is open
When the user places a signature from picture <first_image> on page <first_page>
And the user places a signature from picture <second_image> on page <second_page>
Then both signatures are shown on their respective pages
Examples:
# Same page, same image
# Same page, different images
# Different pages, same image
# Different pages, different images
| first_image | first_page | second_image | second_page |
| 'alice.png' | 1 | 'alice.png' | 1 |
| 'alice.png' | 1 | 'bob.png' | 1 |
| 'alice.png' | 1 | 'bob.png' | 3 |
| 'bob.png' | 2 | 'alice.png' | 5 |
Scenario: Reuse the same image for more than one signature
Given a signature image is loaded or drawn
When the user places it in multiple locations in the document
Then identical signature instances appear in each location
And adjusting one instance does not affect the others
Scenario: Save/export uses the assigned image for each signature
Given a PDF is open and contains multiple placed signatures across pages
When the user saves/exports the document
Then all placed signatures appear on their corresponding pages in the output
And other page content remains unaltered