ghostscript

How to confirm a TrueType PDF font is missing glyphs

眉间皱痕 提交于 2019-12-05 21:12:44
I have a PDF which renders fine in Acrobat but fails to print during the PDF to PS conversion process on our printer's RIP. After uncompressing with pdftk and editing I've found if I replace the usage of a certain font it will print. The font is a strange one, a TrueType subset with a single character (space). If I pass the PDF through Ghostscript it reports no errors, however an Acrobat pre-flight check will report a missing glyph for space. This error is not reported for the original file. I'm just using a basic command: gswin32c -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -o gs.pdf original_sample

Resize many PDFs

橙三吉。 提交于 2019-12-05 16:33:37
I have many (around 1000) multiple-page PDFs for a program I am writing. The problem is that many of them are inconsistent about page size, even within the same document at times. Does anyone know of a way I could programmatically go through the files and resize the pages to what I want? This can be in any language. I can accomplish this in Adobe Acrobat Pro, but there are so many that would end up taking a long, long time. The only way I can get it to resize there is to add a background from a file, and then choosing the file i want to resize. Generally, PDFtk is a good fit for this kind of

How can you find a problem with a programmatically generated PDF? [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-05 13:53:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . My group has been using the itext-sharp library and C#/.NET to generate custom, dynamic PDFs. For the most part, this process is working great for our needs. The one problem we can run into during development/testing is layout issues which can cause the PDF to not open/render correctly in Adobe Reader, esp. the

Load C library (gsdll32.dll) from Metro Style App c#

China☆狼群 提交于 2019-12-05 12:12:34
I want to use gsdll32.dll from Metro Style App c#. I load dll as follow: [DllImport("gsdll32.dll", EntryPoint = "gsapi_delete_instance")] private static extern void gsapi_delete_instance(IntPtr instance); [DllImport("gsdll32.dll", EntryPoint = "gsapi_revision")] private static extern int gsapi_revision(ref GS_Revision pGSRevisionInfo, int intLen); [DllImport("gsdll32.dll", EntryPoint = "gsapi_set_stdio")] private static extern int gsapi_set_stdio(IntPtr lngGSInstance, StdioCallBack gsdll_stdin, StdioCallBack gsdll_stdout, StdioCallBack gsdll_stderr); But when I try to load dll not found

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

How to convert a multi-page PDF to single-page TIFFs

筅森魡賤 提交于 2019-12-05 10:20:47
This thread asks for how to convert multi-page PDF to multi-page TIFF with Ghostscript; "Tools to convert multipage PDF to multipage TIFF" However, I want to covert a multi page PDF to a number of single-page TIFFs: Each page in the PDF is expected to be converted to a single TIFF file. So the above answer does not exactly match what I need. How can I achieve this? I am using Windows XP. Be sure to have a recent version of Ghostscript installed. Then you can run these commands: gs \ -o singlepage-tiffg4-%03d.tif \ -sDEVICE=tiffg4 \ multipage-input.pdf and gs \ -o singlepage-tiff24nc-%03d.tif \

C# Ghostscript Wrapper

我的梦境 提交于 2019-12-05 09:11:43
Has anyone encountered a nice wrapper for GhostScript in C#. My specific use is to take postscript and turn it into a pdf AJ. Open-source PDFSharp has a namespace for using GhostScript. Even if you can't directly use it, you can probably graft whatever you need out of the source. Mattygabe Matthew Ephraim has created a pretty simple C# wrapper called GhostScriptSharp that uses P/Invoke to access the unmanaged Ghostscript DLL in your C# application: http://mattephraim.com/blog/2009/01/06/a-simple-c-wrapper-for-ghostscript/ For completeness, there's also Gouda Ghostscript wrapper . You can also

GhostScript on CentOS 5.3 - Unable to process JPXDecode data

烈酒焚心 提交于 2019-12-05 09:09:36
I'm trying to get our server to convert PDFs to image files. It's a CentOS 5.3 system and the latest version of ghostscript that can be (8.70), has been installed. When I try to convert a PDF I get the following error repeated for each page, and the result is a load of blank images. **** ERROR: Unable to process JPXDecode data. Page will be missing data. So, I found an answer on here that seemed to answer that question: iText PDF; howto convert jpeg2000 to jpg using Java Following that I downloaded iText 5.3.4 and jai_imageio-1.1.jar and compiled the supplied script on my local machine. When I

Converting multi-page PDFs to several JPGs using ImageMagick and/or GhostScript

蹲街弑〆低调 提交于 2019-12-05 04:43:18
问题 I am trying to convert a multi-page PDF file into a bunch of JPEGs, one for each page in the PDF. I have spent hours and hours looking up how to do this, and eventually I discovered that I need Ghostscript installed. So I did that (from this website: http://downloads.ghostscript.com/public/ And I used the most recent link "ghostscript-9.05.tar.gz" from Feb 8, 2012). However, even with this installed/downloaded, I am still unable to do what I want. Should I have this saved somewhere special,

PDF to PostScript Using Ghostscript: large files having issues printing

随声附和 提交于 2019-12-05 03:24:13
问题 I'm currently using Ghostscript to convert 500 page PDF files into PostScript. I'm using Windows 7, Ghostscript x64 v 9.16, and a Kodak Digimaster Commercial Printer. I use the following arguments for GhostScript to convert a PDF into PS: C:\Program Files\gs\gs9.16\bin\gswin64c.exe" -dCompressFonts=true -dSubsetFonts=true -dEmbedAllFonts=true -sFONTPATH=C:\Windows\Fonts\ -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile="PostScript.ps" "MyPdf.pdf" I then add %KDK (proprietary) commands to