Questions tagged [ghostscriptsharp]
28 questions
38
votes
12 answers
Merge PDF's with PDFTK with Bookmarks?
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…

Jason
- 1,496
- 4
- 29
- 41
18
votes
3 answers
What is causing Ghostscript to return an error of -100?
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…

Mattygabe
- 1,772
- 4
- 23
- 44
7
votes
2 answers
MemoryStream (pdf) to Ghostscript to MemoryStream (jpg)
I did see "PDF to Image using GhostScript. No image file has to be created", but that only (sort of) answered half my question. Is it possible to use GhostScriptSharp (or the regular GhostScript dll) to convert a pdf in a MemoryStream to a jpg in a…

Adam Miller
- 767
- 1
- 9
- 22
7
votes
3 answers
Where to copy gsdll32.dll to make PDF to image converter work in my WPF application?
My PROJECT gives error..
*Unable to find an entry point named 'gsapi_new_instance' in DLL 'gsdll32.dll'.*
when trying to convert .pdf to image format using Ghost-script Interpreter dll 'gsdll32.dll'
Even if I tried copying this dll to all desired…

Rahul Ranjan
- 1,028
- 1
- 10
- 27
4
votes
2 answers
Create images from PDF file pages in C#
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,…

Qwerty Qwerty
- 581
- 1
- 6
- 19
3
votes
1 answer
C# .NET "Parameter is invalid" when Image in using statement
Windows 8.1 Pro, Visual Studio 2015 Update 3, C#, .NET Framework 4.5. Ghostscript.NET (latest), GhostScript 9.20.
I'm converting a PDF to a PDF. Hah. Well, I'm making an "editable" PDF "hard" PDF that can't be edited and is of lower quality. The…

Dan7el
- 1,995
- 5
- 24
- 46
2
votes
4 answers
TeamCity: GhostscriptSharp: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
PDF converting fails while running test on CI. I'm using GhostscriptsSharp library for converting.
I'm not facing this issue while running my test locally, PDF-file is converted to images correctly.
I've been searching the internet for a solution…

Yaryna
- 340
- 1
- 5
- 11
2
votes
1 answer
Dllimport to works in console application, but not in ASP.NET website
I have never worked with DLL import, so I have a fun problem.
I am trying to implement Ghostscript.NET in a hobby project. So I have made a project which is called GhostscriptSharp. This project has a file called Ghostscript32.cs, which imports…

Lars Holdgaard
- 9,496
- 26
- 102
- 182
1
vote
0 answers
How to crop and rotate a Postscript page with c# using Ghostscript
I want to cut out a part of a postscript page from C#, rotate the result and save it as a new postscript page.
My source file is a Postscript page in A4, in portrait format.
The page consists of four quadrants, each quadrant is an A6 in portrait…

Helge
- 11
- 2
1
vote
1 answer
Ghostscript.Net doesn't working in Windows Server 2012 R2
I am using Ghostscript.NET in my Project to print Pdf files across Network. Locally works fine, using Windows 10, version 64-Bit and Ghostscript Driver to 32-Bit (Ghostscript 9.22 for Windows 32-Bit) downloaded from…

Tarcisio M.
- 59
- 3
- 10
1
vote
3 answers
File size converting pdf to tiff
I'm using ghostscriptSharp to convert PDF files to TIFF files for faxing. The PDF files sometimes contain photocopies of receipts.
I'm using the tiffg3 driver with a height x width of 400 x 400. I've noticed that the PDFs that contain photocopies…

stomcavage
- 1,029
- 1
- 13
- 28
1
vote
1 answer
GhostScript Path output/input error
I'm using GS 32bits with the wrapper for C# .
This line works :
GhostscriptSharp.GhostscriptWrapper.GeneratePageThumb("a.pdf" , "a.jpg", 1, 100, 100, 50, 50);
But this line doesn't work
GhostscriptSharp.GhostscriptWrapper.GeneratePageThumb("a.pdf"…

Mickaël B.
- 325
- 4
- 14
1
vote
2 answers
Ghostscript to convert pdf to text and keep PDF file table format
I have this code that converts a PDF to Text file:
gswin32c -dBATCH -dNOPAUSE -dSAFER -dDELAYBIND -dWRITESYSTEMDICT
-dSIMPLE -sDEVICE=txtwrite -dTextFormat=2 -dFirstPage=1 -dLastPage=1
-sOutputFile=C:\out.txt C:\in.pdf
It works almost fine, the…

KleberBH
- 452
- 1
- 9
- 28
1
vote
2 answers
GhostScriptSharp on Azure
There are two symptoms of what I believe is the same issue.
I've installed GhostScriptSharp using Nuget and I'm running it locally on a 32-bit maching in the Azure Development Fabric. Everything is working wonderfully.
When I deploy to Azure,…

Skenflow
- 129
- 1
- 9
1
vote
3 answers
Ghost Script pdf thumbnail in .NET
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…

rollo
- 305
- 3
- 14