Inkscape version 0.46 and later allows PDF editing of a single page through an intermediate translation step involving Poppler, then document can be exported again as PDF. Scribus allows opening and editing multi-page PDF, then document can be exported again as PDF. LibreOffice Draw and Apache OpenOffice Draw. Sep 27, 2014. To overcome this an external plugin inkscape-pages provides multi-page support through generating a master page with links to subpages. However this. If there are not many pages, try saving them as separate single page PDF files after editing with Inkscape and then merge using some tool like PDF fill.
| Getting Started Common Elements Mechanics Technical Texts Special Pages Special Documents Creating Graphics Programming Miscellaneous Help and Recommendations Appendices |
edit this box • edit the TOC |
You can import external graphics using packagegraphicx. The most important command isincludegraphics. LaTeX itself treats the image likenormal text, i.e. as a box of certain height and width.
The package documentation list the options width andheight, as well as others.
Using pdflatex several graphics formats aresupported: pdf, png andjpg. Modern installations of LaTeX can useeps files as well, but indirectly.
LaTeX in dvi-mode supports onlyeps-files.
You can align the images in a matrix. You just have to think of a proper width for the images.
Three images in one line, each image has a width of just 30 % of the available line width, centered with respect to the text below.
If you want to add a caption and let LaTeX keep track of the numbering, have a look at the floats section.
You should also take a look at Export To Other Formats for other possibilities.
You can convert EPS to PDF with the epstopdf utility, included in package of the same name. This tool is actually called by pdflatex to convert EPS files to PDF in the background when the graphicx package is loaded. This process is completely invisible to the user.
You can batch convert files using the command-line.In Bourne Shell (Unix) this can be done by:
In Windows, multiple files can be converted by placing the following line in a batch file (a text file with a .bat extension) in the same directory as the images:
which can then be run from the command line.
If epstopdf produces a whole page with your small graphics somewhere on it, use
or try using the ps2pdf utility which should be installed with Ghostscript (required for any TeX distribution).
to crop the final PDF.
When all of the above fails, one can simplify the EPS file before attempting other conversions, by using the eps2eps tool (also see next section):
This will convert all the fonts to pre-drawn images, which is sometimes desirable when submitting manuscripts for publication. However, on the downside, the fonts are NOT converted to lines, but instead to bitmaps, which reduces the quality of the fonts.
imgtops is a lightweight graphics utility for conversions between raster graphics (JPG, PNG, ...) and EPS/PS files.
Inkscape can also convert files from and to several formats, either from the GUI or from the command-line. For instance, to obtain a PDF from a SVG image you can do:
It is possible to run this from within a LaTeX file, the Template:LaTeX/package package (when running (pdf)latex with the --shell-escape option) can do this using Inkscape's pdf+tex export option, or a simple macro can be used. See How to include SVG diagrams in LaTeX? -- StackexchangeSee Export To Other Formats for more details.
To properly edit an EPS file, you can convert it to an editable format using pstoedit. For instance, to get an Xfig-editable file, do:
And to get an SVG file (editable with any vector graphics tool like Inkscape) you can do:
Sometimes pstoedit fails to create the target format (for example when the EPS file contains clipping information).
Under Windows, PDFCreator is an open source software that can create PDF as well as EPS files. It installs a virtual printer that can be accessed from other software having a 'print...' entry in their menu (virtually any program).
These three programs operate much the same way, and can convert between most graphics formats. Sam2p however is the most recent of the three and seems to offer both the best quality and to result in the smallest files.

Acrobat Reader sometimes has problems with displaying colors correctly if you include graphics in PNG format with alpha channel. You can solve this problem by dropping the alpha channel. On Linux it can be achieved with convert from the ImageMagick program:
Sometimes color EPS figures need to be converted to black-and-white or grayscale to meet publication requirements. This can be achieved with the eps2eps of the Ghostscript package and [1] programs:
We will not tackle the topic of procedural graphics created from within LaTeX code here (TikZ, PSTricks, MetaPost and friends). See Introducing Procedural Graphics for that.
You should prefer vector graphics over raster graphics for their quality. Raster graphics should only be used in case of photos. Diagrams of any sort should be vectors.
As we have seen before, LaTeX handles
If some tools cannot save in those formats, you may want to convert them before importing them.
Dia is a cross platform diagramming utility which can export eps images, or generate tex drawn using the tikz package.
Another program for creating vector graphics is Inkscape. It can run natively under Windows, Linux or Mac OS X (with X11). It works with Scalable Vector Graphics (SVG) files, although it can export to many formats that can be included in LaTeX files, such as EPS and PDF.From version 0.48, there is a combined PDF/EPS/PS+LaTeX output option, similar to that offered by Xfig.There are instructions on how to save your vector images in a PDF format understood by LaTeX and have LaTeX manage the text styles and sizes in the image automatically.[1]. Today there is the svg package[2] which provides an includesvg command to convert and include svg-graphics directly in your LaTeX document using Inkscape. You may have a look at this extended example too.
An extremely useful plug-in is textext, which can import LaTeX objects. This can be used for inserting mathematical notation or LaTeX fonts into graphics (which may then be imported into LaTeX documents).
The Ipe extensible drawing editor is a free vector graphics editor for creating figures in PDF or EPS format.Unlike Xfig, Ipe represents LaTeX fonts in their correct size on the screen which makes it easier to place text labels at the right spot.Ipe also has various snapping modes (for example, snapping to points, lines, or intersections) that can be used for geometric constructions.
Yet another solution is provided by the lpic packages [2], which allows TeX annotations to imported graphics. See Labels in the figures.
It is also possible to export vector graphics to EPS format using LibreOffice Draw, which is an open source office suite available for Windows, Linux and Mac.
Vector editor TpX separates geometric objects from text objects. Geometric objects are saved into .PDF file, the rest is saved in .TpX file to be processed by LaTeX. User just create the graphics in TpX editor and calls the .TpX file from latex file by command input{...TpX}.
Xfig is a basic program that can produce vector graphics, which can be exported to LaTeX. It can be installed on Unix platforms.
On Microsoft Windows systems, Xfig can only be installed using Cygwin-X; however, this will require a fast internet connection and about 2 gigabytes of space on your computer. With Cygwin, to run Xfig, you need to first start the 'Start X - Server', then launch 'xterm' to bring up a terminal. In this terminal type 'xfig' (without the quotation marks) and press return.
Alternatively, WinFIG. WinFIG is an attempt to achieve the functionality of xfig on Windows computers.
There are many ways to use xfig to create graphics for LaTeX documents. One method is to export the drawing as a LaTeX document. This method, however, suffers from various drawbacks: lines can be drawn only at angles that are multiples of 30 and 45 degrees, lines with arrows can only be drawn at angles that are multiples of 45 degrees, several curves are not supported, etc.
Exporting a file as PDF/LaTeX or PS/LaTeX, on the other hand, offers a good deal more flexibility in drawing. Here's how it's done:
Observe that this is just like including a picture, except that rather than using includegraphics, we use input. If the export was into PS/LaTeX, the file extension to include would be .pstex_t instead of .pdf_t.
usepackage command right below the documentclass command, like this:And you're done!
For more details on using xfig with LaTeX, this chapter of the xfig User Manual may prove helpful.
Commercial vector graphics software, such as Adobe Illustrator, CorelDRAW, and FreeHand are commonly used and can read and write EPS figures. However, these products are limited to Windows and Mac OS X platforms.
Photoshop can save to EPS.
GIMP, has a graphical user interface, and it is multi-platform. It can save to EPS and PDF.
Generic Mapping Tools (GMT), maps and a wide range of highly customisable plots.
Gnumeric, spreadsheets has SVG, EPS, PDF export
Gnuplot, producing scientific graphics since 1986. If you want to make mathematical plots, then Gnuplot can save in any format. You can get best results when used along PGF/TikZ.
matplotlib, plotting library written in python, with PDF and EPS export. On the other hand there is a PGF export also.There are some tricks to be able to import formats other than EPS into your DVI document, but they're very complicated. On the other hand, converting any image to EPS is very simple, so it's not worth considering them.
R, statistical and scientific figures.
As described above, graphics content can be imported into LaTeX from outside programs as EPS files. But sometimes you want to edit or retouch these graphics files. An EPS file can be edited with any text editor since it is formatted as ASCII. In a text editor, you can achieve simple operations like replacing strings, changing the bounding box, or moving items slightly, but anything further becomes cumbersome. Vector graphics editors, like Inkscape, may also be able to import EPS files for subsequent editing. This approach also for easier editing. However, the importing process may occasionally modify the original EPS image.
| Previous: Page Layout | Index | Next: Floats, Figures and Captions |
Having trouble getting Inkscape to export PDFs cleanly and there don't seem to be many helpful resources out there. In particular, transparencies are difficult - sometimes the transparency will disappear and sometimes it'll be made into a solid block.
I've fiddled with the save-as-PDF settings in Inkscape and I've printed to a PDF using CutePDF without success. Is there some method of exporting or creating a file so that I can get predictable results?
Inkscape (v.0.91) supports command-line options, and that is how I prefer to do it:
This is actually the command that LyX uses to prepare SVG images for use in LaTeX. I have used PlantUML to generate SVG, which then goes into PDF.
Here's a screenshot of the SVG in inkscape, which has pure vectorial representation (including fonts).
Here's a screenshot of the PDF zoomed in, with a selection of the text 'oo' from the word loop, showing that it's still text in the PDF:
Actually this has been asked and answered here for linux users.
You need to install librsvg2-bin. I'll just add that you will need to fit page to your svg otherwise it will be truncated. Within Inkscape: File -> Document properties -> Select your svg objects -> fit page to selection.
Then just run:
From the main menu, choose:
File → Print... → Print to File
Here you can choose to save the file as PDF, PostScript or SVG.
Are you trying to export to .PDF to keep the editing capabilities? Otherwise, if you're trying to share an image with someone from Inkscape, save it as a .JPG or .PNG (if a translucent background is needed).
On a Linux operating system, I export to PNG then use the convert tool to convert it to PDF.
I love using Inkscape to draw - it is much more intuitive than Illustrator and produces very professional results.
I used Inkscape to prepare figures for publication, however, and had significant difficulty exporting the figures with publication quality settings. Saving files as .eps did not properly embed my fonts and .pdf did not allow me to save with press quality. (I am using Windows XP and Inkscape Version 0.48.4.)
To get around this, I followed the directions for producing press quality figures found at this link.
These step by step instructions show you how to print to a PDF with embedded text and press quality settings.
I did have difficulty printing to pdf for some of my larger figures (only random portions of my figure would end up in the pdf, which was very frustrating!). To circumvent this problem I grouped all aspects of my Inkscape figure and shrank down the overall size. For some reason this worked really well and I obtained nice looking pdfs for these figures.
Another option is to cut the figure in half (if possible) and print two pdfs. These can be combined in Adobe Acrobat Professional (older versions are available for download at this link.
Click on 'Create PDF', Choose 'From Multiple Files' and select the pdfs you want to combine.These will show up as individual pages in the pdf document.To combine them to a single page go to File --> PrintUnder Page Handling change Page Scaling to Multiple pages per sheet.
Then you can customize how many pages you want per sheet. Click OK and your 2 PDFs will now be combined into a single page.
I hope this information is of help to those of you with strict requirements for publication quality figures.
I am using Inkscape and routinely store SVGs into PDF. Stay away from filters, and opaque settings as PDFs (or should I say InkScapes export to PDF) does not handle this feature very well.
I instead use color scales instead of opaque levels to soften colors directly on the palette and avoid the filters altogether. I know this is cumbersome and limits your abilities of what you can do. But exports looks fine if I follow these rules.
It’s been years since I had any problems with transparency of Inkscape-generated PDFs and if I had, those turned out to be a problem of the PDF viewer (or in one case: of an esoteric printer), not of Inkscape. Thus I would say that using a new version of Inkscape should fix such issues.
That being said, since Inkscape 0.47 (from 2009), there is the option Rasterise Filter Effects for PDF export, which should rasterise all those filters (for example blur) that are not supported by the PDF format and keep everything else vectorised.
It is very simple. Save your file/selection as pdf.
If you have FoxIt Reader installed, then you can just

If you are converting it for sharing purposes then export it as png. In the files tab there is a seperate option for exporting in as png. It will save you from a lot of trouble.
If you have already set the page size on document properties (make sure your elements fit into the page) > go to print preview. Here you can save it as a pdf and also print it in the desired size without a loss of resolution.
Try using the Snipping tool that comes with Windows 7. If it's not already pinned to your task bar you will find it under,All Programs,Accessories. Looks like a pair of scissors. That will save it as a jpeg, then open the jpeg and print with the cute PDF.
I saved my document (including gradient layer over image and image with transparency) as JessyInk zipped PDF. Set the DPI and Save. In the Zip file you will find the PDF file as supposed to.
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.