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 27B3C18B0F for ; Thu, 21 Jan 2016 21:01:20 +0000 (UTC) Received: (qmail 60468 invoked by uid 500); 21 Jan 2016 21:01:19 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 60443 invoked by uid 500); 21 Jan 2016 21:01:19 -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 60432 invoked by uid 99); 21 Jan 2016 21:01:18 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2016 21:01:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 527EBC0860 for ; Thu, 21 Jan 2016 21:01:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.446 X-Spam-Level: *** X-Spam-Status: No, score=3.446 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.554] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id vuYrx40VRBHN for ; Thu, 21 Jan 2016 21:01:10 +0000 (UTC) Received: from mx2.healthcare.uiowa.edu (mx2.healthcare.uiowa.edu [129.255.126.115]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id E33D5428ED for ; Thu, 21 Jan 2016 21:01:09 +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 u0LKr55T032645 for ; Thu, 21 Jan 2016 15:01:09 -0600 Received: from hc-edge1.healthcare.uiowa.edu (hc-edge1.healthcare.uiowa.edu [129.255.126.22]) by hc-securemail2.healthcare.uiowa.edu with ESMTP id 20fkfyhum1-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Thu, 21 Jan 2016 15:01:09 -0600 Received: from HC-HUB2.healthcare.uiowa.edu (129.255.112.195) by HC-EDGE1.healthcare.uiowa.edu (129.255.126.22) with Microsoft SMTP Server (TLS) id 14.3.266.1; Thu, 21 Jan 2016 15:00:50 -0600 Received: from hc-mailboxc1-n2.healthcare.uiowa.edu ([169.254.2.89]) by HC-HUB2.healthcare.uiowa.edu ([129.255.112.195]) with mapi id 14.03.0266.001; Thu, 21 Jan 2016 15:01:08 -0600 From: "Haddy, Diane E" To: "users@pdfbox.apache.org" Subject: No Class definition error on Thread-Topic: No Class definition error on Thread-Index: AdFUjlgBE4t1unuwScqx8aYlGGmlDw== Date: Thu, 21 Jan 2016 21:01:08 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [129.255.98.1] x-my-disclaimer: ready Content-Type: multipart/related; boundary="_004_D8C9DC7F8FACF44BBCCA8419DA862CF51FA066hcmailboxc1n2heal_"; type="multipart/alternative" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5600 definitions=5800 signatures=585085 --_004_D8C9DC7F8FACF44BBCCA8419DA862CF51FA066hcmailboxc1n2heal_ Content-Type: multipart/alternative; boundary="_000_D8C9DC7F8FACF44BBCCA8419DA862CF51FA066hcmailboxc1n2heal_" --_000_D8C9DC7F8FACF44BBCCA8419DA862CF51FA066hcmailboxc1n2heal_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello I am new to Apache PDFBox. I have written simple code to display the word = "Training" in the pdf. When I call this method I am receiving a NoClassDef= Found error on PDTpye1Font. Any ideas or suggestions are welcome. Thank you Diane private byte[] createThePdf() throws Exception { ByteArrayOutputStream out =3D new ByteArrayOutputStream(); PDDocument doc =3D new PDDocument(); PDPage page =3D new PDPage(); doc.addPage(page); PDPageContentStream content =3D new PDPageContentStream(doc,page); content.beginText(); content.setFont(PDType1Font.HELVETICA_BOLD, 26); content.moveTextPositionByAmount(220,750); content.drawString("TRAINING"); content.endText(); content.close(); doc.save(out); doc.close(); return out.toByteArray(); } Diane Haddy Application Developer Health Care Information Systems Phone (319) 384-9725 [cid:image001.png@01D1545C.8EFB18C0] University of Iowa Hospitals & Clinics, S363-CDD 200 Hawkins Drive, Iowa City, IA 52242 ________________________________ 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_D8C9DC7F8FACF44BBCCA8419DA862CF51FA066hcmailboxc1n2heal_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello

 

I am new to Apache PDFBox.  I have written simp= le code to display the word “Training” in the pdf.  When I= call this method I am receiving a NoClassDefFound error on PDTpye1Font.&nb= sp; Any ideas or suggestions are welcome.

 

 

Thank you

Diane

 

private byte= [] createThePdf() throws

new = ByteArrayOutputStream();

new = PDDocument();

new = PDPage();

new = PDPageContentStream(doc,page);

PDType1Font.HELVETICA_BOLD, 26);

"TRAINING");

return

     }

 

Diane Haddy

Application Developer

Health Care Information Systems

Phone  (319) 384-9725<= span style=3D"font-family:"Bodoni MT","serif"">

 

 

University of Iowa Hospitals & Clinic= s, S363-CDD

200 Hawkins Drive, Iowa City, IA  52= 242

 




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 recipie= nt, you are hereby notified that any retention, dissemination, distribution, or copying of this communication i= s strictly prohibited.  Please reply to the sender that you have recei= ved the message in error, then delete it.  Thank you.
--_000_D8C9DC7F8FACF44BBCCA8419DA862CF51FA066hcmailboxc1n2heal_-- --_004_D8C9DC7F8FACF44BBCCA8419DA862CF51FA066hcmailboxc1n2heal_--