ghostscript

Using GhostscriptProcessor to print a PDF file - Margins are messy

一曲冷凌霜 提交于 2019-12-12 02:58:18
问题 I'be been trying to send a PDF file to my printer to print using GhostscriptProcessor in C#. Everything is going well and the file is being printed but a slight zoom (around 1.1x - 1.05x) is being applied and I can't find a way to specify Top Margins or change the final size of the rendered PDF. It seems like the page size from the printer are different from the ones I'm rendering. Is there any way to circumvent that? This is what I have: string printerName = "MIAUMIAUMIAU"; using

CMYK Overprinting and Knockout in Ghostscript

流过昼夜 提交于 2019-12-12 02:56:09
问题 I'm trying to get a grasp on the capabilities of the current version of Ghostscript (see also this question that I asked a few days ago). So, I downloaded a "test form" for the PDF/X-4 standard from www.pdfx-ready.ch, a standards organization in Switzerland, and tried to render it... (In case anyone wants to try this, here's the direct download link: http://www.pdfx-ready.ch/files/PDFX-ready-OutputTest_PDFX4-CMYK_V301d.zip. You can find more info on this page (in German): http://www.pdfx

Conversion of EPS to PDF or Tiff does not maintain transparency

一世执手 提交于 2019-12-12 02:26:43
问题 I am trying to convert eps file to pdf file or tiff file using ghostscript but having issues keeping it transparent. When I convert it to png, transparency is maintained but I need to have pdf or tiff for printing purpose. To convert it to PDF, I am using below Arguments: For PDF -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEPSCrop -sOutputFile=C:\temp\test.pdf C:\temp\test.eps; For Tiff -dNOPAUSE -dBATCH -sDEVICE=tiff32nc -r300 -dEPSCrop -sOutputFile=C:\temp\test.tiff C:\temp\test.eps; is there

GS: Make recursive script

血红的双手。 提交于 2019-12-12 01:37:53
问题 Im using this script to resize some scaned pdf files that users upload to FTP. What i need is to reduce the size of pdf, to reduce the time to process them (upload to s3, etc). The script: gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf So my question is: How can i make this recursive? I need all files in the folder to be reduced. If this can overwrite the original file, then is perfect. Thanks in advance. 回答1:

Ghostscript - using a font in a form makes it unavailable

我与影子孤独终老i 提交于 2019-12-12 01:28:19
问题 I'm seeing some weird behaviour in Ghostscript 9.06 and am wondering whether it's to do with my PS structure or something else. We have an embedded font defined and then attempt to setup a form and use it as below. Underneath I also have some lines to put text directly on the page without using a form. globaldict begin true setglobal /frm_test << /FormType 1 /BBox [-842 -842 596 596] /Matrix [1 0 0 1 0 0] /PaintProc { pop /ArialMT 7.0 selectfont 0 0 moveto (Test text form) show }

Ghostscript - don't show objects with overprint set

折月煮酒 提交于 2019-12-11 19:47:21
问题 I'm trying to convert preview pdfs uploaded by converting them to jpeg. Please can someone tell me how I can preview overprint? i.e. if a white object is set to overprint over a coloured background it shouldn't be shown - we only see the background. /c 'C:\Program Files\gs\gs9.10\bin\gswin64c.exe' -o image%04d.jpg -sDEVICE=jpeg -dJPEGQ=60 -r150 -dSimulateOverprint=false -dUseCropBox uploaded.pdf Also how can I output/list the created files? Thanks 回答1: Overprint is only defined for CMYK inks,

ps2pdf - Unable to open initial device

依然范特西╮ 提交于 2019-12-11 19:46:01
问题 I built a quite large PDF using LaTeX with the lualatex compiler (I need that one because of specific fonts) and now want to shrink the PDF with ps2pdf , following this instruction (the answer with the second-most votes, since gs is not recognized as a command line tool on my computer). My command looks like this: ps2pdf -dPDFSETTINGS=/ebook -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -q -sOutputFile=output.pdf input.pdf I get this error message: MiKTeX GPL Ghostscript 9.25: Device 'pdfwrite'

Scale image in page by adding margins to PDF with Ghostscript

感情迁移 提交于 2019-12-11 19:16:06
问题 My customer wants me to add additional information to right and top border on their single page PDF. The file contains image of the product with measures and other info. I need to scale the content of the page, so that right/top margins would be clear to add extra data. I have played around with Ghostscript in Windows, but so far either the image is cropped out or nothing happens: gswin32c -sOutputFile=scaled2.pdf -dBATCH -dNOPAUSE -dDEVICEHEIGHTPOINTS=312 -dDEVICEWIDTHPOINTS=421 -dFIXEDMEDIA

Wand and ghostscript issue on PyCharm

不想你离开。 提交于 2019-12-11 16:41:42
问题 So I have installed Wand, Ghostscript, ImageMagick. I am trying to convert a PDF to Image. My Code is as following. Code: from wand.image import Image image_pdf = Image(filename="/<fullpath>/xyz.pdf", resolution=500) image_jpeg = image_pdf.convert('jpeg') print (len(image_jpeg.sequence)) When I run the code through terminal (I mean open python terminal and paste the code there), it works. But the same code fails in PyCharm. Error: File "/usr/local/lib/python2.7/site-packages/wand/resource.py"

PostScript - Preserve internal hyperlinks in PDF

不羁岁月 提交于 2019-12-11 15:52:12
问题 With my original question ps2pdf - Unable to open initial device thankfully answered by @KenS, I ran into another problem, where my internal hyperlinks (e.g. "see Figure 1") are lost when converting my PDF using gswin64 . This is my command: gswin64 -dPDFSETTINGS=/ebook -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -o output.pdf input.pdf I uploaded a minimum example of the original PDF here (will be deleted after 2 weeks) and the converted version here. I found this answer, also from @KenS, on