Questions tagged [ghostscript]

{ghostscript} concerns the Ghostscript PDF and Postscript interpreter and renderer.

Filter by
Sorted by
Tagged with
3
votes
2answers
82 views

How to fix this \special{pdf: content …} so it doesn't corrupt the resulting PDF?

I use a \special command to drive some diagonal lines as a part of a macro for drawing puzzles. While these work fine when compiling with XeTeX, they seem to corrupt the resulting PDF document when ...
1
vote
1answer
40 views

attachfile2 with dvips and gostscript 53.3 don't work

I updated the packages in my distribution Latex last week and attachfile stop working : Compilation with Pdflatex or xelatex work well but compilation with latex+dvips+ps2pdf dont attach file. here is ...
1
vote
0answers
87 views

auto-pst-pdf creates ghostscript error [duplicate]

I am using pdflatex (shell-escape is enabled) with auto-pst-pdf, psfrag and chemnum to replace tags in eps-files for auto-numbering molecules in my B.Sc. thesis. It went fine until this week, when I ...
1
vote
0answers
46 views

Alternative to auto-pst-pdf for chemnum

Does anyone know what I could use instead of auto-pst-pdf combined with chemnum to replace tags in eps-files? Since this week it doesn't work anymore. Pstool (\usepackage[mode=nonstop,crossref=true,...
0
votes
1answer
52 views

Sublime Text preview fail

I have some problems in converting pdf to png, in Sublime Text editor. It has an error message: ERROR: Failed to convert pdf to png to preview. To check the error report, it shows only one text as ...
2
votes
0answers
60 views

Invert colours of a PDF with Ghostscript [closed]

This question has been asked several times on StackExchange but I could not find a solution that really works. Is there a (desirably) pure ghostscript way to invert the colours of a PDF? The command ...
4
votes
2answers
159 views

Ghostscript breakes TikZ shadows?

I use fancy TikZ shadows in my pdflatex document, it works fine. However, if I process the PDF document with ghostscript (or its ps2pdf frontend), the shadows get broken. The processing is aimed to ...
2
votes
1answer
136 views

Making dvisvgm and Ghostscript from MacTeX talk to each other

I am trying to use dvisvgm to convert pdf files to svg files. When I call dvisvgm --pdf test.pdf (for example), I get the response ERROR: Ghostscript is required to process PDF files. Both programs ...
0
votes
0answers
13 views

Assign Program Location in Sublime for LaTeX

I am learning to use LaTeX in Sublime Text 3 and I installed some packages for supporting LaTeX compilation. When I ran LaTeXtool System Check using Sublime, It gives the following report. Is there a ...
1
vote
1answer
62 views

How to fix ISO 19005-1 clause 6.1.9 check fail in veraPDF when generating PDF/A?

I am attempting to create a PDF/A document using LaTeX, pdfTeX. I need to conform to my university's profile, checked by veraPDF. In my .tex file before \begin{document} I use the package pdfx to ...
1
vote
1answer
73 views

Unable to view postscript files using psv in TeX Live on Windows

I installed TeX Live 2019 on Windows 10 last year and tried to use the built-in psv to read postscript files. It opened with an error message, which I cannot remember now. This year, I installed TeX ...
0
votes
0answers
51 views

TeX2img does not remember Ghostscript path when using IguanaTeX

Everytime I want to generate a vector output with IguanaTeX in PowerPoint, TeX2img configuration panel is opened and I have to set the path for Ghostscript manually. Is there a way for TeX2img to ...
1
vote
1answer
493 views

ghostscript: mactex conflicts with homebrew

I am using auctex and previewing equations in emacs does not work for me. It seems that the problem is related to ghostscript. I tried to reinstall ghostscript using brew, but got the following error. ...
0
votes
1answer
78 views

Ghostscript text is not selectable on pages with images

After normal compiling, I am processing a PDF file with the following ghostscript command in order to produce a (hopefully) PDF/A compliant file. gs -dPDFA -sDEVICE=pdfwrite -...
0
votes
0answers
473 views

Probable Latex error - Ghostscript 9.25: ERROR: A pdfmark destination page 2 points beyond the last page 1

I ran the Latex->Latex->DviPS->PS2PDF and I get the following error: MiKTeX GPL Ghostscript 9.25: Unrecoverable error, exit code 1 MiKTeX GPL Ghostscript 9.25: ERROR: A pdfmark destination page 2 ...
1
vote
1answer
73 views

Compile pdf/svg/eps image exported from LibreOffice Draw with latex

I want to include a .pdf, .svg or .eps image which I exported from LibreOffice Draw with \includegraphics and compile it with latex (cannot use pdflatex). The latex compile error message I get is ...
0
votes
0answers
87 views

EPS images not showing in Latex (and EPS-to-PDF conversion failing)

A couple of days ago I posted an issue here (link: XeLaTeX unable to find fonts after reinstall of MiKTeX), where I was suddenly unable to compile a document after reinstalling windows+tex software. I ...
1
vote
0answers
259 views

Ghostscript PDF compression leads to “Output may be incorrect” errors

I'm following these instructions to compress PDFs generated from LaTeX. I run the commands: gswin64 -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=foo-compressed....
1
vote
1answer
223 views

AUCTeX fails to generate previews

I am trying to generate previews using AUCTeX on Emacs GUI in my tex buffer but I get a "stop" sign error everywhere. See example below: When I click on the stop sign and select "View Error" I get ...
2
votes
1answer
106 views

Ghostscript error when using both pst-rputover & tcolorbox

I can compile (no errors) the following MWE (file.tex) on TL-2019 (linux) with both latex & pdflatex <-shell-escape>: \documentclass{article}% % \usepackage[on]{pstricks-pdf}% \usepackage{...
0
votes
1answer
1k views

IguanaTeX in Powerpoint: problem computing bounding box

This question is essentially an exact duplicate of this one, which alas went unanswered. I am using IguanaTeX to format LaTeX in PowerPoint (not something I’ve ever done before), and obtain the ...
4
votes
2answers
129 views

ghostscript gives undefined in --execute— when using color.tex with pstricks on plain tex

Assume the following plain TeX file: \input pstricks \input color \pscircle{1.5} \bye Compiling using eTeX works fine, dvips too. However the resulting PS file can't be processed using gs, I'll post ...
2
votes
1answer
85 views

Why does `convert=ghostscript` destroy equations on high density?

I want to create a high-resolution png to include it into a A0-poster. My Idea was to use the standalone package with the convert=ghostscript option. \documentclass[border=2pt,convert={ghostscript, ...
0
votes
0answers
51 views

Asymptote: Ghostscript error with graph3

Here's a MWE: \documentclass{article} \usepackage{asymptote} \begin{document} \begin{asydef} settings.prc=false; settings.render=0; import graph3; \end{asydef} \begin{asy}[inline=true] size(200,0); ...
1
vote
1answer
82 views

How to change image quality in a pdfTeX output and keep hyperlinks? [duplicate]

I am trying to get a small PDF output from pdftex. From pdftex reduce PDF size: reduce image quality? I found the useful command gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -...
1
vote
1answer
165 views

\includepdf command disappear the pdf's transparency information?

I have a pdf which has some transparent graphics and words. Like this:(of course it had more words ) then I use \includepdf command to insert this to a latex project . \documentclass[10pt,a4paper]{...
1
vote
0answers
169 views

MacTex 2019 graphics doesn't render properly [closed]

I just upgraded MacTex from 2018 to 2019 using HomeBrew, the graphics didn't render well(very blur compared with the earlier version, guess it is about some changes on the default graphics resolution ...
2
votes
1answer
72 views

Conflict error when using \pstMarkAngle with XeLaTeX

I’m trying to produce a pspicture with marked angles, so I’m using the pstricks extention pst-eucl. Here is a minimal example: (I’m using MikTeX 9.25 together with TeXmaker on Windows 7) \...
2
votes
2answers
1k views

ps2pdf is not working anymore - Macport upgrade on MacOS High Sierra 10.13.5

After an upgrading following a break dependency on my MacOS High Sierra 10.13.5, the command "ps2pdf" doesn't work anymore. I use it with latex to convert a ghostscript file .ps, generated from latex ...
4
votes
2answers
265 views

Avoiding overprinted outlines with pdfrender when converted by Ghostscript

In my document the pdfrender package is used to give some text with a special font a bold outline. Then the resulting file is converted into a PNG (for the website) as well as a PDF with all ...
6
votes
2answers
365 views

Incompatibility between pgfplots and xcolor since last MiKTeX update [duplicate]

Please consider the following MWE: \documentclass{article} \PassOptionsToPackage{prologue,usenames,dvipsnames,svgnames,table}{xcolor} \usepackage{xcolor} \usepackage{pgfplots} \pgfplotsset{...
1
vote
0answers
116 views

TikZ node text color not working with latest MiKTeX release [duplicate]

Please consider the following MWE: \documentclass{article} \PassOptionsToPackage{usenames,dvipsnames,svgnames,table}{xcolor} \usepackage{xcolor} \usepackage{tikz} \begin{document} \par Text before ...
1
vote
0answers
208 views

Ghostscript breaks the hyperlinks of my PDF [duplicate]

When I use Ghostscript on a PDF it breaks the PDF's hyperlinks. Why, and how can I retain hyperlink functionality after doing so? I have made a PDF named link.pdf with the text Hello World where ...
2
votes
2answers
461 views

Problems after installing Ubuntu 18.04 and EPS

After installing Ubuntu v. 18.04, I suppose that ghostscript does not work proper. It cannot convert eps-files to pdf. I suppose that the TeX-command epstopdf make use of it. Is that true? What ...
9
votes
1answer
1k views

Set the print flag on links with hyperref to preserve them with Ghostscript >= 9.25

To reduce the size of a PDF produced with pdflatex I usually run this command: $ gs -sDEVICE=pdfwrite \ -dCompatibilityLevel=1.4 \ -dPDFSETTINGS=/printer \ -dEmbedAllFonts=...
14
votes
2answers
4k views

pgf's and pstricks's opacity is not working

I've recently upgraded (on Ubuntu 18.04 LTS) TexLive 2016 to 2017. The problem that came up is that the opacity of tikz (pgf) and of pstricks pictures is not working in .ps and .pdf files after ...
2
votes
1answer
708 views

Latex: Ghostscript call for EPS to PDF conversion failing

I am using eps graph for my work. Latex version is TeXstudio 2.12.10, Miktex 2.9. Code to include graph \begin{subfigure}{.48\textwidth} \includegraphics*[width=\linewidth,keepaspectratio=false]{...
2
votes
0answers
221 views

White tikz pictures in IguanaTex

I'm trying to use IguanaTex to include some TikZ pictures in a presentation, but I'm finding that if I'm drawing in white (or even a colour really close to white), the picture won't show. So \...
4
votes
1answer
794 views

How to convert pgfplots to high quality PNG file with Ghostscript?

Note: This is not a duplicate of How to save a figure produced by tikz save/export as JPG/PNG file. This question deals with Ghostscript and quality concerns. The other question does not deal with ...
3
votes
0answers
153 views

How to flatten or postprocess a Latex generated PDF to crop image outside of viewport? [closed]

I have a large PDF document that includes lot of complex figures. To build these figures I used the viewport feature of the \includeGraphics command from Graphics package extensively. I am aware that ...
6
votes
1answer
349 views

Is it possible to improve legibility of an old (La)TeX document with problematic fonts?

(Edit: Somehow an addition I made to this question got lost before I pressed the bounty button. Apologies to whoever already answered partially.) I occasionally come across old(ish) papers written in ...
2
votes
1answer
340 views

auto-pst-pdf : Error: /undefined in pst@angleunit, MiKTeX GPL Ghostscript 9.19: Unrecoverable error, exit code 1

I'm using the package auto-pst-pdf and the package pst-labo. Everthing goes well with latex->dvips->ps2pdf but I got an error when i want to use it with pdflatex with -shell-escape \...
5
votes
2answers
2k views

Can not generate Preview by AUCTeX

I try to generate preview by AUCTeX (on Emacs GUI), but it displays I click on the red sign, choose View error and get /usr/bin/rungs -dOutputFile\=\(_region_.prv/tmp5971SJc/pr1-5.png\) -q -...
0
votes
0answers
105 views

Sidewaysfigure changing pixel aspect ratio

I'm using sidewaysfigure to insert a landscape-oriented full-page map into a 2-column, 8.5x11in pdflatex document. The original image (jpeg, submitted by author with no way to get a proper image ...
0
votes
0answers
535 views

Pdfcrop: Cannot call ghostscript `mgs' in Command Prompt

On Windows 10, I am attempting to call pdfcrop a.pdf from the command prompt, but I get the following error: !!! Error: Cannot call ghostscript `mgs.exe' (No such file or directory/The system cannot ...
4
votes
0answers
600 views

LaTeXiT: increase resolution

I'm using LaTeXiT to embed equations in my Evernote notebook. The complete package that I have includes LaTeXiT, BasicTex and GhostScript, and I configured it to produce PNG bitmap images, as ...
1
vote
3answers
185 views

Dangling symlinks in MacTeX 2017 ghostscript install

There’s a strange (semi-?) bug in my installation of MacTeX-2017: there are a whole bunch of incorrectly symlinked fonts in the following directories: /usr/local/share/ghostscript/9.21/Resource/...
4
votes
0answers
476 views

error: PDF2DSC sentinel: Wrong type argument: arrayp, nil [closed]

I am trying to get AUCTeX on Emacs to preview formulas but it doesn't seem to work and when I click preview, it produces the following error: PDF2DSC sentinel: Wrong type argument: arrayp, nil I ...
4
votes
1answer
1k views

U+2234 not set up for use with LaTeX

I am using Doxygen to document my C code project. My C source files are saved with UTF-8 encoding. Within some of the files I have mathematical symbols, such as this line: ∴ ∀ FOO ∈ ℕ ≤ BAR The ...
1
vote
0answers
523 views

ps2pdf not working in TextStudio

System information: Windows XP Professiona (Service Pack 3), 32 bit TexStudio 2.11.2 MikTex 2.9 GPL Ghostscript 9.20 (32 bit) I have configure TexStudio's "Build & View" to DVI>PS>PDF Chain....