Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-206

Setfield is not working in Acrobat 7.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 0.7.2
    • Fix Version/s: None
    • Component/s: AcroForm
    • Labels:

      Description

      [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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                msahyoun Maruan Sahyoun
                Reporter:
                Anonymous
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: