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

PDFPrinter does not print Acroform fields

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Environment:
      Windows 8, Java 7

      Description

      In v 1.8, if you set a PDPageable to a PrinterJob and told it to print(), it would print AcroForm fields if they existed.
      Now, with PDFPrinter (a great improvement in many respects!) the AcroForm fields don't print anymore.
      I have tried pinpointing the problem in PDFPrinter, PDFRenderer, and PageDrawer, but unsuccessfully.
      Perhaps I am doing it wrong. Here is some code:

      PDAcroForm form = document.getDocumentCatalog().getAcroForm();
      PDFieldTreeNode f = form.getField("referral");
      f.setValue("test");
      PDFPrinter pdfPrinter = new PDFPrinter(document);
      pdfPrinter.silentPrint();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amgreg Andre Gregori
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: