You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/06/25 08:43:05 UTC

[jira] [Commented] (PDFBOX-2840) PDTextField.getDictionary() method not found

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

Tilman Hausherr commented on PDFBOX-2840:
-----------------------------------------

The API has changed in 2.0. Use getCOSObject().

> PDTextField.getDictionary() method not found
> --------------------------------------------
>
>                 Key: PDFBOX-2840
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2840
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.0
>         Environment: JRuby 1.9
>            Reporter: Matti Raty
>
> When calling .getDictionary on PDTextField exception is thrown (exception is in Ruby format but highlights the problem):
> NoMethodError (undefined method `getDictionary' for #<Java::OrgApachePdfboxPdmodelInteractiveForm::PDTextField:0x12684e9b>):
> Documentation suggests that method should be found from org.apache.pdfbox.pdmodel.interactive.form.PDFieldTreeNode but for some reason it is not found.
> I have same code calling .getDictionary in PDFBox 1.8 and it works fine. I need to get the dictionary so I can change form field font to support UTF-8. As I understood 1.8 is not supporting UTF-8.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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