Question: How can I configure the document layout for the PDF output

Answer: You can set the layout of the document by going to Tools → Options → Printing for the global settings, and by adding your CSS in the Component  Settings → Element Style for each document.