Copying text will add more space
まだ誰も着手していません。
評価
調査の方向性
Start by reproducing the copied-text spacing with the reported BaseFont and PdfContentByte.showTextAligned calls in OpenPDF 1.4.2. The issue does not identify a source file or test, so trace how positioned text is encoded for copying and add a regression test for the reported characters. Done means copied text has no extra spaces; the issue has had no comments for 638 days.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
After adding the word according to the coordinate of the word, there will be an extra space after some words are copied.
To Reproduce
Code to reproduce the issue
Some core code:
BaseFont baseFont = BaseFont.createFont(curFontPath, BaseFont.IDENTITY_V, BaseFont.EMBEDDED);
PdfContentByte cb = writer.getDirectContentUnder();
cb.beginText();
cb.setFontAndSize(baseFont, fontHeight);
cb.setGState(gState);
cb.showTextAligned(PdfContentByte.ALIGN_LEFT, txt, x, y, 0);
cb.endText();
Expected behavior
We want the copied word to have no Spaces
Screenshots
郝𭣣 忠𫠡 陵
System
- Used font:Inconvenient to provide
- OpenPDF version:1.4.2
- 主要言語
- 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
-
priority: medium Review effort [1-5]: 3 status: needs-triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
carlos-emr/carlos#5431 ·
メンテナーはふだん 1 日以内に返信
-
Integration tests: jetty:run fails with WELD-001408 for CountryJpaService対応中かも @viniciusmachak が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
primefaces/primefaces#15431 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
OpenAPITools/openapi-generator#25454 ·
メンテナーはふだん 1 日以内に返信
-
Component - Build
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100