You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/10/18 22:00:34 UTC
[jira] [Comment Edited] (PDFBOX-2433) PDFPrinter does not print
Acroform fields
[ https://issues.apache.org/jira/browse/PDFBOX-2433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176096#comment-14176096 ]
John Hewson edited comment on PDFBOX-2433 at 10/18/14 7:59 PM:
---------------------------------------------------------------
Do you mean that the form field *values* don't print any more?
was (Author: jahewson):
Do you mean that the form field *values* don't print any more
> PDFPrinter does not print Acroform fields
> -----------------------------------------
>
> Key: PDFBOX-2433
> URL: https://issues.apache.org/jira/browse/PDFBOX-2433
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Environment: Windows 8, Java 7
> Reporter: Andre Gregori
> Labels: PDFPrint, printJob, printing
> Fix For: 2.0.0
>
>
> 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:
> {code}
> PDAcroForm form = document.getDocumentCatalog().getAcroForm();
> PDFieldTreeNode f = form.getField("referral");
> f.setValue("test");
> PDFPrinter pdfPrinter = new PDFPrinter(document);
> pdfPrinter.silentPrint();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)