As the title says,
I'm essentially looking for a way to generate a thumbnail from a .DOC, .DOCX, or .PDF file uploaded to the linux machine.
I understand ImageMagick can handle .PDF to .PNG conversion and is made even easier with PHP's IMagick but I am unsure about .DOC or .DOCX. I think I was told a headless version of OpenOffice can do this.