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

John Hewson edited comment on PDFBOX-1982 at 3/13/14 6:26 AM:
--------------------------------------------------------------

Here's some renaming, migrating existing code can be done with _find and 
replace_:

{noformat}
Old                     New                       PDF Spec

PDAppearance       ->   PDAppearanceString        Appearance String
PDChoiceButton     ->   PDButton                  Button
PDRadioCollection  ->   PDRadioButton             Radio button
PDSignatureField   ->   PDSignature               Signature
PDChoiceField      ->   PDChoice                  Choice
PDTextbox          ->   PDText                    Text
PDXFA              ->   PDXFAResource             XFA resource
{noformat}


was (Author: jahewson):
Here's some renaming, migrating existing code can be done with _find and 
replace_:

{code}
Old                     New                       PDF Spec

PDAppearance       ->   PDAppearanceString        Appearance String
PDChoiceButton     ->   PDButton                  Button
PDRadioCollection  ->   PDRadioButton             Radio button
PDSignatureField   ->   PDSignature               Signature
PDChoiceField      ->   PDChoice                  Choice
PDTextbox          ->   PDText                    Text
PDXFA              ->   PDXFAResource             XFA resource
{code}

> Standardise AcroForm Fields
> ---------------------------
>
>                 Key: PDFBOX-1982
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1982
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: AcroForm
>    Affects Versions: 2.0.0
>            Reporter: John Hewson
>            Assignee: John Hewson
>
> While working on adding the patch in PDFBOX-1847 I noticed that the digital 
> signature form field, PDSignature is deprecated, having been replaced by 
> PDSignatureField.
> Currently some aspects of the fields do not correspond with the PDF 
> specification, in particular the hierarchy of the fields and their naming. 
> There are currently 43 open issues for the AcroForm component and no issues 
> have been closed since 2011, so I've attempted some basic refactoring to give 
> us a clean slate for adding new features and fixing old bugs.
> Here's the current hierarchy of fields in PDFBox:
> PDField
>     PDChoiceButton
>         PDCheckbox
>         PDRadioCollection
>     PDPushButton
>     PDVariableText
>         PDChoiceField
>         PDTextbox
>     PDSignatureField
>     PDUnknownField
> And here's the actual hierarchy from the PDF specification:
> Field
>     Button
>         Check Box
>         Radio Button
>         Pushbutton
>     Text
>     Choice
>         List Box
>         Combo Box
>     Signature
> Note that PDPushButton and PDTextbox are in the wrong place in the hierarchy 
> and List Box and Combo Box are missing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to