ghostscript

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

笑着哭i 提交于 2019-12-02 15:59:27
问题 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

What “thread safe” really means…In Practical terms

房东的猫 提交于 2019-12-02 15:29:21
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 multithreaded rendering. Does this mean our thread safe issue is now resolved? Is ghostscript thread safe now? I am

How can i use ghost4j on OS X 10.9

大城市里の小女人 提交于 2019-12-02 10:03:57
When i want to use ghost4j on OS X 10.9, i see this error: Unable to load library 'gs': dlopen(libgs.dylib, 9): image not found I have installed ghostscript library on my macbook using this site . how can i fix this problem. I can not install ghostscript using port and brew for some reason. First you need to find the file libgs.dylib which was installed by the installer package compile the libgs.dylib library from source, and make a note of where you installed it to. Hopefully it should have been installed to a standard library location, and there should be nothing more you need to do. If not,

Ghostscript removes content outside the crop box?

若如初见. 提交于 2019-12-02 09:56:28
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 box would be) Then I'm calling: gs -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -dCompatibilityLevel=1.7 \

Black color showing on CMY channels when converted to CMYK using GhostScript

僤鯓⒐⒋嵵緔 提交于 2019-12-02 09:41:46
I am trying to generate a PDF using a library called wkhtmltopdf to create an RGB pdf. I am then using ghostscript to convert it to a CMYK format, however, the black text that is in the pdf is not pure black [cmyk(0,0,0,1)]. The black color is visible in other channels. The command for ghostscript is: gs -dBATCH -dNoOutputFonts -dNOPAUSE -dTextBlackPt=1 -dBlackPtComp=1 -sTextICCProfile -dNOCACHE -sDEVICE=pdfwrite -sProcessColorModel=DeviceCMYK -sColorConversionStrategy=CMYK -sOutputICCProfile=ps_cmyk.icc -sDefaultRGBProfile=srgb.icc -dOverrideICC=true -dRenderIntent=1 -sOutputFile=cmyk11.pdf

PowerBuilder 12.5 Classic PDF SaveAs creating files of 0 size on Win7 x64

断了今生、忘了曾经 提交于 2019-12-02 08:23:50
问题 Platform: Windows 7 x64 PB 12.5 Classic Ghostscript 9.07 (both x32 and x64 are installed) HP Laserjet PS printer installed as "Sybase DataWindow PS" Datawindow's Data Export tab has Format to configure: PDF and Method: Distill . Both the checkboxes "Distill custom postscript" and "Print using XSLFOP" are unchecked. I click File | Run/Preview and File | Save Rows As and select PDF as save as type and enter a pdf file name and click on Save. It says in a message box that Save Rows As failed . I

Creating PDF/A with GhostscriptProcessor

南笙酒味 提交于 2019-12-02 06:48:55
问题 I want to convert a PDF file into PDF/A with GhostscriptProcessor, but the result is a PDF not PDF/A. GhostscriptProcessor gsproc = new GhostscriptProcessor(Properties.Resources.gsdll32); gsproc.StartProcessing(CreatePDFA(@"C:\test\PDF.pdf", @"C:\test\PDFA.pdf"), new GsStdio()); And the method: CreateTestArgs(string inputPath, string outputPath) { List<string> gsArgs = new List<string>(); gsArgs.Add("-dPDFA"); gsArgs.Add("-dBATCH"); gsArgs.Add("-dNOPAUSEgsArgs"); gsArgs.Add("-sDEVICE=pdfwrite

Create a tiff with only text and no images from a postscript file with ghostscript

蹲街弑〆低调 提交于 2019-12-02 06:48:26
Is it possible to create a tiff file from a postscript-file (created from a pdf-document with readable text and images) into a tiff file without the images and only the text? Like add a maxbuffer so images will be removed and only text remaining? And if boxes and lines around text could be removed as well that would be awesome. Best regards! KenS You can redefine the various 'image' operators so that they don't do anything: /image { type /dicttype eq not { % uses up argument, only one if dict form pop pop pop pop % remove the arguments for the non-dictionary form. } ifelse } bind def

Ghostscript和Gsview下载安装

…衆ロ難τιáo~ 提交于 2019-12-02 06:16:46
GhostScript用于将PostScirpt文件(ps,eps)转换为PDF 要先装ghostscript再装gsview Ghostscript下载地址 gsview下载地址 注册gsview 去白边: 先打开一个matlab生成的有白边的图像 搞定!可以由latex生成的pdf看出来,右边的图是没有白边的,图注紧紧挨着图片,就是这么简单和神奇 来源: https://blog.csdn.net/qq_36607894/article/details/102728988

Ghostscript - PS to PDF - Inverted images problem

淺唱寂寞╮ 提交于 2019-12-02 05:55:32
问题 I'm trying to convert postscript to PDF using Ghostscript. Everything is converted ok except in some cases images are for some reason inverted. Reported bug info: http://bugs.ghostscript.com/show_bug.cgi?id=691759 Now, they say that this bug was fixed. I downloaded ghostscript 8.70, 8.71, 9.00 and tryed all three versions and result is a same. GSView shows postscript as it should be and does not invert the images. Anyone has any idea? 回答1: Well, reading the comment no. 4 for GS bug 691759 it