Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#1,272 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Start by locating the SAX parsing code and the Element classes that receive parsed attributes. Trace how attributes reach custom Writers, then check existing tests for SAX parsing and element handling. Done means custom attributes are retained on elements and can be read by custom Writers, with tests covering the example of a paragraph style.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

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

Lingua principale
Java
Stelle
4.4k
Fork
714
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LibrePDF/OpenPDF

Tutte le issue di LibrePDF/OpenPDF

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.