pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Move rotated text to center of page
Date Tue, 24 Jan 2017 22:35:00 GMT
Am 24.01.2017 um 23:26 schrieb Gilad Denneboom:
> Thanks again, but I'm not seeing any examples on how to use
> setGraphicsStateParameters (or is it SetGraphicsStateParameters?) in this
> context... Could you help me out?

You just call PDPageContentStream.setGraphicsStateParameters() with the 
variable.

https://stackoverflow.com/questions/38433534/pdfbox-inconsistent-co-ordinate-system-how-do-i-draw-a-rectangle
https://stackoverflow.com/questions/39609617/how-to-add-text-watermark-to-pdf-in-java-using-apache-pdfbox
https://stackoverflow.com/questions/40267719/pdfbox-2-1-0-when-printed-from-ie11-transparent-text-watermark-has-opaque-ba

Tilman

>
> On Tue, Jan 24, 2017 at 11:05 PM, Tilman Hausherr <THausherr@t-online.de>
> wrote:
>
>> Am 24.01.2017 um 22:58 schrieb Gilad Denneboom:
>>
>>> One other thing: Is it possible to set the text's opacity level?
>>>
>>
>>              PDExtendedGraphicsState gs0 = new PDExtendedGraphicsState();
>>              gs0.setNonStrokingAlphaConstant(value);
>>
>> then assign this extended graphics state (outside of the text mode) with
>> setGraphicsStateParameters().
>>
>> Tilman
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
View raw message