You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Dan Fickling (JIRA)" <ji...@apache.org> on 2017/11/05 04:06:00 UTC
[jira] [Created] (PDFBOX-3992) Implement show text with positioning
operator (TJ)
Dan Fickling created PDFBOX-3992:
------------------------------------
Summary: Implement show text with positioning operator (TJ)
Key: PDFBOX-3992
URL: https://issues.apache.org/jira/browse/PDFBOX-3992
Project: PDFBox
Issue Type: Improvement
Components: PDModel
Reporter: Dan Fickling
Why: The TJ operator is required to properly implement text justification in unicode fonts. The word spacing operator (Tw) is not sufficient because of note[1] from the PDF specification.
Github user backslash47 has provided a basic implementation if that is of any help:
https://github.com/backslash47/pdfbox/commit/3c528295b16445e58dc9fe895f78384221452be2
Thanks,
Daniel.
[1] Note: Word spacing is applied to every occurrence of the single-byte character code 32 in a string when using a simple font or a composite font that defines code 32 as a single-byte code. It does not apply to occurrences of the byte value 32 in multiple-byte codes.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org