-
Notifications
You must be signed in to change notification settings - Fork 572
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
Requesting support for Gradient Color Fill and Stroke #1141
Comments
I'm not sure if there is already such a functionality. |
I think nothing much changed in regard to creating shadings between iText 2.1.7 and iText 5.x (except package names), so please try something along the lines of this stack overflow answer or this one. |
This seems to be much simpler than I thought. |
Just added @mkl-public example in pdf-toolbox. |
Its working perfectly, thanks thank you @mkl-public @asturio |
I would like to request a feature for implementing gradient colors for background and stroke effects for lines and rectangles. If this functionality already exists in the current build, could you please provide me with sample code to achieve this?
Expected:
![gradientBg](https://private-user-images.githubusercontent.com/149143987/321178398-35b277d8-9ad7-43dc-8092-8a818ac1c7d4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTcwNDksIm5iZiI6MTcyMTgxNjc0OSwicGF0aCI6Ii8xNDkxNDM5ODcvMzIxMTc4Mzk4LTM1YjI3N2Q4LTlhZDctNDNkYy04MDkyLThhODE4YWMxYzdkNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQxMDI1NDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MzBlNzRkMzAyMDIwYzlmOWMyNzgzYTk4ZDFjZjJiOThjZTU0MzdlOWQ1ODZhMDZjNWExZTU2OTVjYWQzZDk4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.6nECCQxQrN1h_GEaxMM-jI-my4KHpzk-C8_H27QRbF0)
The text was updated successfully, but these errors were encountered: