EPS format chart to PDF format

Source: Internet
Author: User

In a Linux system, you can use texlive with shell scripts to convert EPS-formatted images into PDF-formatted images.

The two files used are as follows:

Eps2pdf.tex:

\documentclass[a4paper]{article}

\USEPACKAGE{GRAPHICX}

\usepackage{epstopdf}

\begin{document}

\begin{figure}

\centering

% Requires \usepackage{graphicx}

\includegraphics[scale=1]{zftv.eps}\\

\caption{picture}\label{}

\end{figure}

\end{document}


Epstopdf.sh:

#!/bin/bash

epsimage=$ (LS $)

Echo $epsImage

For Epspic in $epsImage;

Do sed-i "s/[_a-za-z0-9]*\.eps/$epsPic/" EPS2PDF.TEX;

Pdflatex-shell-escape Eps2pdf.tex;

MV ${epspic%.*}-eps* $1/${epspic%.*}.pdf;

Done


Save the above two files in the corresponding format to the same folder, and then perform the following in the terminal:

SH epstopdf.sh eps picture save path

You can convert an EPS format image to a PDF format.

This article is from the "just try it!!!!" blog, so be sure to keep this source http://6214235.blog.51cto.com/6204235/1586710

EPS format chart to PDF format

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.