Cert-Generator icon indicating copy to clipboard operation
Cert-Generator copied to clipboard

Text Align

Open buste opened this issue 3 years ago • 3 comments

Is there a way to align the text to center programmatically?

buste avatar May 21 '21 05:05 buste

You can calculate the width of PDF and text then to get X subtract half width of text from half width of PDF.

ShivamJoker avatar May 21 '21 05:05 ShivamJoker

Can you give a sample code sir?

buste avatar May 21 '21 06:05 buste

It's pretty simple and straightforward, please do some research and try on your own.

If you get any problem let me know and share the code once you made it.

ShivamJoker avatar May 21 '21 06:05 ShivamJoker