cognidox / OfficeToPDF

A command line tool to convert Microsoft Office documents to PDFs
https://www.cognidox.com/
Other
610 stars 137 forks source link

OfficeToPDF doesn't work when there's no available printer #28

Closed luiscla27 closed 6 years ago

luiscla27 commented 6 years ago

OfficeToPDF is returning the message "Did not convert" when there's no available printer.

Steps to reproduce:

  1. The test enviroment must not have any printer installed.
  2. Try to convert any Excel file (i only tested excel) by using the command line: OfficeToPDF /verbose "test.xlsx" "test.pdf"
  3. The error message is shown.
luiscla27 commented 6 years ago

The expected behavior is that the file converts to PDF or either shows a more detailed message like "Theres no printer available"

vittala commented 6 years ago

Hi

Could you confirm the version of Office that you're using.

Regards Vittal

luiscla27 commented 6 years ago

Of course vittala,

Im using MSO 365 ProPlus - es-es v16.0.9126.2259 (Office 2016)

vittala commented 6 years ago

Hi - Try this build https://github.com/cognidox/OfficeToPDF/releases/tag/v1.8.21.0 which will return an error if there are no printers

luiscla27 commented 6 years ago

it works! thank you,

vittala commented 6 years ago

No problems!