if you print PDF file to PDF it creates a copy of a file.
david@desktop:~/test$ ls -hl
total 8.9M
-rw-r--r--. 1 david david 2.2M Jun 10 06:02 chromium.pdf
-rw-r--r--. 1 david david 4.4M Jun 10 06:02 firefox.pdf
-rw-r--r--. 1 david david 2.3M Jun 10 06:01 input.pdf
david@desktop:~/test$Linux with Firefox 126
I use print to PDF to generate a version that it can handle.
(That does not say anything about whether it removes metadata though, just that it’s not the same file)