Liste des Groupes | Revenir à col misc |
On 2024-10-18, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
On Fri, 18 Oct 2024 18:44:26 GMT, Charlie Gibbs wrote:
>I wrote some routines to generate my columnar reports in PDF. On the>
whole it worked fairly well, but I never found a way to right-justify
a field. Then it became a pain in the ass.
You mean “right-align”, not “right-justify”. Here’s a routine that does
alignment of text within a given line width, based on the current
point, using the current font settings. It can do left-align,
right-align, centre-align and anything in-between.
<snip sample code>
Thanks. I've stored that for future reference.
That comes from the “text_align_justify” example in this repo
<https://gitlab.com/ldo/qahirah_examples>.
I had a hard time finding detailed PDF documentation that I was
beginning to wonder whether I was looking for trade secrets...
Les messages affichés proviennent d'usenet.