ghostscript

Ghostscript PDF -> TIFF conversion is awful for me, people rave about it, I alone look sullen [closed]

断了今生、忘了曾经 提交于 2019-12-03 03:57:06
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . My stomach churns when I see this kind of output. http://www.freeimagehosting.net/uploads/e1097a5a10.jpg and this was my command as suggested by Best way to convert pdf files to tiff files gswin32c.exe -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif a.pdf -c quit What am I doing wrong? (commercial

Using ImageMagick or Ghostscript (or something) to scale PDF to fit page?

心不动则不痛 提交于 2019-12-03 03:55:01
问题 I've been bashing my head against this to no avail. I need to shrink some large PDFs to print on an 8.5x11 inch (standard letter) page. Can ImageMagick/Ghostscript handle this sort of thing, or am I having so much trouble because I'm using the wrong tool for the job? Just relying on the 'shrink to page' option in client-side print dialogs is not an option, as we'd like for this to be easy-to-use for the end users. 回答1: The problem with using ImageMagick is that you are converting to a raster

Converting correctly pdf to ps and vice-versa

此生再无相见时 提交于 2019-12-03 03:51:36
I'm using "pdftops" to convert .pdf files to .ps files and then "ps2pdf" for the reverse process (poppler-utils). The problem is that when creating the .pdf files from the .ps files, the text looks ok, but when i try to copy it, the characters are very strange (it's like they are corrupted). I used these tools on other files for a long time and it worked fine. I also tried "pdftohtml -xml" to create an .xml file, and the text is ok (the characters are extracted correctly). What problem could it be regarding the conversion? Maybe if I use "pdftops" and "ps2pdf" are there some options that need

rails paperclip and passenger `is not recognized by the 'identify' command`

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I upload a photo, my model fails validation, err well even without any validations I'm returned this error: /tmp/stream20100103-13830-ywmerx-0 is not recognized by the 'identify' command. and /tmp/stream20100103-13830-ywmerx-0 is not recognized by the 'identify' command. I'm confident this is not related to ImageMagick because I've removed any image processing from the uploading, also I've tried uploading different mime types, like .txt files and the such. Additionally, I found something that may work. A blog post claims that putting

Cross Compiling ghostscript for android, what host should I use?

匿名 (未验证) 提交于 2019-12-03 02:42:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hi Guys I am using this tutorial to build ghostscript-9.19 to be able to use in my android application to convert eps document to pdf. It fails while configure. Here are the logs checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... arm-linux-androideabi-gcc -- sysroot=/<path>/android-ndk- r11c/platforms/android-17/arch-arm/ checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross

Unable to load library &#039;gs&#039;: libgs.so: cannot open shared object file: No such file or directory

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have installed ghostscript of 64 bit on my 64 bit linux machine. I am using ghost4j-0.5.0.jar to convert pdf files to tiff files. I have written a java program which will convert pdf files to tiff files. This is working perfectly fine on Windows but when i thought of moving this to linux machine i am getting the below error. "Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'gs': libgs.so: cannot open shared object file: No such file or directory" I checked lib folder and could not find libgs.so file in the

How to use Ghostscript for converting PDF to Image

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I found that Ghostscript is able to convert PDF to Image format. I tried PDF to Image Converter but not able to understand it clearly. I have installed gs905w64.exe but when I tried to add reference to my web application I am getting this error. A reference to gsdll32.dll could not be added. No type libraries were found in the component. 回答1: You can use C# to run the GhostScript command line or use Platform Invoke (pInvoke) calls to call the GhostScript dll directly. GhostScript is primarily file based, so the input is path to a file on

Convert PDF to JPG / Images without using a specific C# Library [closed]

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: is there a free C# library ( .dll ) to convert PDF to images ? I tried this one : https://code.google.com/p/lib-pdf/ But it doesn't work, I got this error : Could not load file or assembly 'libpdf.DLL' or one of its dependencies . The specified module could not be found . iTextSharp doesn't implement a function like that either.. EDIT: I didn't use ghost scrpit because you had to install it before on the computer But now I found a solution : if you load manualy the dll it works http://ghostscriptnet.codeplex.com/discussions/465418

What “thread safe” really means…In Practical terms

Deadly 提交于 2019-12-03 01:52:13
问题 please bear with my newbie questions.. I was trying to convert PDF to PNG using ghostscript, with ASP.NET and C#. However, I also read that ghostscript is not thread safe. So my questions are: What exactly does "ghostscript is not thread safe" mean in practical terms? What impact does it have if I use it in a live ASP.NET(aspx) web application with many concurrent users accessing it at the same time? I also read from another site that the major feature of ghostscript ver. 8.63 is

Ghostscript clips a pdf file

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to print a pdf with Ghostscript using those settings : var switches = new List<string> { @"-empty", @"-dPrinted", @"-dNOPAUSE", @"-dNOSAFER", @"-dQUIET", @"-dPDFSETTINGS=/printer", @"-dNumCopies=1", @"-sDEVICE=mswinpr2", @"-dCompatibilityLevel=1.4", @"-sOutputFile=%printer%" + printerSettings.PrinterName, @"-f", pdfFileName }; but either the pdf or Ghostscript have bad margins and while it's good when I print it to file it clips when I print it on my printer. Is there any way to add those programatically with Ghostscript ? I tried