Converting a multiple-page PDF to a single image

旧街凉风 提交于 2019-11-30 06:54:46

Did you have a look at ImageMagick? This free library might have an option to create a single image from a PDF (It actually uses Ghostscript but adds a lot of graphical editing capabilities such as merging images).

You will most likely need to render the single pages using GS and then combine them to a single PNG/JPG using some scripting language.

You can check this open source project on Code Project

http://www.codeproject.com/KB/cs/GhostScriptUseWithCSharp.aspx

That show how to call Ghostscript and how to pass the parameters

After converting multi-page PDF to images (PNG, JPEG, TIFF, etc.) using GS, you'll need to take one step further to merge the output images into a multi-page TIFF image.

Take a look at the source code of VietOCR.NET, which has the functionality but does it in two separate steps. You can modify it to call the two functions back to back.

You can look at PDF to Image

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!