[reportlab-users] PythonPoint: how to use Text Render Mode = 2?

Francesco Pierfederici reportlab-users@reportlab.com
Sun, 3 Oct 2004 15:26:58 -0700


Hi,

Your suggestion (editing drawOn()) works great!

Is there any way to hack the PDF file that get generated in order to 
use text shadows?

Thanks
Francesco



On Oct 3, 2004, at 12:09 AM, Andy Robinson wrote:

>> I am using PythonPoint for a series of presentations. I would like to
>> use an image as a background for my slides (done) and light text with
>> darker shadows or light fill and dark stroke (for better contrast).
>>
>> How do I do that? I saw that PDFTextObject has a setTextRenderMode()
>> method that basically sets the 'Tr' operator. How do I use this from
>> PythonPoint?
>
> We have never exposed that in Pythonpoint, nor in Platypus which
> is the layer in the middle.
>
> If you want to do this for ALL the text, it should be quite easy.
> Put a line in pythonpoint.py, class PPSlide, method drawOn;
> this is called as it begins to draw each slide  (the text render
> mode will be forgotten on each new page so needs calling each time).
> I think it should persist.
>
> If you wanted a proper paragraph attribute, you would need to add
> this in paraparser, and in platypus' own paragraph rendering which
> is probably a lot harder.
>
> - Andy
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users