pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Hewson <j...@jahewson.com>
Subject Re: PDFBox 2.0.0 replacement for PDPageContentStream.drawString()?
Date Tue, 31 Mar 2015 17:23:15 GMT
Can you provide the *full* code listing?

— John

> On 31 Mar 2015, at 08:44, Andrew Munn <andrew@nmedia.net> wrote:
> 
> No errors or log messages, it just hangs.  I do this on Linux and it works 
> fine:
> 
> File f1 = new File("/usr/share/httpd/noindex/css/fonts/Regular/OpenSans-Regular.ttf");
> font = PDType0Font.load(document, f1);
> 
> 
> On Tue, 31 Mar 2015, Tilman Hausherr wrote:
> 
>> What happens if you take the font you're using in linux and use it in windows?
>> Or are you using one of the standard fonts, if yes, which one? Is any log
>> message coming?
>> 
>> Tilman
>> 
>> Am 31.03.2015 um 00:09 schrieb Andrew Munn:
>>> 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
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> 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
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message