forked from mephraim/ghostscriptsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
36 lines (23 loc) · 1.26 KB
/
README
File metadata and controls
36 lines (23 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
GhostscriptSharp
================
GhostscriptSharp is a simple C# wrapper for the Ghostscript library.
Using GhostscriptSharp
======================
The GhostscriptWrapper class contains 2 static methods that can be used to generate jpg images from a PDF file.
* GeneratePageThumb(string inputPath, string outputPath, int page, int width, int height)
- Generates a thumbnail from a single page of the target PDF
= Parameters
-- inputPath = a path to the PDF file
-- outputPath = the path where you would like the output jpg
-- page = the page number for the page you want to create an image from
-- width = the width of the image
-- height = the height of the image
* GeneratePageThumbs(string inputPath, string outputPath, int firstPage, int lastPage, int width, int height)
- Generates a collection of thumbnail jpgs for the PDF at the input path, starting with firstPage and ending with lastPage.
= Parameters
-- inputPath = a path to the PDF file
-- ouputPath = the path where you would like the output jpgs to go (put '%d' somewhere in the path to have the jpgs numbered)
-- firstPage = the first page to start generating the thumbnails from
-- lastPage = the last page to end the thumbnail generator
-- width = the width of the image
-- height = the height of the image