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 1751C18C90 for ; Tue, 8 Mar 2016 22:12:21 +0000 (UTC) Received: (qmail 75000 invoked by uid 500); 8 Mar 2016 22:12:20 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 74980 invoked by uid 500); 8 Mar 2016 22:12:20 -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 74969 invoked by uid 99); 8 Mar 2016 22:12:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2016 22:12:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B9D6218060A for ; Tue, 8 Mar 2016 22:12:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.371 X-Spam-Level: X-Spam-Status: No, score=0.371 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.329] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id MoG1llNxLn7t for ; Tue, 8 Mar 2016 22:12:18 +0000 (UTC) Received: from mx2.healthcare.uiowa.edu (mx2.healthcare.uiowa.edu [129.255.126.115]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 0FA665F20E for ; Tue, 8 Mar 2016 22:12:17 +0000 (UTC) Received: from pps.filterd (hc-securemail2.healthcare.uiowa.edu [127.0.0.1]) by hc-securemail2.healthcare.uiowa.edu (8.15.0.59/8.15.0.59) with SMTP id u28M6wxN019083 for ; Tue, 8 Mar 2016 16:12:11 -0600 Received: from hc-edge2.healthcare.uiowa.edu (hc-edge2.healthcare.uiowa.edu [129.255.126.23]) by hc-securemail2.healthcare.uiowa.edu with ESMTP id 21fw2y936a-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Tue, 08 Mar 2016 16:12:11 -0600 Received: from HC-HUB1.healthcare.uiowa.edu (129.255.112.194) by HC-EDGE2.healthcare.uiowa.edu (129.255.126.23) with Microsoft SMTP Server (TLS) id 14.3.266.1; Tue, 8 Mar 2016 16:12:09 -0600 Received: from hc-mailboxc1-n2.healthcare.uiowa.edu ([169.254.2.89]) by HC-HUB1.healthcare.uiowa.edu ([129.255.112.194]) with mapi id 14.03.0266.001; Tue, 8 Mar 2016 16:12:11 -0600 From: "Haddy, Diane E" To: "users@pdfbox.apache.org" Subject: creating a rectangle around the whole pdf Thread-Topic: creating a rectangle around the whole pdf Thread-Index: AdF5hoeuBKU+Rw43TgC64mv59ktNOw== Date: Tue, 8 Mar 2016 22:12:10 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [129.255.98.1] x-my-disclaimer: ready Content-Type: multipart/alternative; boundary="_000_D8C9DC7F8FACF44BBCCA8419DA862CF520E63Ahcmailboxc1n2heal_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5600 definitions=5800 signatures=585085 --_000_D8C9DC7F8FACF44BBCCA8419DA862CF520E63Ahcmailboxc1n2heal_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello I am very new to PDFBox. I am creating a pdf form of which I need to crea= te an outer rectangle around the whole form and then in the center I need t= o create two rectangles adjacent to one another. Also the header info. to = surround the two adjacent rectangles is in its own rectangle and the backgr= ound is pale gray. Can someone provide me a snippet of code and perhaps a pdf for visual purpo= ses? I do have the PDFBox api but not sure which classes to use to achieve= what I want. Also for this line in the pdf, is there a way to add an underline to what i= s highlighted in red? This is my java code: title.drawString("Request form must be used within= 30 days of " + formatDate ); Request form must be used within 30 days of 03/07/2016 Thanks in advance for any help in this matter. Diane Diane Haddy Health Care Information Systems Application Developer 3281 Ridgeway Dr Coralville, IA 52241 ________________________________ Notice: This UI Health Care e-mail (including attachments) is covered by th= e Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidenti= al and may be legally privileged. If you are not the intended recipient, y= ou are hereby notified that any retention, dissemination, distribution, or = copying of this communication is strictly prohibited. Please reply to the = sender that you have received the message in error, then delete it. Thank = you. ________________________________ --_000_D8C9DC7F8FACF44BBCCA8419DA862CF520E63Ahcmailboxc1n2heal_--