ghostscript

Ghostscript error with print function in Matlab

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to save images in Matlab by using the print function: myImage = magic ( 500 ); myFigure = figure ( 'visible' , 'off' ); r = 1 ; set ( myFigure , 'PaperUnits' , 'inches' , 'PaperPosition' , [ 0 0 1920 1080 ]/ r ); % the program works fine on both computers without the line above % however , the program runs fine on one computer only with this line imagesc ( myImage ); axis image ; print ( myFigure , '-dpng' , sprintf ( '-r%d' , r ), 'myOutput.png' ); When I run this program locally with Matlab R2012b, it works as

GhostscriptLibraryNotInstalledException running under 32-bit process requires native library

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Using nuget in Visual Studio 2013, I installed Ghostscript.NET into my project on my Windows x64 PC. Just to make sure I wasn't crazy, I checked it: PM> Install-Package Ghostscript.NET 'Ghostscript.NET 1.2.0' already installed. Project already has a reference to 'Ghostscript.NET 1.2.0'. PM> The project is used by multiple developers. It targets Any CPU, and needs to remain that way. Here is my code: public static void GhostscriptNetProcess(String fileName, String outputPath) { var version = GhostscriptVersionInfo.GetLastInstalledVersion();

OSError: Unable to locate Ghostscript on paths

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I tried to open an EPS image with Pyzo, I have installed PIL and Ghostscript (as I saw that it is necessary on some other websites'topics), my code is: from PIL import Image im = Image.open('''myimage.eps''') im.show() but when I run the code, Pyzo return me:` OSError: Unable to locate Ghostscript on paths I tried to look into it on several websites but it seems pretty complicated for a novice coding student. I am working on Python 3 Thanks for help guys, (oh, and I'm French, so maybe my English is not really perfect !) 回答1: In case someone

How to convert PDF from CMYK to RGB, for displaying on iPad?

陌路散爱 提交于 2019-12-02 21:25:36
According to this question: Displaying PDF documents on iPad - Color Problems some PDFs don't display right on iOS devices due to colors not being in RGB. It's also mentioned that converting PDFs from CMYK to RGB could be automated using ghostscript. Anyone know how the actual command might look like? Codo We use Ghostscript to convert from CMYK to RGB when generating PDFs from Postscript files. It should also work for PDF-to-PDF conversions. The followind command line is used: gs -sDEVICE=pdfwrite -dBATCH -dNOPAUSE -dCompatibilityLevel=1.4 -dColorConversionStrategy=/sRGB -dProcessColorModel=

Convert scanned pdf to text python

泄露秘密 提交于 2019-12-02 21:21:58
I have a scanned pdf file and I try to extract text from it. I tried to use pypdfocr to make ocr on it but I have error: "could not found ghostscript in the usual place" After searching I found this solution Linking Ghostscript to pypdfocr in Windows Platform and I tried to download GhostScript and put it in environment variable but it still has the same error. How can I searh text in my scanned pdf file using python? Thanks. Edit : here is my code sample: import os import sys import re import json import shutil import glob from pypdfocr import pypdfocr_gs from pypdfocr import pypdfocr

How do I crop pages 3&4 in a multipage pdf using ghostscript

你。 提交于 2019-12-02 21:17:00
问题 I would like to crop just some pages in a multipage pdf keeping all pages, some cropped, others not. I tried the following but it "deletes" the non cropped pages... gswin64.exe -o cropped.pdf -sDEVICE=pdfwrite -dFirstPage=3 -dLastPage=4 -c "[/CropBox [24 72 1559 1794]" -c " /PAGES pdfmark" -f input.pdf I've seen the posts on different cropping on odd and even pages, but I could not figure out how to apply this to a certain page in a multipage document. gswin64.exe -o cropped.pdf -sDEVICE

Ghostscript removes content outside the crop box?

梦想与她 提交于 2019-12-02 19:45:43
问题 I'm having troubles with ghostscript 9.10 apparently removing content outside of the crop box (specifically the crop marks I've put there) This is the PDF before using ghostscript: with_cropbox_before_optimize.pdf $ pdfinfo -box with_cropbox_before_optimize.pdf MediaBox: 0.00 0.00 651.97 898.58 CropBox: 28.35 28.35 623.62 870.24 Setting the viewer to display the entire media box shows the crop marks outside of the crop box as expected. (the black border is there to illustrate where the crop

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

独自空忆成欢 提交于 2019-12-02 17:20:44
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 products will not be considered) tiffg4 is a black&white output device. You should use tiff24nc or tiff12nc as the output device colour PDFs - see ghostscript output devices . These will be uncompressed but you could put the resulting TIFFs through imagemagick or similar to resave as compressed TIFF.

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

本秂侑毒 提交于 2019-12-02 17:18:46
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. The problem with using ImageMagick is that you are converting to a raster image format, increasing file size and decreasing quality for any vector elements on your pages. Multivalent

Linux下通用打印系统CUPS使用教程

跟風遠走 提交于 2019-12-02 16:09:29
Linux下通用打印系统CUPS使用教程 2018-06-14 15:36:34 Nerror 阅读数 576 https://www.cnblogs.com/chjbbs/p/6536332.html 1.什么是CUPS CUPS(Common UNIX Printing System,即通用Unix打印系统)是FedoraCore3中支持的打印系统,它主要是使用IPP(Internet PrintingProtocol)来管理打印工作及队列,但同时也支持”LPD”(Line Printer Daemon)和”SMB”(ServerMessage Block)以及Socket等通信协议。 在Unix/Linux发展之初,打印总是会受到各种各样的限制,最初的打印都是用LPD(命令行方式的打印守护程序)来实现的,它不支持IPP(Internet打印协议),而且也不支持同时使用多个打印设备。而CUPS的出现,提供了一套完整的管理打印设备、实现可靠打印、网络打印的一套完整方案。此外,在Linux下进行CUPS驱动开发是遵循GPL协议规定的,也就是说必须开源。 CUPS实际上是一个集成的服务。包括了前端接收打印命令的相关程序,后端控制打印机硬件的程序,中间则是打印驱动。首先来看看CUPS驱动打印机的方式。当CUPS接受到打印命令时,首先会进行一个格式的预转换,比如将