You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2018/06/03 15:51:00 UTC

[jira] [Comment Edited] (PDFBOX-4212) Rewrite formatter for interactive form fields

    [ https://issues.apache.org/jira/browse/PDFBOX-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16499458#comment-16499458 ] 

Maruan Sahyoun edited comment on PDFBOX-4212 at 6/3/18 3:50 PM:
----------------------------------------------------------------

[~tilman] I've added the classes from the .form package so you can start using these and kept the original ones for compatibility. I plan to do several breaking changes to make the API more inline with the {{java.text}} package and {{TextLayout}} class. The {{Builder}} pattern will also go away as we are not using that pattern within PDFBox and this feels unfamiliar. Where possible I'll use Bidi classes from Java to determine paragraph and line breaks. I'll also prepare fro ltr and rtf using that attribute in text runs.

The sole purpose of the text formatter is to layout text in a rectangular 'content' area. So drawing borders around text boxes, padding from borders etc needs to be done somewhere else.

The formatter itself also doesn't care about resources such as fonts currently and IMHO shouldn't. Handling font fallbacks also should be done somewhere else. I'll come up with a proposal after doing the base stuff to resolve the relates sub tasks. 


was (Author: msahyoun):
[~tilman] I've added the classes from the .form package so you can start using these and kept the original ones for compatibility. I plan to do several breaking changes to make the API more inline with the {{java.text}} package and {{TextLayout}} class. The {{Builder}} pattern will also go away as we are not using that pattern within PDFBox and this feels unfamiliar. Where possible I'll use Bidi classes from Java to determine paragraph and line breaks. I'll also prepare fro ltr and rtf using that attribute in text runs.

The sole purpose of the text formatter is to layout text in a rectangular 'content' area. So drawing borders around text boxes, padding from borders etc needs to be done somewhere else.

> Rewrite formatter for interactive form fields
> ---------------------------------------------
>
>                 Key: PDFBOX-4212
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4212
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: AcroForm
>    Affects Versions: 2.0.9, 3.0.0 PDFBox
>            Reporter: Maruan Sahyoun
>            Priority: Major
>              Labels: Appearance
>
> With the inclusion of GSUB information there are additional capabilities for text formatting as well as additional language support. 
> This ticket will track the rewrite/enhancement of the current text formatter which should also include better font handling/handling of missing characters in line with how Acrobat handles such situations. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org