> The only functions here all take a filesystem path
From the documentation:
> Creating a pdf type, by casting either text path or bytea blob.
With the example: SELECT ''::bytea::pdf;
So it's convenient to use the path to test quickly, but you can use anything in PostgreSQL which return (or can be convert) a bytea