LaTeX Adding Images to LaTeX from PDF Sources

  • Thread starter Thread starter robousy
  • Start date Start date
  • Tags Tags
    Images Latex
Click For Summary
To extract an image from a PDF for use in a LaTeX document, several methods can be employed. Using the Snapshot tool in Adobe Reader is one option, but it's important to ensure high resolution and save the image in a lossless format like .png or .gif to minimize degradation. Alternatively, if the paper is available on arxiv.org, the original figure may be accessible in a vector format, such as .eps, which would provide better quality. Another approach involves locating the specific section of the PDF that contains the image and inserting it directly, potentially as an .eps file. Additionally, converting the PDF to PostScript format using Ghostscript and utilizing image extraction tools can also yield good results.
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 \LaTeX 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
4K
  • · 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