You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Peter Keller (Commented) (JIRA)" <ji...@apache.org> on 2011/11/04 21:51:51 UTC

[jira] [Commented] (PDFBOX-206) Setfield is not working in Acrobat 7.0

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

Peter Keller commented on PDFBOX-206:
-------------------------------------

Hi,

Having problem that have likely the same root cause. In addition to what was already described, I also have text at the wrong position or wrong size after setfield, and some checkboxes change their style (large X vs. a small handwritten-style x inside the checkbox). 
I tried to work around this by setting the fields via a XFDF and the importXFDF, but the problem stays the same. Also the SetField example program shows the same behaviour. Tried with acrobat reader and evince to display, but neither of them displays it correctly.

Would appreciate very much if that is fixed, or at least a workaround is published. I successfully use pdfbox for other tasks in my SW, but filling forms is impossible, so I have to create xfdf and call pdftk for this task... Not a nice solution...

Best Regards,
zoisli
                
> Setfield is not working in Acrobat 7.0
> --------------------------------------
>
>                 Key: PDFBOX-206
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-206
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>            Priority: Minor
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1572315
> Originally submitted by nobody on 2006-10-06 11:30.
> Hello,
> I created a acrobat form in version 7.0 and used 
> setfield to bind the variables but I am unable to see 
> the values when I view online. I am using 
> PDFBox_7.0.2.
> Here is code that I am using in peoplesoft:
> ______________________________________
> &pdf_file = CreateJavaObject
> ("org.pdfbox.pdmodel.PDDocument");
> &source_file = &pdf_file.load
> ("Service_Terms_mstr.pdf");
> &jo = CreateJavaObject
> ("org.pdfbox.examples.fdf.SetField");
> If &target_field = "company" Then
>    &field_value = &name;
> End-If;
> &jo.setField(&source_file, &target_field, 
> &field_value);
> &source_file.save(&PATH | %UserId | ".pdf");
> ViewURL("http://" | &servername | "/" | &DBNAME | "/" 
> | %UserId | ".pdf", True);
> _________________________________________________
> I am able to view the whole page except the form 
> fields that need to updated using setfield ,they are 
> blank. I read somewhere that using version 6.0 would 
> help. Please guide me.
> Thanks a lot.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira