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 CDA511729C for ; Mon, 30 Mar 2015 22:10:59 +0000 (UTC) Received: (qmail 24071 invoked by uid 500); 30 Mar 2015 22:10:59 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 24048 invoked by uid 500); 30 Mar 2015 22:10:59 -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 24032 invoked by uid 99); 30 Mar 2015 22:10:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 22:10:59 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.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 22:10:53 +0000 Received: by ref.nmedia.net (Postfix, from userid 1022) id 97C5448F482; Mon, 30 Mar 2015 15:09:33 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by ref.nmedia.net (Postfix) with ESMTP id 972DE48F47C for ; Mon, 30 Mar 2015 15:09:33 -0700 (PDT) Date: Mon, 30 Mar 2015 15:09:33 -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 This still hangs my app when running on linux: cos.showText("some text"); thanks 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