ghostscript

Ghostscript doesn't interpret supplied printer

前提是你 提交于 2020-01-07 02:33:37
问题 I'm having trouble executing the following command silently in GhostScript: -q -dBATCH -dNOPAUSE -dNODISPLAY -c "mark /NoCancel true /OutputFile (\\spool\ServerName\PrinterName) /UserSettings << /DocumentName (test)>> (mswinpr2) finddevice putdeviceprops setdevice" -f "c:\test.pdf" "c:\test2.pdf" The command doesn't execute silently, it keeps prompting me to select a printer, so I suspect the OutputFile property may be an issue here. Before, I had another command that worked perfectly (see

GhostScript PDF Merging (Losing Editable Fields)

◇◆丶佛笑我妖孽 提交于 2020-01-04 04:58:08
问题 I'm using GhostScript to merge to PDFs into one PDF. One of the PDFs has textbox fields (editable fields) that I created in Adobe Acrobat Pro 9. When I merge these two PDFs with GhostScript I lose the textbox fields. Is there any way to merge these files (using GS or some other free linux software) that keeps the textbox fields intact? 回答1: Ghostscript is doing the equivalent of printing, so you will lose the editable fields. I recommend pdftk. I'm not sure what you mean by "merge" but pdftk

Text mining pdf files/issues with word frequencies

三世轮回 提交于 2020-01-04 03:59:04
问题 I am trying to mine a pdf of an article with rich pdf encodings and graphs. I noticed that when i mine some pdf documents i get the high frequency words to be phi, taeoe,toe,sigma, gamma etc. It works well with some pdf documents but i get these random greek letters with others. Is this the problem with character encoding? (Btw all the documents are in english). Any suggestions? # Here is the link to pdf file for testing # www.sciencedirect.com/science/article/pii/S0164121212000532 library(tm

Unable to load library 'gs' with Ghost4J

↘锁芯ラ 提交于 2020-01-02 17:13:23
问题 I am trying to use Ghost4J in order to turn a PDF into a PNG. I am aware that people have asked this before, but not with OS X 10 and with the latest release of Ghost4J. I have followed the instructions listed in zippy1978's answer from here: PDF to image using Java I have followed everything from the Ghost4J page I also have tried both answers from here: How can i use ghost4j on OS X 10.9 And I have installed Ghostscript with Port and have tried from Richard Koch's website. I continue to get

Can't install GhostScript in ImageMagick

随声附和 提交于 2020-01-02 10:04:43
问题 Download latest version of ImageMagick. Unpacked it. Installing Ghostscript like this: $ sudo apt-get install ghostscript After that try to configure ImageMagick: $ ./configure --with-gslib $ make $ make install After that i try to conver PDF to jpg $ sudo /usr/local/bin/convert in.pdf out.jpg And i see this mistake convert: no decode delegate for this image format `/tmp/magick-BzHdr4Kp-00000001' @ error/constitute.c/ReadImage/544. convert: Postscript delegate failed `in.PDF': Нет такого

Converting a pdf to an image with GhostScript - how do I reference gsdll32.dll?

痴心易碎 提交于 2020-01-02 07:42:09
问题 I'm trying to create an image from a pdf using GhostScript. Here is my code: GhostscriptWrapper.ConvertToBMP(inputPDFFilePath, outputBMPFilePath); And here's my GhostscriptWrapper class: public class GhostscriptWrapper { public static void ConvertToBMP(string inputPath, string outputPath) { CallAPI(GetArgs(inputPath, outputPath)); } private static void CallAPI(string[] args) { IntPtr ptr; CreateAPIInstance(out ptr, IntPtr.Zero); InitAPI(ptr, args.Length, args); Cleanup(ptr); } private static

Converting a pdf to an image with GhostScript - how do I reference gsdll32.dll?

为君一笑 提交于 2020-01-02 07:42:07
问题 I'm trying to create an image from a pdf using GhostScript. Here is my code: GhostscriptWrapper.ConvertToBMP(inputPDFFilePath, outputBMPFilePath); And here's my GhostscriptWrapper class: public class GhostscriptWrapper { public static void ConvertToBMP(string inputPath, string outputPath) { CallAPI(GetArgs(inputPath, outputPath)); } private static void CallAPI(string[] args) { IntPtr ptr; CreateAPIInstance(out ptr, IntPtr.Zero); InitAPI(ptr, args.Length, args); Cleanup(ptr); } private static

Creating correct PDF/X with ps2pdf (ghostscript)

佐手、 提交于 2020-01-02 06:23:28
问题 I have been struggling with this for a few days, so I thought I'd ask for help here... Basically, I'm trying to use ps2pdf (version 9.10) to create correct PDF/X-1 and PDF/X-3 documents. Yes, I know that ps2pdf is said to only support PDF/X-3 (see this thread and this thread and this thread). However, as PDF/X-1 is basically a subset of PDF/X-3, I guess such a conversion should be possible. Also, using the command... gs -sDEVICE=pdfwrite -dPDFX -dBATCH -dNOPAUSE -dNOOUTERSAVE

How to covert svg to eps in ghostscript

冷暖自知 提交于 2020-01-01 09:18:16
问题 Can you please help me with a command to convert svg file to eps in ghostscript? I tried to open the svg file in Gimp but it is very big so it looks like gimp cannot open it or it take too long. I have two files which I want to convert. Note: I have done a conversion from png to svg to convert raster to vectors and the convertion take most of my system disk space (almost 2GB). There for is it possible to use external cache drive for the command? 回答1: You'll need the 'sister' application to

AWS Lambda function - convert PDF to Image

喜欢而已 提交于 2020-01-01 06:31:27
问题 I am developing application where user can upload some drawings in pdf format. Uploaded files are stored on S3. After uploading, files has to be converted to images. For this purpose I have created lambda function which downloads file from S3 to /tmp folder in lambda execution environment and then I call ‘convert’ command from imagemagick. convert sourceFile.pdf targetFile.png Lambda runtime environment is nodejs 4.3. Memory is set to 128MB, timeout 30 sec. Now the problem is that some files