Linux eps to pdf

How to create a single page PDF file out of multiple EPS files with GhostScript

I’m trying to merge eps files into a pdf file using GS, however, I cannot get it to put multiple eps files without page breaks in between even if original files are small. The command I’m using is:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out_file [list of eps files. ] 

3 Answers 3

I decided to write a simple script to generate a tex file that includes eps file arguments (using \includegraphics[width=\columnwidth] . ). Then using latex, and dvipdf I can get a pdf file with multiple eps files on a page.

I merged a handful of pdf’s into a single document using pdftk *.pdf output all.pdf . So that leaves you with a converting EPS documents to PDF: How to convert PDF to EPS?

@perreal No, pdftk does not merge multiple pages into one single page — except the background and stamp operation, but they are for other purposes.

psmerge picture1.eps picture2.eps > merged.ps 

You must log in to answer this question.

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533

Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group.
This site is not affiliated with Linus Torvalds or The Open Group in any way.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

epstopdf (1) — Linux Manuals

Epstopdf transforms the Encapsulated PostScript file epsfile (or standard input) so that it is guaranteed to start at the 0,0 coordinate, and it sets a page size exactly corresponding to the BoundingBox. Thus, the result needs no cropping, and the PDF MediaBox is correct.

By default, the output name is the input name with any extension replaced by .pdf. An output name ending with .pdf can also be given as a second argument on the command line, or the —outfile (-o) option can be used with any name.

The output is PDF 1.5 by default; use, e.g.,

--gsopt=-dCompatibilityLevel=1.7

to change this. (Until epstopdf 2.28 (released September 2018), the PDF version was whatever the underlying Ghostscript or other interpreter produced by default.)

PJL commands at the start of a file are removed. DOS EPS binary files (TN 5002) are supported.

If the bounding box in the input is incorrect, of course there will be resulting problems.

OPTIONS

Options may start with either «» or ««, and may be unambiguously abbreviated. It is best to use the full option name in scripts to avoid possible collisions with new options in the future.

Читайте также:  Linux bash if and condition

General script options: —help display help message and exit —version display version information and exit —outfile=file write result to file. If this option is not given, and —nogs or —filter is specified, write to standard output; otherwise, the default is to construct the output file name by replacing any extension in the input file with `.pdf’. [no]debug write debugging info (default: false). [no]exact scan ExactBoundingBox (default: false). [no]filter read standard input and (unless —outfile is given) write standard output (default: false). [no]gs run Ghostscript (default: true). With —nogs, output (to standard output by default) the PostScript that would normally be converted; that is, the input PostScript as modified by epstopdf. [no]hires scan HiresBoundingBox (default: false). —restricted=val turn on restricted mode (default: [true for repstopdf, else false]); this forbids the use of —gscmd and other options and imposes restrictions on the input and output file names according to the values of openin_any and openout_any (see the Web2c manual, http://tug.org/web2c).

Options for Ghostscript (more info below):

—gscmd=val pipe output to val (default: [gswin32c on Windows, else gs]) —gsopt=val include val as one argument in the gs command (can be repeated). —gsopts=val split val at whitespace and include each resulting word as an argument in the gs command (can be repeated). —autorotate=val set AutoRotatePages (default: None); recognized val choices: None, All, PageByPage. For EPS files, PageByPage is equivalent to All. [no]compress use compression in the output (default: true); if turned off, passes -dUseFlateCompression=false. —device=dev use -sDEVICE=dev (default: pdfwrite); not allowed in restricted mode. [no]embed embed fonts (default: true); passes -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true. [no]gray grayscale output (default: false); passes -sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray. —pdfsettings=val use -dPDFSETTINGS=/val (default is `prepress’ if —embed, else empty); recognized val choices: screen, ebook, printer, prepress, default. [no]quiet use -q, a.k.a. -dQUIET (default: false). —res=dpi, dpixdpi set image resolution (default: [use gs default]); ignored if —debug is set. [no]safer use -d(NO)QUIET (default: true).

In addition to the specific options above, additional options to be used with gs can be specified with either or both of the two cumulative options —gsopts and —gsopt.

—gsopts takes a single string of options, which is split at whitespace, each resulting word then added to the gs command line individually.

—gsopt adds its argument as a single option to the gs command line. It can be used multiple times to specify options separately, and is necessary if an option or its value contains whitespace.

In restricted mode, options are limited to those with names and values known to be safe. Some options taking booleans, integers or fixed names are allowed, those taking general strings are not.

EXAMPLES

epstopdf test.eps epstopdf test.eps test.pdf cat test.eps | epstopdf --filter >test.pdf cat test.eps | epstopdf -f -o=test.pdf

Example for using HiResBoundingBox instead of BoundingBox:

Читайте также:  Linux сменить язык интерфейса

Example for epstopdf‘s attempt at correcting PostScript:

$program --nogs test.ps >testcorr.ps

In all cases, you can add —debug (-d) to see more about what epstopdf is doing.

BUGS

The case of «%%BoundingBox: (atend)» when input is not seekable (e.g., from a pipe) is not supported.

Report bugs in the program or this man page to tex-k [at] tug.org. When reporting bugs, please include an input file and the command line options specified, so the problem can be reproduced.

AUTHOR

Originally written by Sebastian Rahtz, for Elsevier Science, with subsequent contributions from Thomas Esser, Gerben Wierda, Heiko Oberdiek, and many others. Currently maintained by Karl Berry.

Man page originally written by Jim Van Zandt.

You may freely use, modify and/or distribute this man page.

SEE ALSO

The epstopdf LaTeX package, part of the oberdiek bundle, which automates running this script on the fly under TeX: http://ctan.org/pkg/epstopdf-pkg.

  • epstool (1) — Edit preview images and fix bounding boxes in EPS files.
  • eps2eps (1) — Ghostscript PostScript "distiller"
  • epsffit (1) — fit encapsulated PostScript file (EPSF) into constrained size
  • epdfview (1) — view PDF documents
  • epic (1) — Internet Relay Chat client for UNIX like systems
  • epiphany (1) — simple to use web browser for GNOME
  • repstopdf (1) — convert an EPS file to PDF

Index

SEE ALSO

The epstopdf LaTeX package, part of the oberdiek bundle, which automates running this script on the fly under TeX: http://ctan.org/pkg/epstopdf-pkg.

  • epstool (1) — Edit preview images and fix bounding boxes in EPS files.
  • eps2eps (1) — Ghostscript PostScript "distiller"
  • epsffit (1) — fit encapsulated PostScript file (EPSF) into constrained size
  • epdfview (1) — view PDF documents
  • epic (1) — Internet Relay Chat client for UNIX like systems
  • epiphany (1) — simple to use web browser for GNOME
  • repstopdf (1) — convert an EPS file to PDF

Linux Manuals Copyright Respective Owners. Site Copyright © SysTutorials. All Rights Reserved. Terms and Privacy

Источник

EPS to PDF Converter

Choose files or drag & drop them here.
Only you have access to your files.
All files will be deleted after one hour.

How to convert EPS files to PDF online?

Step-by-step guide to convert eps to pdf using AnyConv. It works on PC (Windows, Mac, Linux) and mobile devices (iPhone, Android).

Upload EPS-file

EPS to PDF

Download your PDF

FAQ

First you need to add file for conversion: drag and drop your EPS file or click the «Choose File» button. Then click the «Convert» button. When EPS to PDF conversion is completed, you can download your PDF file.

Of course! We delete uploaded files immediately, and converted ones after 1 hour. No one has access to your files. File conversion (including EPS to PDF) is absolutely safe.

Yes, you can use AnyConv on any operating system that has a web browser. Our EPS to PDF converter works online and does not require software installation.

Information about EPS and PDF file formats

🔸 File format EPS PDF
🔸 Full name EPS — Adobe Encapsulated PostScript PDF — Portable Document Format
🔸 File extension .eps, .epsf, .epsi .pdf
🔸 MIME type application/post-script, application/eps, application/x-eps, image/eps, image/x-eps application/pdf, application/x-pdf, application/x-bzpdf, application/x-gzpdf
🔸 Developed by Adobe Systems Adobe Systems
🔸 Type of format printing file format Document format
🔸 Description Encapsulated PostScript (EPS) is a DSC-conforming PostScript document with additional restrictions intended to be usable as a graphics file format. In other words, EPS files are more-or-less self-contained, reasonably predictable PostScript documents that describe an image or drawing and can be placed within another PostScript document. The Portable Document Format (PDF) is a file format used to present documents independent of application software, hardware, and operating systems. Each PDF file encapsulates a complete description of a fixed-layout flat document, including the text, fonts, graphics, and other information needed to display it.
🔸 Technical details At a minimum, an EPS file contains a BoundingBox DSC comment, describing the rectangle containing the image described by the EPS file. Applications can use this information to layout the page, even if they cannot render the PostScript inside directly. The PDF combines three technologies: A subset of the PostScript page description programming language for generating the layout and graphics. A font-embedding/replacement system to allow fonts to travel with the documents. A structured storage system bundles these elements and any associated content into a single file, with data compression where appropriate.
🔸 File conversion EPS conversion PDF conversion
🔸 Associated programs Adobe Acrobat, Adobe Flash, Adobe Illustrator, Adobe InDesign, Adobe Photoshop Adobe Acrobat, Adobe InDesign, Adobe FrameMaker, Adobe Illustrator, Adobe Photoshop, Google Docs, LibreOffice, Microsoft Office, Foxit Reader, Ghostscript.
🔸 Wiki https://en.wikipedia.org/wiki/Encapsulated_PostScript https://en.wikipedia.org/wiki/Portable_Document_Format
Читайте также:  Reader для linux mint

Источник

Ghostscript: How to convert EPS to PDF with the same page size

I want to convert a EPS figure to a PDF figure with the same width and height. The following command:

gswin32 -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH \ -sDEVICE=pdfwrite -sPAPERSIZE=letter -dCompatibilityLevel=1.4 \ -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 \ -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile="test.pdf" \ -f "test.eps" 

only produces a PDF file with the page size of a letter. Any help would be much appreciated. Here is the test EPS file: https://dl.dropboxusercontent.com/u/45318932/test.eps

2 Answers 2

EPS files cannot contain a media size request. In the absence of any media size request Ghostscript uses the default.

-dEPSCrop : Crop an EPS file to the bounding box. This is useful when converting an EPS file to a bitmap.

To make KenS’ answer more explicit, using the test.eps sample file you linked to. the following command will suffice to do what you want:

gswin32 \ -sDEVICE=pdfwrite \ -dPDFSETTINGS=/printer \ -dEPSCrop \ -o test.pdf \ test.eps 

The -o test.pdf is (for not too ancient versions of Ghostscript!) shorthand for -dNOPAUSE -dBATCH -sOutputFile=test.pdf .

Your test.eps uses a font named /SHZENL+Tahoma_00 . Ghostscript will automatically embed this font, and it will be a subset by default (the prefix SHZENL may change in the PDF, though).

Here is a screenshot from the page the command from your question created. That page is 612 x 792 pts (letter size):

enter image description here

Here is the screenshot from the page the command given in my answer created. Its page size is 360 x 216 pts :

Result when adding <code data-lazy-src=

Оцените статью
Adblock
detector