Adding Images to LaTeX from PDF Sources

  • Context: LaTeX 
  • Thread starter Thread starter robousy
  • Start date Start date
  • Tags Tags
    Images Latex
Click For Summary
SUMMARY

This discussion focuses on methods for extracting images from PDF sources for use in LaTeX documents. Users recommend utilizing the Snapshot tool in Adobe Reader at high resolution to capture images, saving them in lossless formats like .png or .gif to minimize degradation. Alternative methods include checking for source figures on arxiv.org, which may provide vector formats like .eps, or converting PDFs to PostScript using Ghostscript to extract images. These techniques ensure high-quality image integration into LaTeX files.

PREREQUISITES
  • Familiarity with LaTeX document preparation
  • Basic understanding of PDF and image formats (e.g., .png, .gif, .eps)
  • Knowledge of Adobe Reader tools, specifically the Snapshot tool
  • Experience with Ghostscript for PDF conversion
NEXT STEPS
  • Research how to use the Snapshot tool in Adobe Reader effectively
  • Explore methods for converting PDF files to PostScript using Ghostscript
  • Investigate tools for extracting images from PDFs, such as those listed on HeavyDuty
  • Learn about vector graphics formats and their advantages in LaTeX documents
USEFUL FOR

Researchers, academic writers, and anyone involved in preparing LaTeX documents who need to incorporate high-quality images from PDF sources.

robousy
Messages
332
Reaction score
1
Hey folks,

I plan to use a figure from a paper (Hubble diagram for type 1a supernova demonstrating accelerated expansion).'

I'm want to put the image in a [tex]\LaTeX[/tex] document. Of course, I could use the Snapshot tool in Adobe reader and then grab the image and import into photoshop say then save as a jpg or something, but...

I want to ask if anyone knows any better ways to get an image from a pdf source into a latex file.

THANKS!
 
Physics news on Phys.org
If you use the snapshot tool, make sure you set it at a high-resolution (or else view it at high resolution)... then save it (via pasting into an image editor) in a lossless format like .png or .gif. Note that you will get a raster image... with some (possibly tolerable) degradation.

Is there a version of the paper on arxiv.org ? If so, you could grab the source figure. If it was produced by (say) gnuplot or something, then the source figure is probably in a vector format, like .eps.

In your pdf, it may be possible to find the section in the pdf file corresponding to image... then inserting it (possibly as an .eps figure) in your paper. You would probably get the same level of quality as the original.

You might also try converting your pdf to ps (via ghostscript), then use some tools from (say) http://www.geocities.com/SiliconValley/5682/HeavyDuty.html to extract images.
 
Ok, sounds like great information. I'll give it a try in the morning! Thanks a lot!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
34K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 3 ·
Replies
3
Views
13K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
16
Views
2K
Replies
17
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K