[ https://issues.apache.org/jira/browse/PDFBOX-1433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr closed PDFBOX-1433. ----------------------------------- Resolution: Duplicate Likely fixed by PDFBOX-5747; if not, please reopen and add an example so that it is more clear what this is about. > 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 (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org