Tag Info

21

Use the Ghostscript option "-dPrinted=false" or the hyperref option "pdfa": \usepackage[pdfa]{hyperref}. You can find more info in this post: Set the print flag on links with hyperref to preserve them with ghostscript >= 9.25

15

In my case (pdftops 0.18.4, GPL Ghostscript 9.05) the resulting PDF following the above answer still contained the fonts and the text was not converted to curves. However, the answer I found at this Malaysian LaTeX User Group site worked for me. This is the script I used: #!/bin/sh if [ "x$1" = "x" -o "x$2" = "x" ]; then echo Usage: basename "$0" "&... 14 Following this answer, you should use the following command for the new (9.15+) ghostscript *nix gs -dNoOutputFonts -sDEVICE=pdfwrite -o vectorized_file.pdf file.pdf Win gswin32 -dNoOutputFonts -sDEVICE=pdfwrite -o vectorized_file.pdf file.pdf 12 If I'm understanding the situation correctly, you're receiving a document with EPS figures from a customer, and you need to produce bulletproof color and grayscale PDFs which you will then pass on to a third-party to RIP. You may not have control over the software used for the RIP, so you want to do whatever will minimize the probability of problems. You're ... 12 Due to recently discovered Ghostscript vulnerabilities, a number of operations during format conversion, including transparency related operations, have been disabled for default usage, beginning with GS version 9.24. They can still be accessed in unsafe operation mode of Ghostscript, which must be explicitly enabled by the user. Enable unsafe mode with ... 8 Here's a simple way to get what you need with standalone: % arara: pdflatex: { shell: yes } \documentclass[ convert, outext=.png, tikz, ]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \filldraw [red] (0,0) circle [radius=2pt] (1,1) circle [radius=2pt] (2,1) circle [radius=2pt] (2,0) circle [radius=2pt]; \draw (0,0) .. controls (... 7 Package hyperref adds bookmarks (outlines). If only some pages are extracted, then there might be pages that have bookmark entries (e.g. by \section{bar}). However ghostscript does not reorganize the bookmark tree (non-trivial in general). It only makes a poor job of copying the tree, removing some invalid entries. Such page subset documents are not a ... 7 You should add \DeclareUnicodeCharacter{2234}{\therefore} to your document preamble. How to do it for Doxygen I don't know. You need also \usepackage{amssymb}. You can somewhat automate the correspondence between Unicode point and command name with something like \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath,amssymb} \... 7 I can reproduce the problem on texlive. pgfplots defines a color with a space in its name (mapped color). When using the (needed) prologue option this is passed to ghostscript (through the generated xcp file): /XC@mapped color{0 0 0}XCrgb and ghostscript doesn't like this at all. A similar error can be triggered with \documentclass{article} \... 6 Try \usepackage{ifpdf} \ifpdf \usepackage{tikz} \fi Remark: Why the new pgf version breaks in auto-pst-pdf hasn't been analysed yet. So this is more a work-around then a solution. 5 Your dvips is configured to send the output to lpr (printing) instead of generating a PostScript file. From the output, given in your comment: This is dvips(k) 5.95a [...] ' TeX output 2013.06.15:1522' -> |lpr [...] The output PostScript file can be specified directly: dvips -o A.ps A.dvi generates a PostScript file A.ps that can then be processed by ... 5 In your case, Yap (MiKTeX dvi previewer) has problems in rendering your .dvi file. It may depend on some .eps file you are including (as David pointed out) but not necessarily (I've found that sometimes Yap has problems in rendering of fonts, as well). I've had the same problem in some .dvi documents of mine and I've solved changing the Render Method to ... 5 (Originally posted as part of question by OP ronszon) The solution to the problem was conversion from PDF to PS, PS to PDF and cropping final PDF file. pdftops myfile.pdf ps2pdf myfile.ps pdfcrop myfile.pdf 5 So you want to "...know a possibility how to export a PDF, that has just blank space where the graphics should be? (And the other way round)" Well, I don't know how to reach that point directly. But I know a detour with three backdoors which get you were you want: First, the detour: Export to PDF just as normal. The result will be no blank space where ... 5 Short answer: https://wiki.lyx.org/LyX/FiguresInLyX Long answer: To view a image on the LyX screen, it is required a compatible format with that XForms or Qt GUI libraries, namely bmp, gif, jpeg, pbm, pgm, ppm, tif, xbm or mng, png and xpm, respectively. A message "Error converting to loadable format" mean that is not possible convert the image to PNG ... 5 I think you can get the Print flag set if you (ab)use the pdfa option. \usepackage[pdfa]{hyperref} (see section "5.12 Option pdfa" of the hyperref manual). This at least seems to work on my local installation (gs 9.25 as required. Without the pdfa option and running your gs command with -dPrinted the hyperlinks are dropped; with the pdfa option the ... 4 Perhaps there is a problem with redirection of standard/error output with your Perl version. Try updating. The current version is 5.16.1.1601. Also I have written a test script that tries different execution methods with and without redirecting: #!/usr/bin/env perl use strict;$^W=1; use File::Spec::Functions qw(devnull); my $null = devnull(); my$prg = '...

4

The \special for dvips' EPS file support already uses quotes, e.g.: PSfile="a b c/d e f.eps" llx=0 lly=0 urx=24 ury=24 rwi=240 However, the graphics package has to do much more: File exists? Without extension? Try out the extensions, given in the extension list. Searching via \graphicspath. Driver specific: \Gread@eps reads the PostScript file to find the ...

4

The problem seems to be solved by adding the option hypertexnames=false to the hyperref call. Got it from http://www.pa.op.dlr.de/~PatrickJoeckel/pdflatex/index.html Thanks you all for your hints!

4

Another alternative is using pdf2svg, as indicated here: Launchpad Bug Report. In Ubuntu, you can install it as sudo apt-get install pdf2svg My overarching goal in reading this post was to be able to edit the raw paths of the PDF in Inkscape, so this accomplishes my goal quite well. EDIT: As a succinct command, you can add the following command: pdf-text-...

4

I suspect that one could get problems with the colorspaces the pdf's use. I'm really not an expert on this, but you might want to have a look at \includegraphics PDF, color problem Inkscape → PDF → includegraphics → XeLaTeX → changed colors PDF colour model and LaTeX

4

Moderators, please don't remove this answer, I am aware that I should comment rather than answer, but I cannot comment as I don't have sufficient reputation. My Stack Overflow reputation doesn't carry over here. We are looking to try and contact someone who maintains this package in order to address the problem. There is an open bug report for Ghostscript ...

4

The apparent quality improvement with -sDEVICE=pngalpha as compared to -sDEVICE=pn16m is achieved by application of anti-aliasing. According to https://www.ghostscript.com/doc/current/Devices.htm#PNG , with -sDEVICE=pngalpha antialiasing is enabled by default: The pngalpha device is 32-bit RGBA color with transparency indicating pixel coverage. The ...

3

For me the following usually works: In YAP, the DVI viewer, in menu View go to Render method and select dvips. This way the PostScript specials in the DVI will be correctly interpreted.

3

The problem appears to be something related to the complicated way that looking for binaries works in Emacs. It is possible that each of the following will give a different list of bin directories: H-v exec-path RET (the "internal" path that is derived from PATH at the time Emacs initialises) (this is where PDF2DSC looks for gs) M-x eshell RET followed by ...

3

The problem is that you are doing an \includegraphics{} on a EPS file that is invalid. When this happened to me, the EPS file hadn't changed in a year, so I have to assume it was the newer version of XeLaTeX that I was using (either a new bug, or the new version is less tolerant of sloppy EPS files. How to find the EPS that causes this problem: Sadly the ...

3

lawlist's second suggestion (in comments above) ended up being correct. I will document exactly what I did here for anyone that ends up with the same problem. To troubleshoot, I cut and pasted the gs folder out of Program Files to see what would happen. Got the same error message. So I figured emacs was not using the path I had hoped I provided it (I ...

Only top voted, non community-wiki answers of a minimum length are eligible