We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi,
I'm exporting a PDF from Processing and while the text is centred in the running Processing sketch and in a TIF file that I export, but not a PDF, for some mysterious reason. Anyone knows why? Thanks in advance.
TIF export example:
In the Processing sketch:
The exported PDF (opened in Illustrator):
Answers
I don't really see a difference, because you chose different runs for your screenshots.
But I guess PDF calculates text width a bit differently from Processing, hence the difference, perhaps.
Thanks for the reply. If you look closely, you can see that some of the lines are a bit off-center, like below.
It's just really frustrating, because it means that I can't get a proper PDF export of this sketch...
Asking people to debug code that you don't share, means they have to make educated guesses. My guess is that your text alignment call is outside of the begin-endRecord calls that generate the pdf, hence it affects the sketch but not the pdf.
By the way, not sharing any code also means you posted in the wrong section, which is literally called "questions about code", but you did not post any! Moved.
A PDF example: