You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/10/11 03:08:33 UTC
[jira] [Updated] (PDFBOX-1433) widths[] not updated in
TextPosition.insertDiacritic()
[ https://issues.apache.org/jira/browse/PDFBOX-1433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hewson updated PDFBOX-1433:
--------------------------------
Affects Version/s: 2.0.0
> widths[] not updated in TextPosition.insertDiacritic()
> ------------------------------------------------------
>
> Key: PDFBOX-1433
> URL: https://issues.apache.org/jira/browse/PDFBOX-1433
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.7.1, 2.0.0
> Reporter: Hanjun
> Priority: Minor
>
> I change the TextPosition class such that protected float[] widths; instead of private because I would like to inherit this class and have access to widths. After doing that, I expect the widths[] being updated every time after insertDiacritic(). However, it is not due to
> widths2[i+1] = 0;
> I change it to:
> widths2[i+1] = diacritic.getWidth();
> I may misunderstand why this is set to zero. But what I intend to do is, to write a PageSVGDrawer so that I can convert a PDF to SVG. Every time in the processTextPosition() of my PageSVGDrawer, I detect whether the new text can be merged into the previous character to form a word or even a sentence. That's why I want to use the width of each character.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)