[
https://issues.apache.org/jira/browse/PDFBOX-5365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477567#comment-17477567
]
Tilman Hausherr commented on PDFBOX-5365:
-----------------------------------------
You can't replace the font in the PDF easily. That font is a subset of the
actual font.
One thing you need to fix: replace
{code}
new PDPageContentStream(document, document.getPage(pageNum),
PDPageContentStream.AppendMode.APPEND, true);
{code}
with
{code}
new PDPageContentStream(document, document.getPage(pageNum),
PDPageContentStream.AppendMode.APPEND, true, true);
{code}
(see the javadoc why). This may not apply to this PDF, but may apply to a few
others.
> (定位不对)location is bad
> ---------------------
>
> Key: PDFBOX-5365
> URL: https://issues.apache.org/jira/browse/PDFBOX-5365
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.25
> Reporter: dv
> Priority: Major
> Attachments: XyWordPDFTextStripper.java, XyWordTest.java,
> image-2022-01-17-17-12-29-608.png, image-2022-01-17-17-27-48-012.png,
> screenshot-1.png, test.pdf, test_wordFraming.pdf
>
>
> 文字定位不对,详细见附件
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]