Skip to content
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

Very approximate support for hiding text using clipping path #1026

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

Conversation

dhdaines
Copy link
Contributor

This PR adds an API for the clipping path with an extremely approximate implementation (simply a bounding box). This is, however, good enough to support a very common use case which is to hide text by temporarily setting a clipping path and drawing it outside said path. Fixes #414 in particular.

Tested with the sample document from #414 (couldn't use the one I mentioned in the comment because for some reason the law does not belong to the people and cannot be redistributed).

  • [x ] I have read CONTRIBUTING.md.
  • [x ] I have added a concise human-readable description of the change to CHANGELOG.md.
  • [x ] I have tested that this fix is effective or that this feature works.
  • [x ] I have added docstrings to newly created methods and classes.
  • [x ] I have updated the README.md and the readthedocs documentation. Or verified that this is not necessary.

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.

Clipping paths implementation
1 participant