Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A930EED0 for ; Sat, 26 Jan 2013 06:48:58 +0000 (UTC) Received: (qmail 43097 invoked by uid 500); 26 Jan 2013 06:48:57 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 42967 invoked by uid 500); 26 Jan 2013 06:48:57 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 42943 invoked by uid 99); 26 Jan 2013 06:48:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jan 2013 06:48:57 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [81.169.146.160] (HELO mo-p00-ob.rzone.de) (81.169.146.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jan 2013 06:48:48 +0000 X-RZG-AUTH: :LWIAZ0WpaN8UY5o8XRz0jOyrHsdEC+nAE10OdySrgHL6ku8V1wBeiW9yiQU= X-RZG-CLASS-ID: mo00 Received: from [192.168.1.6] (dslb-088-077-248-052.pools.arcor-ip.net [88.77.248.52]) by smtp.strato.de (jored mo20) (RZmta 31.13 DYNA|AUTH) with ESMTPA id z05b5ap0Q6XFEg ; Sat, 26 Jan 2013 07:48:23 +0100 (CET) Message-ID: <51037C37.9040804@lehmi.de> Date: Sat, 26 Jan 2013 07:48:23 +0100 From: Andreas Lehmkuehler Reply-To: users@pdfbox.apache.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: users@pdfbox.apache.org CC: jcashion@claremontbiosolutions.com Subject: Re: PDFBox markup printing on silent References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Am 26.01.2013 01:11, schrieb John Cashion: > Hey Guys, I Hope I am sending this through the proper channels, but it > seems the forum for pdfbox is down, so i figured I would try the mailing > list. There is no other official forum than our mailing lists! So finally you found us, the PDFBox community. [1] Be sure to subscribe yourself to the mailing list [2] otherwise you won't get any answers. > I've got a form that I've created and I'm stuck on trying to print > the form with markups. I looked at the flags, but I am unsure if I'm on the > right track. I can save the document with markup's just fine, but I cannot > silently print them. Is there an annotation setting that I'm missing? here > is my current code. Also, is there a new forum where this project is > active. I like using PDFBox but the information on it is... sparse. Thanks > for your time. Did you get what you want using the PDFReader coming with PDFBox? Maybe the feature you are looking for isn't yet supported > > PDDocument doc = null; > > try{ > doc = PDDocument.load("resources/orderForm.pdf"); > PDDocumentCatalog docCatalog = doc.getDocumentCatalog(); > PDAcroForm acroForm = docCatalog.getAcroForm(); > PDField field = acroForm.getField("Qty1"); > field.setValue("JohnTest"); > field.setFieldFlags(4); > //PDAnnotation.FLAG_PRINTED; > > } catch (IOException ie){ > System.out.println(ie); > } > //doc.addPage(new PDPage()); > try{ > > doc.save("Empty PDF.pdf"); > //doc.silentPrint(); > doc.print(); > doc.close(); > } catch (Exception io){ > System.out.println(io); > } > > } > > > > thanks! > > John > BR Andreas Lehmk�hler [1] http://pdfbox.apache.org [2] http://pdfbox.apache.org/mail-lists.html