Skip to content

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

@maayanb180

Description

@maayanb180

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions