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 5A355105DA for ; Sat, 29 Mar 2014 06:54:53 +0000 (UTC) Received: (qmail 64211 invoked by uid 500); 29 Mar 2014 06:54:53 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 63754 invoked by uid 500); 29 Mar 2014 06:54:48 -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 63740 invoked by uid 99); 29 Mar 2014 06:54:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2014 06:54:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [213.133.104.168] (HELO www168.your-server.de) (213.133.104.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2014 06:54:37 +0000 Received: from [88.198.220.130] (helo=sslproxy01.your-server.de) by www168.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-SHA256:256) (Exim 4.80.1) (envelope-from ) id 1WTn9j-0007y6-Pd for users@pdfbox.apache.org; Sat, 29 Mar 2014 07:54:15 +0100 Received: from [79.242.125.236] (helo=mbp001.fritz.box) by sslproxy01.your-server.de with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1WTn9g-0003Ne-9R for users@pdfbox.apache.org; Sat, 29 Mar 2014 07:54:12 +0100 From: Maruan Sahyoun Content-Type: multipart/alternative; boundary="Apple-Mail=_C72808C1-6D6B-4FCB-8D04-28720E9F4D53" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Annotations not being rendered Date: Sat, 29 Mar 2014 07:54:07 +0100 References: <002d01cf4ac2$d02d1500$70873f00$@gmail.com> <54BE5A54-354E-492F-B0ED-1D68F23AC54E@callassoftware.com> To: users@pdfbox.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1874) X-Authenticated-Sender: sahyoun@fileaffairs.de X-Virus-Scanned: Clear (ClamAV 0.97.8/18710/Sat Mar 29 06:14:06 2014) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_C72808C1-6D6B-4FCB-8D04-28720E9F4D53 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Stan, where do you get the box (Adobe Reader, PDFBox, =85) ? What is the = expected result you are looking for? BR Maruan Am 29.03.2014 um 00:12 schrieb Stan Taylor : > Thanks! If it's so vital, I'm surprised that the PDFBox own = Annotation example doesn't include it... What the easiest way to set a = default appearance that allows the annotations to display? >=20 > I modified Annotation.java and tried creating a default appearance = like this: >=20 > PDAppearanceDictionary appearance =3D new = PDAppearanceDictionary(new COSDictionary()); >=20 > ... and then called setAppearance(appearance) on each of my = PDAnnotation objects >=20 > But this covers up the annotation's content with an opaque purple box. >=20 >=20 > -----Original Message----- > From: Olaf Dr=FCmmer [mailto:olaflist@callassoftware.com]=20 > Sent: Friday, March 28, 2014 3:40 PM > To: users@pdfbox.apache.org > Cc: Olaf Dr=FCmmer > Subject: Re: Annotations not being rendered >=20 > No appearance stream means no rendered appearance, unless some process = kicks in that generates it. >=20 > Adobe Reader does have the habit to fill certain gaps, for example if = the appearance stream for a highlight annotation is missing, it will = simply generate one (there were versions of Adobe Reader that even did = this when there already was an appearance stream - Adobe Reader then = happily created one that didn't necessarily match the one that was = actually there). >=20 > Olaf >=20 >=20 > Am 28 Mar 2014 um 23:00 schrieb Stan Taylor : >=20 >> Nope; I don't see any in PDFDebugger and programmatically, = PDAnnotation.getAppearanceStream() and PDAnnotation.getAppearance() = return null for all annotations obtained from the PDPage. >>=20 >> Stan >>=20 >> -----Original Message----- >> From: Olaf Dr=FCmmer [mailto:olaflist@callassoftware.com]=20 >> Sent: Friday, March 28, 2014 2:48 PM >> To: users@pdfbox.apache.org >> Cc: Olaf Dr=FCmmer >> Subject: Re: Annotations not being rendered >>=20 >> Do the annotations have an appearance (AP) entry? >>=20 >> Olaf >>=20 >>=20 >> Am 28 Mar 2014 um 21:17 schrieb "Stan Taylor" : >>=20 >>> Is anyone else experience issues regarding annotations not being = rendered? Attached here are two PDF samples created from the = /examples/src/main/java/org/apache/pdfbox/examples/pdmodel/Annotation.java= example program from PDFBox 1.8.4 (stan1.pdf) and PDFBox 2.0.0 = (stan2.pdf). >>>=20 >>> Viewing these PDFs in Adobe Reader (Windows v10), I can see the = annotations fine, but the annotations don't show up when I use the = PDFBox app's PDFReader feature from either version of PDFBox. The = annotations are likewise not visible when I render the (first and only) = page to an image, via PDPage.convertToImage() in PDFBox 1.8.4 or via = PDFRender. renderImageWithDPI() in PDFBox 2.0.0. >>>=20 >>> The original problem I was investigating was why annotations created = by another PDF package were not showing up, but now I am realizing that = annotations generated by PDFBox's own example program don't render = either?! >>>=20 >>> And ideas/recommendations? >>>=20 >>> Thanks, >>> Stan >>>=20 >>=20 >>=20 >> Cloud Services for Business www.j2.com >> j2 | eFax | eVoice | FuseMail | Campaigner | KeepItSafe | Onebox >>=20 >>=20 >> This email, its contents and attachments contain information from j2 = Global, Inc. and/or its affiliates which may be privileged, confidential = or otherwise protected from disclosure. The information is intended to = be for the addressee(s) only. If you are not an addressee, any = disclosure, copy, distribution, or use of the contents of this message = is prohibited. If you have received this email in error please notify = the sender by reply e-mail and delete the original message and any = copies. (c) 2013 j2 Global, Inc. All rights reserved. eFax, eVoice, = Campaigner, FuseMail, KeepItSafe, and Onebox are registered trademarks = of j2 Global, Inc. and its affiliates. >>=20 >=20 --Apple-Mail=_C72808C1-6D6B-4FCB-8D04-28720E9F4D53--