Request for Auto Trim Feature in PdfPCell
まだ誰も着手していません。
評価
調査の方向性
Start by reading the PdfPCell implementation and its text layout behavior when setNoWrap(true) is enabled. Determine how automatic trimming should work across fonts and widths, and whether it can preserve the expected table layout; the issue provides no file names or tests. Done means text is trimmed to fit the cell width without overlapping neighboring cells, with the behavior covered by tests.
索引モデルが issue の本文から書いたものです。
説明
I propose the addition of an auto trim feature to the PdfPCell class in OpenPDF. Currently, text content exceeding cell width leads to overlap issues with neighboring cells when setNoWrap(true). Kindly Add an option to automatically trim text within a cell to fit its width. This would prevent overflow and improve table layout readability.
If this feature already exists, please let me know how to implement it.
Issue:
Expected Solution:
Additionally, could someone assist me in determining the formula for calculating the number of characters that fit within a specified width when the font size is known?
Thank you
- 主要言語
- Java
- スター
- 4.4k
- フォーク
- 714
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LibrePDF/OpenPDF のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
IndexOutOfBoundsException in PdfReader対応中かも @andreasrosdalw が 93 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
`PdfSmartCopy` can take effectively unbounded time on nested shared Form XObjects対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
LibrePDF/OpenPDF の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
OpenAPITools/openapi-generator#25454 ·
メンテナーはふだん 1 日以内に返信
-
Component - Build
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
navikt/mock-oauth2-server#1149 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
oracle/graalvm-reachability-metadata#11318 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Stirling-Tools/Stirling-PDF#8709 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信