Get a preview JPEG of a PDF on Windows?

后端 未结 3 1327
一向
一向 2020-12-23 17:17

I have a cross-platform (Python) application which needs to generate a JPEG preview of the first page of a PDF.

On the Mac I am spawning sips. Is there something si

3条回答
  •  再見小時候
    2020-12-23 17:56

    Is the PC likely to have Acrobat installed? I think Acrobat installs a shell extension so previews of the first page of a PDF document appear in Windows Explorer's thumbnail view. You can get thumbnails yourself via the IExtractImage COM API, which you'll need to wrap. VBAccelerator has an example in C# that you could port to Python.

提交回复
热议问题