Keep the topic.fo file
The topic.fo file is very helpful for troubleshooting problems with the styling in PDF output. These steps explain how to retain the topic.fo file during the build process.
When you generate a PDF using the Output Generator, the DITA Open Toolkit first combines all the topics in the map into one large XML file. Next, it converts that file into a different XML standard, called XSL-FO, and creates a new file named topic.fo. Finally, the Open Toolkit sends the topic.fo file to your PDF renderer, which creates the PDF.
If your PDF is not styled the way you expect, it's very helpful to look at the topic.fo file to see exactly what styling is being sent to the PDF renderer. Normally the topic.fo file is deleted during the build process, but you can retain it to help you troubleshoot. This procedure also returns the images.
When you generate PDF output, the topic.fo file will be included in your output zip file.