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 A6A8217F93 for ; Thu, 11 Jun 2015 15:10:22 +0000 (UTC) Received: (qmail 44261 invoked by uid 500); 11 Jun 2015 15:10:22 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 44240 invoked by uid 500); 11 Jun 2015 15:10:22 -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 44228 invoked by uid 99); 11 Jun 2015 15:10:22 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2015 15:10:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B0BF9CD48D for ; Thu, 11 Jun 2015 15:10:21 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id zPhHg77Q7lqc for ; Thu, 11 Jun 2015 15:10:14 +0000 (UTC) Received: from mail-vn0-f49.google.com (mail-vn0-f49.google.com [209.85.216.49]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 878E5275E8 for ; Thu, 11 Jun 2015 15:10:14 +0000 (UTC) Received: by vnbg62 with SMTP id g62so1457735vnb.4 for ; Thu, 11 Jun 2015 08:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=33OV32sgs7+pUAkePD8GgPOH/7heI0+fkvneojMvNMY=; b=YZM6ZBAP1XiBC2hLSVv1zVbeaCozw7KMn8vZzaikwheask7D8tTwJYXoOamHBqgPhz KgkfXr9ic0sPKx+1FJnQXjBvEHgtxOoR3ZdqaGo1mVcsB3TRxzP2+uwgE2C2EZvU0/Ra VQewA4yWjh7ynlxpOter9RrRF+2gVdNve1P0tac6eey6zUzB8SNFAdjMprk5nXFXa2v1 WTpThTr4NmakWV6VcsU8GpLOYF0yyey3qtWRwLczYJtqlQ8HLn5xHtN/7qK5ABN3Ff+Z ofXzxF3MJR2fvF31WWCtzRy/lvQeUrb7fGRYIJ2yT7gsIWaOVQ6utdAoo/m3AtvlQ2yr xV1w== MIME-Version: 1.0 X-Received: by 10.52.185.69 with SMTP id fa5mr16959862vdc.62.1434035368588; Thu, 11 Jun 2015 08:09:28 -0700 (PDT) Sender: danielyoung.private@gmail.com Received: by 10.31.213.70 with HTTP; Thu, 11 Jun 2015 08:09:28 -0700 (PDT) In-Reply-To: References: <9EC8A016-06A7-4BEC-B902-8D8289DC618E@fileaffairs.de> Date: Thu, 11 Jun 2015 10:09:28 -0500 X-Google-Sender-Auth: kow6hoOL0l1p9kVVEX5HcVl_8bM Message-ID: Subject: Re: needsappearances flag From: Happy Human To: users@pdfbox.apache.org Content-Type: multipart/alternative; boundary=bcaec5486476bd7c0e05183f60a4 --bcaec5486476bd7c0e05183f60a4 Content-Type: text/plain; charset=UTF-8 I see it in version 2 (NeedAppearances). On Thu, Jun 11, 2015 at 10:04 AM, Happy Human wrote: > Thank you for the reply. The version I'm using (1.8.9) does not have > COSName.NEED_APPEARANCES. What would the string value be for this COSName? > > Thanks again, > Dan > > On Thu, Jun 11, 2015 at 4:15 AM, Maruan Sahyoun > wrote: > >> Hi, >> > Am 10.06.2015 um 18:44 schrieb Daniel Young < >> danielyoung.private@gmail.com>: >> > >> > Hello, >> > >> > Wondering if anyone can give an example of the proper way to set the >> > needsappearances flags on an acroForm? Currently, having an issue with >> PDF >> > fields filled with PFDBox, using setValue, not rendering in Chromes >> native >> > PDF viewer. I remember that this flag may help in that situation. Any >> help >> > either way is much appreciated. >> >> >> for PDFBox 2. there is already a setter/getter within PDAcroForm. For >> PDFBox 1.8 you could do >> >> COSDictionary dictionary = PDAcroForm.getDictionary(); >> dictionary.setBoolean(COSName.NEED_APPEARANCES, true); >> >> BR >> Maruan >> >> > >> > Thanks. >> >> > --bcaec5486476bd7c0e05183f60a4--