fill out bulletins

jak nospam at please.ty
Mon Jun 13 18:16:12 EDT 2022


Il 13/06/2022 16:12, Stefan Ram ha scritto:
> jak <nospam at please.ty> writes:
>> Can you direct me to a better way?
> 
>    You could use a word processors with a mail-merge feature or
>    generate TeX/troff code for the bulletins.
> >    Of course, for Python, the library PIL/Pillow is available,
>    which can read or write JPG files and has a "text" method
>    to write text to images.
> 
>    I you want to print the bulletins, you could have a first
>    pass where the images are printed and then reinsert the same
>    sheets again to add the text in a second pass.
> 
> 

I made a few attempts with libreoffice, unfortunately the bulletin is
too complicated to get a good result. I also took a look at Tex/LaTeX as
you advised me. Of these I just knew that they existed and their use but
I didn't want to learn a new script just for a tool and in any case I
think I would encounter the same problems I had with the word processor.
I think I will use the PIL/Pillow librariesalso because I wanted to
dynamically calculate the size of the characters so as not to go beyond
the limits of the fields to be filled in in the image. Thanks for the
tips.



More information about the Python-list mailing list