You probably didn’t write the PDF creation logic yourself, therefore you shouldn’t test it since you depend on your library to do what it says it can do.
I’d rather unit test the specific peaces which are used to build your content inside your PDF instead of testing the whole PDF generation.
And if you really need to test the PDF generation I’d be fine to test, that the file is being generated and that the mimetype of the file is correct.