Why do simple PDF files compiled with pdflatex contain so many PDF errors?
The simplest example I can see is "Hello World!" that once compiled,
\documentclass{report}
\begin{document}
Hello World!
\end{document}
produces a file "hello.pdf" that is fed to PDFbox:
$ java -jar ../preflight-app-1.8.10.jar hello.pdf
The file hello.pdf is not valid, error(s) :
1.2.1 : Body Syntax error, Single space expected
1.2.1 : Body Syntax error, Single space expected
1.2.1 : Body Syntax error, EOL expected before the 'endobj' keyword
1.2.1 : Body Syntax error, Single space expected
1.2.1 : Body Syntax error, Single space expected
1.2.1 : Body Syntax error, Single space expected
7.1 : Error on MetaData, Missing Metadata Key in catalog
LuaLaTeX shows the same problem, but in general with fewer errors.