Skip to main content
Open

Text alignment in PDFStyler

Related products:Transformers
  • June 22, 2022
  • 4 replies
  • 71 views

joeri
Contributor
Forum|alt.badge.img+6

Include the possibility to align text (left/right/center and topmiddle/bottom in the PDFStyler.


Currently the alignment of text (coming from e.g. a LabelPointReplacer) in the PDFPageFormatter needs to be done by trial and error, and still this does not give satisfactory results when text length can differ.

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+62

Yes, there's a lot of trial and error when making a nice PDF layout in FME. Pinging @inge​ for this one too.


mathiku
Supporter
Forum|alt.badge.img+8
  • Supporter
  • March 14, 2023

Any ideas as to how I can mid-align text? We have a rather critical system running that generates PDF documents, and I great dearly regret setting it up in FME :(


redgeographics
Celebrity
Forum|alt.badge.img+62

Not with the current PDFStyler I'm afraid


salman73235
Observer
Forum|alt.badge.img
  • Observer
  • March 30, 2026

Yeah this makes total sense working with dynamic text alignment like that can get frustrating real quick especially when length keeps changing

It would definitely help if PDFStyler had built in options for left right center and vertical alignment instead of relying on trial and error maybe worth suggesting an enhancement or checking if newer versions added something similar

Also while testing layouts you could try using free pdf editor online tool just to quickly adjust and preview text alignment ideas before applying them in code