According to the documentation TailwindsCss Margin, by default it has a limited values based on the most used spaces. But you can define your own theme.
And sometimes based on my experience with some PDF libs not all classes works. Try to use Style instead of class.