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

Handling Row Content Splitting in PdfPTable.writeSelectedRows()

Aperta
#1,168 3 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
32/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
backend

Direzione di ricerca

Start by tracing how document.add(table) lays out and splits rows, then compare that path with PdfPTable.writeSelectedRows(). The issue names those two entry points but no source files or tests; locate the relevant layout code and tests first. Done means selected-row writing preserves long row content across pages without data loss, matching the document flow behavior.

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

Descrizione

enhancement

Hello,

In PdfPTable, we have support to write tables in two ways:

  1. document.add(table);
  2. table.writeSelectedRows();

In the first approach, if a table row's content is too long to fit on a single page, the content is properly split across multiple pages. However, the same handling is not available in the second approach leading to data loss.

Can someone guide me on how to achieve the similar behavior in the second approach?
Or, please navigate me to the respective code logic that handles this behavior in the first approach.

PDF via document.add(table);
Screenshot from 2024-05-24 12-57-32

PDF via table.writeSelectedRows();
Screenshot from 2024-05-24 12-57-44

Thank you!

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.