ghostscriptsharp

Create images from PDF file pages in C#

你说的曾经没有我的故事 提交于 2020-02-20 05:49:31
问题 I want to get images from PDF file pages. I know that a good solution is to use ghostscriptsharp. It has a special method to get a single page or multiple pages. GeneratePageThumbs(string inputPath, string outputPath, int firstPage, int lastPage, int width, int height) Here is my complete code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using GhostscriptSharp; namespace GetPages { class Program { static void Main(string[

Ghost Script pdf thumbnail in .NET

南楼画角 提交于 2019-12-11 14:51:54
问题 I want to display thumbnails of the uploaded pdf files on my website(ASP.NET). So far I have done following things. From this link i got the idea to use ghostscript How to generate thumbnail for some pages of a PDF file? You could probably use one of the general-purpose PDF libraries: • Ghostscript - C, available under the GPL • Poppler - C++, available under the GPL • Adobe PDF Library SDK - expensive Google reveals quite a few PDF-to-image converters which you may be able to incorporate if

What is causing Ghostscript to return an error of -100?

坚强是说给别人听的谎言 提交于 2019-12-05 11:04:08
问题 So, I am using Matthew Ephraim's GhostscriptSharp, which is a simple C# wrapper for the unmanaged Win32 Ghostscript DLL in my ASP.Net MVC project. Some background: What I am attempting to do is have a user upload a PDF, and then convert that document into an image that I can then save off into whatever directory I choose (as well as do some other OOP to tie that new image to my site). I decided to use Mr. Ephraim's wrapper class (GhostscriptSharp) because it was simple enough to use, and it

Merge PDF's with PDFTK with Bookmarks?

非 Y 不嫁゛ 提交于 2019-11-28 03:09:09
Using pdftk to merge multiple pdf's is working well. However, any easy way to make a bookmark for each pdf merged? I don't see anything on the pdftk docs regarding this so I don't think it's possible with pdftk. All of our files merged will be 1 page, so wondering if there's any other utility that can add in bookmarks afterwards? Or another linux based pdf utility that will allow to merge while specifying a bookmark for each individual pdf. Kurt Pfeifle You can also merge multiple PDFs with Ghostscript. The big advantage of this route is that a solution is easily scriptable, and it does not

Merge PDF's with PDFTK with Bookmarks?

霸气de小男生 提交于 2019-11-27 05:04:20
问题 Using pdftk to merge multiple pdf's is working well. However, any easy way to make a bookmark for each pdf merged? I don't see anything on the pdftk docs regarding this so I don't think it's possible with pdftk. All of our files merged will be 1 page, so wondering if there's any other utility that can add in bookmarks afterwards? Or another linux based pdf utility that will allow to merge while specifying a bookmark for each individual pdf. 回答1: You can also merge multiple PDFs with