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

Being able to pass custom attributes to elements to be used in custom Writers #1272

Open
maayanb180 opened this issue Feb 25, 2025 · 0 comments

Comments

@maayanb180
Copy link

Is your feature request related to a problem? Please describe.
I've developed several custom Writers for the itext API. The problem is that I'd like to be able to have my own custom parameters, so I will have full control on settings that are not a part of PDF.

For example - being able to have the MS Word "Style" for a Paragraph.

Describe the solution you'd like
Adding a map of custom parameters to all elements that is filled during the SAX parsing, and saved in the Element objects.

Describe alternatives you've considered
Today, I use specific colors as hints to my writers (for example, color "#d3a4a5" is "Heading1", and so on...). it works, but I don't like this approach.

Your real name
Maayan

Additional context

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

No branches or pull requests

1 participant