Being able to pass custom attributes to elements to be used in custom Writers
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
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
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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di LibrePDF/OpenPDF
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
IndexOutOfBoundsException in PdfReaderForse già presa @andreasrosdalw l’ha presa 92 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
`PdfSmartCopy` can take effectively unbounded time on nested shared Form XObjectsForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
Tutte le issue di LibrePDF/OpenPDF
Issue simili
-
:Search Relevance/Vectors >test-failure needs:risk Team:Search Relevance
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
elastic/elasticsearch#163668 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
agent:working bug follow-up lane:auto
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Sanne/incus-spawn#1765 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Mend: dependency security vulnerability untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
opensearch-project/data-prepper#7219 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno