8000 feat: Implement watermark text replacement and update snapshots by ywadi · Pull Request #417 · guigrpa/docx-templates · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Implement watermark text replacement and update snapshots #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ywadi
Copy link
@ywadi ywadi commented Jun 2, 2025

What problem this solves or feature it adds: This PR adds the capability to dynamically replace text within DOCX watermarks using template commands.


Key changes: Modified processTemplate.ts to handle VML textpath string attributes, ensuring command processing occurs with isolated context. Added new tests in templating.test.ts with a sample watermarked document (watermarked.docx) and updated snapshots.


How it was tested: All existing tests pass, and new tests specifically covering watermark replacement also pass. Snapshots have been updated.

@ywadi
Copy link
Author
ywadi commented Jun 3, 2025

Commit 3831d57 has been added to address your review. All tests run and passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0