If a PDF won’t open, let Ghostscript rewrite it:
Don’t hardcode the path to gswin32c.exe . Instead, read it from the GS_PROG environment variable or search the registry under: gswin32c.exe
DISM /Online /Cleanup-Image /RestoreHealth If a PDF won’t open, let Ghostscript rewrite