9
Is there a command-line interface only package to convert Microsoft Office files to PDF? Specifically, I need to be able to export
doc/docx(Word),ppt/pptx(PowerPoint),xls/xlsx(Excel), andvsd/vsdx(Visio).
I am aware that an installation of LibreOffice comes with a CLI to convert documents, but it does not appear to support Visio diagrams. Is there a package that does?
Ideally I'd like a solution that works on Linux, but I could find a way to use Windows if it would be far more practical. What I will very likely not have is a license to any MS products.
@SeanAllred PDF export was introduced originally as a downloadable add-in for 2007, then later incorporated as a built-in feature of 2007 in the first service pack; later versions have PDF export built in. 2003 and earlier did not have any PDF export other than what was added by Adobe Acrobat or other products. – Steve Rindsberg – 2019-03-30T15:56:34.947
For macOS, you can use my docx2pdf tool: https://github.com/AlJohri/docx2pdf. If you're on windows, it's fairly easy to extend this approach for other Office tools using the win32com interface.
– Al Johri – 2019-12-24T07:51:12.350what version of office? – Keltari – 2013-08-21T13:20:52.057
@Keltari I'm not sure. I don't think I will be working with anything pre-2003, but I think 2007 is a safe baseline. – Sean Allred – 2013-08-21T13:24:49.537
1I dont have an office 2007 app to see, but check to see if you can save as PDF from the Save As. If so, then you can write a VBScript to convert to PDF. I know this can be done for 2010 and up. – Keltari – 2013-08-21T13:27:40.817
@Keltari I believe every version from 2003 on supports export as PDF. 2007 confirmed. Note though that I do not have a version of Office available, as I mentioned in the bit @-terdon edited out... – Sean Allred – 2013-08-21T13:30:15.390
1
Since 4.0, LO has a Visio import filter. I never used it myself, so i can't tell how "powerful" it is, but it may be worth a try.
– tohuwawohu – 2013-08-21T15:01:51.707