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 3349517FAD for ; Mon, 30 Mar 2015 21:53:12 +0000 (UTC) Received: (qmail 69297 invoked by uid 500); 30 Mar 2015 21:53:12 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 69275 invoked by uid 500); 30 Mar 2015 21:53:11 -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 69260 invoked by uid 99); 30 Mar 2015 21:53:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 21:53:11 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [204.80.187.146] (HELO ref.nmedia.net) (204.80.187.146) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 21:52:46 +0000 Received: by ref.nmedia.net (Postfix, from userid 1022) id 4843548F4B1; Mon, 30 Mar 2015 14:52:14 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by ref.nmedia.net (Postfix) with ESMTP id 47AD248F474 for ; Mon, 30 Mar 2015 14:52:14 -0700 (PDT) Date: Mon, 30 Mar 2015 14:52:14 -0700 (PDT) From: Andrew Munn To: users@pdfbox.apache.org Subject: Re: PDFBox 2.0.0 replacement for PDPageContentStream.drawString()? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (BSO 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org I was able to see in the index that drawString() was replaced by showText(). The links in the index are broken though: http://pdfbox.apache.org/docs/2.0.0-SNAPSHOT/javadocs/index-all.html On Mon, 30 Mar 2015, Andrew Munn wrote: > > In 2.0.0 what is the preferred way to do this? > > PDPageContentStream cos = ... > cos.moveTextPositionByAmount(x,y); > cos.drawString("some text"); > > I see those two methods are both deprecated and the JavaDocs page is > missing. > > Also, my app is hanging at the drawString() method when run on Linux but > works fine on Windows. I'm thinking that's maybe font related? > > Thanks > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org