Skip to main content
Released

Text alignment in PDFStyler

Related products:Transformers
  • June 22, 2022
  • 6 replies
  • 101 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

redgeographics
VIP
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
VIP
Forum|alt.badge.img+62

Not with the current PDFStyler I'm afraid


salman73235
BANNED
Forum|alt.badge.img
  • BANNED
  • 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


PierreAtSafe
Safer
Forum|alt.badge.img+11

Hello there,

Sorry about the nefarious bot finding this post, but it’s a great occasion to make sure you are aware of the improvements we made to the PDF format in FME. We released the new documentPDF format, with a new styler that has the text alignment option in the 24.2 release:

  1. https://docs.safe.com/fme/2026.2/html/FME-Form-Documentation/FME-ReadersWriters/pkg-documentpdf/quick_facts_documentpdf.htm
  2. https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Transformers/Transformers/pkg-documentpdfstyler/documentpdfstyler-pkg.htm

Just in case you saw the message from this bot… Don’t upload your data into random online tools.

Cheers


PierreAtSafe
Safer
Forum|alt.badge.img+11
OpenReleased