Extracting image from PDF to use in LaTeX document?
I need to include some graphs from a datasheet in my document, but of course I don't have the source files.
What would be the best course of action? It's mostly logarithmic scale graphs.
graphics pdf
add a comment |
I need to include some graphs from a datasheet in my document, but of course I don't have the source files.
What would be the best course of action? It's mostly logarithmic scale graphs.
graphics pdf
5
Hi, it would help if you could minimise the work people have to do if they want to help you. For example, we don't know what kind of datasheets you're using, what OS you're using, what kind of output you're looking for (ps, pdf, ...), and so on.
– user10274
Jan 10 '12 at 15:09
add a comment |
I need to include some graphs from a datasheet in my document, but of course I don't have the source files.
What would be the best course of action? It's mostly logarithmic scale graphs.
graphics pdf
I need to include some graphs from a datasheet in my document, but of course I don't have the source files.
What would be the best course of action? It's mostly logarithmic scale graphs.
graphics pdf
graphics pdf
edited Jan 10 '12 at 15:18
Thorsten
9,83165663
9,83165663
asked Jan 10 '12 at 15:00
MarinMarin
2,76461920
2,76461920
5
Hi, it would help if you could minimise the work people have to do if they want to help you. For example, we don't know what kind of datasheets you're using, what OS you're using, what kind of output you're looking for (ps, pdf, ...), and so on.
– user10274
Jan 10 '12 at 15:09
add a comment |
5
Hi, it would help if you could minimise the work people have to do if they want to help you. For example, we don't know what kind of datasheets you're using, what OS you're using, what kind of output you're looking for (ps, pdf, ...), and so on.
– user10274
Jan 10 '12 at 15:09
5
5
Hi, it would help if you could minimise the work people have to do if they want to help you. For example, we don't know what kind of datasheets you're using, what OS you're using, what kind of output you're looking for (ps, pdf, ...), and so on.
– user10274
Jan 10 '12 at 15:09
Hi, it would help if you could minimise the work people have to do if they want to help you. For example, we don't know what kind of datasheets you're using, what OS you're using, what kind of output you're looking for (ps, pdf, ...), and so on.
– user10274
Jan 10 '12 at 15:09
add a comment |
7 Answers
7
active
oldest
votes
Alternatively you could extract the data from the graph and then recreate it in your own style. There are several programs available that digitize graphs (e.g. http://digitizer.sourceforge.net/) and in the end this is often the much nicer than a copy&paste and also avoids copyright issues.
Yes. This enables you to apply a consistent style across all the data you ripped off from different sources. I prefer another digitizing program (see `plotdigitizer.sourceforge.net); the one mentioned above gave me some random crashes.
– Michael Palmer
Jan 10 '12 at 22:20
add a comment |
use
includegraphics[page=...,viewport=llx lly urx ury,clip]{pdf-file}
or run
pdfimages [options] <PDF-file> <image-root>
the first one simply inserts the page=<no> of your pdf and clips everything around the viewport. The second one is a Linux command, which extracts all images from a pdf file, eg
pdfimages -f1 -l4 <PDF-file> .
extracts the images of pages 1--4 into the current directory
+1: probably worth mentioning thatincludegraphicsis from thegraphicxpackage
– cmhughes
Jan 10 '12 at 17:20
1
no,includegraphicsis fromgraphics, only the optional arguments needgraphicx... ;-)
– Herbert
Jan 10 '12 at 17:42
3
Note thatpdfimageswill extract only bitmap graphics. If the graphic is a line drawing, such as a cartoon or plot, pdfimages will not find it. Also note that by defaultpdfimageswritesppmfiles. You can give it a-joption to make it savejpegfiles instead.
– Michael Palmer
Jan 10 '12 at 22:17
@MichaelPalmer, Is there any way to extract line drawings from a pdf file?
– Hongying
Jun 3 '13 at 12:19
pdfimagesexpects a raster image. If the "image" is actually a bit of vector art---pdfimages won't help, in which inkscape or krop (or one of its alternatives) can be used instead.
– Jared Kulik
Jul 26 '15 at 18:22
add a comment |
I will assume that you are using OS X with TeXShop and that your original file is in pdf format.
A manual solution that works if there aren't too many images to copy is as follows.
TeXShop's pdf viewer allows you to copy part of a page or image. It works even for pdf files that don't come from a tex file. All you have to do is select the region you want copied with the rectangle selection tool and drag the image to your desktop (or other folder). In TeXShop's preference pane you can select the format of the copied image (pdf, png, etc.)
Maybe other pdf viewers behave like this but since I don't use them I don't know.
This answer is gold.
– GiuTeX
Jun 15 '18 at 19:28
add a comment |
Alternatively, it is possible to use a PDF printer in order to print a current view in a PDF file and use a paper format that corresponds to the dimensions. In this way, vector graphics are preserved. This is kind of a dirty trick, but it works for me...
add a comment |
In Linux (Mint 17) a (semiautomatic) trick that worked for me is, first extract the page with the desired vector figure using pdftk:
pdftk book.pdf cat 51 output page.pdf
in this case, the page 51 from the file book.pdf is extracted into the file page.pdf .
Then using Inkscape, it is possible to open the file page.pdf, select the figure, copy and paste it in a new window, then save it as a new pdf (as a vector image), ready to be included in LaTeX!
Welcome to TeX.SX!
– user31729
Sep 30 '14 at 4:42
add a comment |
One way to extract data if it is available in the PDF as vector graphics is to use Adobe Acrobat:
- Enter editing mode by using the tool "Edit PDF" under Tools.
- Select all the points/shapes/markers you want to copy
- Select "Edit Using..." in the right sidebar and select your text editor

- The coordinates of the markers should be available in the text (in centimeters most probably), so find out the format of one marker and extract all the coordinates. Regular expressions can help.
- Scale and convert the coordinates into the original values by comparing points to the actual axes in the graph.
1
Welcome to TeX.SE!
– Kurt
Mar 14 at 16:28
add a comment |
I use Adobe Acrobat to select regions and save images to .bmp.
Then I convert them to .eps with a sam2p utility, using .bat file for batch processing.
sam2p project on google code
.bat file code:
REM Created by M.M.J. Jorritsma. 2011-09-21, Enschede, The Netherlands
@SET /P INPUT=[Type the extension of the images to be batch-converted. example: jpg]
@SET /P OUTPUT=[Type the extension of the target image format. example: eps]
@ECHO Now converting from "%INPUT%" to "%OUTPUT%".
@SET /P CONTINUE=[Continue? [Y/N]]
@if /I %CONTINUE%==Y (
@for /R %%i In (*.%INPUT%) DO @(
@cls
@echo sam2p %%~ni.%INPUT% %%~ni.%OUTPUT%
sam2p %%~ni.%INPUT% %%~ni.%OUTPUT%
)
)
2
This is potentially messy. If the image you're copying, which is likely to be a vector graphic if it is a plot, is saved to bitmap before putting it into anepscontainer then the resultantepsis not a vector graphic. This typically results in low quality images (looks bad) or large files (pdf readers may get choppy when you scroll and the document that it is put in will be large). In short, one should avoid turning a vector graphic into a raster graphic if it is to be placed in another vector graphic later.
– qubyte
Jan 10 '12 at 15:54
Thanks for comment, @MarkS.Everitt! Haven't thought about it. In my case there were raster images.
– labramov
Jan 10 '12 at 16:41
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f40658%2fextracting-image-from-pdf-to-use-in-latex-document%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
7 Answers
7
active
oldest
votes
7 Answers
7
active
oldest
votes
active
oldest
votes
active
oldest
votes
Alternatively you could extract the data from the graph and then recreate it in your own style. There are several programs available that digitize graphs (e.g. http://digitizer.sourceforge.net/) and in the end this is often the much nicer than a copy&paste and also avoids copyright issues.
Yes. This enables you to apply a consistent style across all the data you ripped off from different sources. I prefer another digitizing program (see `plotdigitizer.sourceforge.net); the one mentioned above gave me some random crashes.
– Michael Palmer
Jan 10 '12 at 22:20
add a comment |
Alternatively you could extract the data from the graph and then recreate it in your own style. There are several programs available that digitize graphs (e.g. http://digitizer.sourceforge.net/) and in the end this is often the much nicer than a copy&paste and also avoids copyright issues.
Yes. This enables you to apply a consistent style across all the data you ripped off from different sources. I prefer another digitizing program (see `plotdigitizer.sourceforge.net); the one mentioned above gave me some random crashes.
– Michael Palmer
Jan 10 '12 at 22:20
add a comment |
Alternatively you could extract the data from the graph and then recreate it in your own style. There are several programs available that digitize graphs (e.g. http://digitizer.sourceforge.net/) and in the end this is often the much nicer than a copy&paste and also avoids copyright issues.
Alternatively you could extract the data from the graph and then recreate it in your own style. There are several programs available that digitize graphs (e.g. http://digitizer.sourceforge.net/) and in the end this is often the much nicer than a copy&paste and also avoids copyright issues.
answered Jan 10 '12 at 16:47
AlexanderAlexander
5,66632350
5,66632350
Yes. This enables you to apply a consistent style across all the data you ripped off from different sources. I prefer another digitizing program (see `plotdigitizer.sourceforge.net); the one mentioned above gave me some random crashes.
– Michael Palmer
Jan 10 '12 at 22:20
add a comment |
Yes. This enables you to apply a consistent style across all the data you ripped off from different sources. I prefer another digitizing program (see `plotdigitizer.sourceforge.net); the one mentioned above gave me some random crashes.
– Michael Palmer
Jan 10 '12 at 22:20
Yes. This enables you to apply a consistent style across all the data you ripped off from different sources. I prefer another digitizing program (see `plotdigitizer.sourceforge.net); the one mentioned above gave me some random crashes.
– Michael Palmer
Jan 10 '12 at 22:20
Yes. This enables you to apply a consistent style across all the data you ripped off from different sources. I prefer another digitizing program (see `plotdigitizer.sourceforge.net); the one mentioned above gave me some random crashes.
– Michael Palmer
Jan 10 '12 at 22:20
add a comment |
use
includegraphics[page=...,viewport=llx lly urx ury,clip]{pdf-file}
or run
pdfimages [options] <PDF-file> <image-root>
the first one simply inserts the page=<no> of your pdf and clips everything around the viewport. The second one is a Linux command, which extracts all images from a pdf file, eg
pdfimages -f1 -l4 <PDF-file> .
extracts the images of pages 1--4 into the current directory
+1: probably worth mentioning thatincludegraphicsis from thegraphicxpackage
– cmhughes
Jan 10 '12 at 17:20
1
no,includegraphicsis fromgraphics, only the optional arguments needgraphicx... ;-)
– Herbert
Jan 10 '12 at 17:42
3
Note thatpdfimageswill extract only bitmap graphics. If the graphic is a line drawing, such as a cartoon or plot, pdfimages will not find it. Also note that by defaultpdfimageswritesppmfiles. You can give it a-joption to make it savejpegfiles instead.
– Michael Palmer
Jan 10 '12 at 22:17
@MichaelPalmer, Is there any way to extract line drawings from a pdf file?
– Hongying
Jun 3 '13 at 12:19
pdfimagesexpects a raster image. If the "image" is actually a bit of vector art---pdfimages won't help, in which inkscape or krop (or one of its alternatives) can be used instead.
– Jared Kulik
Jul 26 '15 at 18:22
add a comment |
use
includegraphics[page=...,viewport=llx lly urx ury,clip]{pdf-file}
or run
pdfimages [options] <PDF-file> <image-root>
the first one simply inserts the page=<no> of your pdf and clips everything around the viewport. The second one is a Linux command, which extracts all images from a pdf file, eg
pdfimages -f1 -l4 <PDF-file> .
extracts the images of pages 1--4 into the current directory
+1: probably worth mentioning thatincludegraphicsis from thegraphicxpackage
– cmhughes
Jan 10 '12 at 17:20
1
no,includegraphicsis fromgraphics, only the optional arguments needgraphicx... ;-)
– Herbert
Jan 10 '12 at 17:42
3
Note thatpdfimageswill extract only bitmap graphics. If the graphic is a line drawing, such as a cartoon or plot, pdfimages will not find it. Also note that by defaultpdfimageswritesppmfiles. You can give it a-joption to make it savejpegfiles instead.
– Michael Palmer
Jan 10 '12 at 22:17
@MichaelPalmer, Is there any way to extract line drawings from a pdf file?
– Hongying
Jun 3 '13 at 12:19
pdfimagesexpects a raster image. If the "image" is actually a bit of vector art---pdfimages won't help, in which inkscape or krop (or one of its alternatives) can be used instead.
– Jared Kulik
Jul 26 '15 at 18:22
add a comment |
use
includegraphics[page=...,viewport=llx lly urx ury,clip]{pdf-file}
or run
pdfimages [options] <PDF-file> <image-root>
the first one simply inserts the page=<no> of your pdf and clips everything around the viewport. The second one is a Linux command, which extracts all images from a pdf file, eg
pdfimages -f1 -l4 <PDF-file> .
extracts the images of pages 1--4 into the current directory
use
includegraphics[page=...,viewport=llx lly urx ury,clip]{pdf-file}
or run
pdfimages [options] <PDF-file> <image-root>
the first one simply inserts the page=<no> of your pdf and clips everything around the viewport. The second one is a Linux command, which extracts all images from a pdf file, eg
pdfimages -f1 -l4 <PDF-file> .
extracts the images of pages 1--4 into the current directory
answered Jan 10 '12 at 15:49
HerbertHerbert
276k25419732
276k25419732
+1: probably worth mentioning thatincludegraphicsis from thegraphicxpackage
– cmhughes
Jan 10 '12 at 17:20
1
no,includegraphicsis fromgraphics, only the optional arguments needgraphicx... ;-)
– Herbert
Jan 10 '12 at 17:42
3
Note thatpdfimageswill extract only bitmap graphics. If the graphic is a line drawing, such as a cartoon or plot, pdfimages will not find it. Also note that by defaultpdfimageswritesppmfiles. You can give it a-joption to make it savejpegfiles instead.
– Michael Palmer
Jan 10 '12 at 22:17
@MichaelPalmer, Is there any way to extract line drawings from a pdf file?
– Hongying
Jun 3 '13 at 12:19
pdfimagesexpects a raster image. If the "image" is actually a bit of vector art---pdfimages won't help, in which inkscape or krop (or one of its alternatives) can be used instead.
– Jared Kulik
Jul 26 '15 at 18:22
add a comment |
+1: probably worth mentioning thatincludegraphicsis from thegraphicxpackage
– cmhughes
Jan 10 '12 at 17:20
1
no,includegraphicsis fromgraphics, only the optional arguments needgraphicx... ;-)
– Herbert
Jan 10 '12 at 17:42
3
Note thatpdfimageswill extract only bitmap graphics. If the graphic is a line drawing, such as a cartoon or plot, pdfimages will not find it. Also note that by defaultpdfimageswritesppmfiles. You can give it a-joption to make it savejpegfiles instead.
– Michael Palmer
Jan 10 '12 at 22:17
@MichaelPalmer, Is there any way to extract line drawings from a pdf file?
– Hongying
Jun 3 '13 at 12:19
pdfimagesexpects a raster image. If the "image" is actually a bit of vector art---pdfimages won't help, in which inkscape or krop (or one of its alternatives) can be used instead.
– Jared Kulik
Jul 26 '15 at 18:22
+1: probably worth mentioning that
includegraphics is from the graphicx package– cmhughes
Jan 10 '12 at 17:20
+1: probably worth mentioning that
includegraphics is from the graphicx package– cmhughes
Jan 10 '12 at 17:20
1
1
no,
includegraphics is from graphics, only the optional arguments need graphicx ... ;-)– Herbert
Jan 10 '12 at 17:42
no,
includegraphics is from graphics, only the optional arguments need graphicx ... ;-)– Herbert
Jan 10 '12 at 17:42
3
3
Note that
pdfimages will extract only bitmap graphics. If the graphic is a line drawing, such as a cartoon or plot, pdfimages will not find it. Also note that by default pdfimages writes ppm files. You can give it a -j option to make it save jpeg files instead.– Michael Palmer
Jan 10 '12 at 22:17
Note that
pdfimages will extract only bitmap graphics. If the graphic is a line drawing, such as a cartoon or plot, pdfimages will not find it. Also note that by default pdfimages writes ppm files. You can give it a -j option to make it save jpeg files instead.– Michael Palmer
Jan 10 '12 at 22:17
@MichaelPalmer, Is there any way to extract line drawings from a pdf file?
– Hongying
Jun 3 '13 at 12:19
@MichaelPalmer, Is there any way to extract line drawings from a pdf file?
– Hongying
Jun 3 '13 at 12:19
pdfimages expects a raster image. If the "image" is actually a bit of vector art---pdfimages won't help, in which inkscape or krop (or one of its alternatives) can be used instead.– Jared Kulik
Jul 26 '15 at 18:22
pdfimages expects a raster image. If the "image" is actually a bit of vector art---pdfimages won't help, in which inkscape or krop (or one of its alternatives) can be used instead.– Jared Kulik
Jul 26 '15 at 18:22
add a comment |
I will assume that you are using OS X with TeXShop and that your original file is in pdf format.
A manual solution that works if there aren't too many images to copy is as follows.
TeXShop's pdf viewer allows you to copy part of a page or image. It works even for pdf files that don't come from a tex file. All you have to do is select the region you want copied with the rectangle selection tool and drag the image to your desktop (or other folder). In TeXShop's preference pane you can select the format of the copied image (pdf, png, etc.)
Maybe other pdf viewers behave like this but since I don't use them I don't know.
This answer is gold.
– GiuTeX
Jun 15 '18 at 19:28
add a comment |
I will assume that you are using OS X with TeXShop and that your original file is in pdf format.
A manual solution that works if there aren't too many images to copy is as follows.
TeXShop's pdf viewer allows you to copy part of a page or image. It works even for pdf files that don't come from a tex file. All you have to do is select the region you want copied with the rectangle selection tool and drag the image to your desktop (or other folder). In TeXShop's preference pane you can select the format of the copied image (pdf, png, etc.)
Maybe other pdf viewers behave like this but since I don't use them I don't know.
This answer is gold.
– GiuTeX
Jun 15 '18 at 19:28
add a comment |
I will assume that you are using OS X with TeXShop and that your original file is in pdf format.
A manual solution that works if there aren't too many images to copy is as follows.
TeXShop's pdf viewer allows you to copy part of a page or image. It works even for pdf files that don't come from a tex file. All you have to do is select the region you want copied with the rectangle selection tool and drag the image to your desktop (or other folder). In TeXShop's preference pane you can select the format of the copied image (pdf, png, etc.)
Maybe other pdf viewers behave like this but since I don't use them I don't know.
I will assume that you are using OS X with TeXShop and that your original file is in pdf format.
A manual solution that works if there aren't too many images to copy is as follows.
TeXShop's pdf viewer allows you to copy part of a page or image. It works even for pdf files that don't come from a tex file. All you have to do is select the region you want copied with the rectangle selection tool and drag the image to your desktop (or other folder). In TeXShop's preference pane you can select the format of the copied image (pdf, png, etc.)
Maybe other pdf viewers behave like this but since I don't use them I don't know.
answered Jan 10 '12 at 15:17
FrédéricFrédéric
9,10722941
9,10722941
This answer is gold.
– GiuTeX
Jun 15 '18 at 19:28
add a comment |
This answer is gold.
– GiuTeX
Jun 15 '18 at 19:28
This answer is gold.
– GiuTeX
Jun 15 '18 at 19:28
This answer is gold.
– GiuTeX
Jun 15 '18 at 19:28
add a comment |
Alternatively, it is possible to use a PDF printer in order to print a current view in a PDF file and use a paper format that corresponds to the dimensions. In this way, vector graphics are preserved. This is kind of a dirty trick, but it works for me...
add a comment |
Alternatively, it is possible to use a PDF printer in order to print a current view in a PDF file and use a paper format that corresponds to the dimensions. In this way, vector graphics are preserved. This is kind of a dirty trick, but it works for me...
add a comment |
Alternatively, it is possible to use a PDF printer in order to print a current view in a PDF file and use a paper format that corresponds to the dimensions. In this way, vector graphics are preserved. This is kind of a dirty trick, but it works for me...
Alternatively, it is possible to use a PDF printer in order to print a current view in a PDF file and use a paper format that corresponds to the dimensions. In this way, vector graphics are preserved. This is kind of a dirty trick, but it works for me...
answered Jul 24 '13 at 14:13
TU Delft MSc studentTU Delft MSc student
111
111
add a comment |
add a comment |
In Linux (Mint 17) a (semiautomatic) trick that worked for me is, first extract the page with the desired vector figure using pdftk:
pdftk book.pdf cat 51 output page.pdf
in this case, the page 51 from the file book.pdf is extracted into the file page.pdf .
Then using Inkscape, it is possible to open the file page.pdf, select the figure, copy and paste it in a new window, then save it as a new pdf (as a vector image), ready to be included in LaTeX!
Welcome to TeX.SX!
– user31729
Sep 30 '14 at 4:42
add a comment |
In Linux (Mint 17) a (semiautomatic) trick that worked for me is, first extract the page with the desired vector figure using pdftk:
pdftk book.pdf cat 51 output page.pdf
in this case, the page 51 from the file book.pdf is extracted into the file page.pdf .
Then using Inkscape, it is possible to open the file page.pdf, select the figure, copy and paste it in a new window, then save it as a new pdf (as a vector image), ready to be included in LaTeX!
Welcome to TeX.SX!
– user31729
Sep 30 '14 at 4:42
add a comment |
In Linux (Mint 17) a (semiautomatic) trick that worked for me is, first extract the page with the desired vector figure using pdftk:
pdftk book.pdf cat 51 output page.pdf
in this case, the page 51 from the file book.pdf is extracted into the file page.pdf .
Then using Inkscape, it is possible to open the file page.pdf, select the figure, copy and paste it in a new window, then save it as a new pdf (as a vector image), ready to be included in LaTeX!
In Linux (Mint 17) a (semiautomatic) trick that worked for me is, first extract the page with the desired vector figure using pdftk:
pdftk book.pdf cat 51 output page.pdf
in this case, the page 51 from the file book.pdf is extracted into the file page.pdf .
Then using Inkscape, it is possible to open the file page.pdf, select the figure, copy and paste it in a new window, then save it as a new pdf (as a vector image), ready to be included in LaTeX!
answered Sep 30 '14 at 4:10
aizquieraizquier
1112
1112
Welcome to TeX.SX!
– user31729
Sep 30 '14 at 4:42
add a comment |
Welcome to TeX.SX!
– user31729
Sep 30 '14 at 4:42
Welcome to TeX.SX!
– user31729
Sep 30 '14 at 4:42
Welcome to TeX.SX!
– user31729
Sep 30 '14 at 4:42
add a comment |
One way to extract data if it is available in the PDF as vector graphics is to use Adobe Acrobat:
- Enter editing mode by using the tool "Edit PDF" under Tools.
- Select all the points/shapes/markers you want to copy
- Select "Edit Using..." in the right sidebar and select your text editor

- The coordinates of the markers should be available in the text (in centimeters most probably), so find out the format of one marker and extract all the coordinates. Regular expressions can help.
- Scale and convert the coordinates into the original values by comparing points to the actual axes in the graph.
1
Welcome to TeX.SE!
– Kurt
Mar 14 at 16:28
add a comment |
One way to extract data if it is available in the PDF as vector graphics is to use Adobe Acrobat:
- Enter editing mode by using the tool "Edit PDF" under Tools.
- Select all the points/shapes/markers you want to copy
- Select "Edit Using..." in the right sidebar and select your text editor

- The coordinates of the markers should be available in the text (in centimeters most probably), so find out the format of one marker and extract all the coordinates. Regular expressions can help.
- Scale and convert the coordinates into the original values by comparing points to the actual axes in the graph.
1
Welcome to TeX.SE!
– Kurt
Mar 14 at 16:28
add a comment |
One way to extract data if it is available in the PDF as vector graphics is to use Adobe Acrobat:
- Enter editing mode by using the tool "Edit PDF" under Tools.
- Select all the points/shapes/markers you want to copy
- Select "Edit Using..." in the right sidebar and select your text editor

- The coordinates of the markers should be available in the text (in centimeters most probably), so find out the format of one marker and extract all the coordinates. Regular expressions can help.
- Scale and convert the coordinates into the original values by comparing points to the actual axes in the graph.
One way to extract data if it is available in the PDF as vector graphics is to use Adobe Acrobat:
- Enter editing mode by using the tool "Edit PDF" under Tools.
- Select all the points/shapes/markers you want to copy
- Select "Edit Using..." in the right sidebar and select your text editor

- The coordinates of the markers should be available in the text (in centimeters most probably), so find out the format of one marker and extract all the coordinates. Regular expressions can help.
- Scale and convert the coordinates into the original values by comparing points to the actual axes in the graph.
answered Mar 14 at 15:52
WelloWello
111
111
1
Welcome to TeX.SE!
– Kurt
Mar 14 at 16:28
add a comment |
1
Welcome to TeX.SE!
– Kurt
Mar 14 at 16:28
1
1
Welcome to TeX.SE!
– Kurt
Mar 14 at 16:28
Welcome to TeX.SE!
– Kurt
Mar 14 at 16:28
add a comment |
I use Adobe Acrobat to select regions and save images to .bmp.
Then I convert them to .eps with a sam2p utility, using .bat file for batch processing.
sam2p project on google code
.bat file code:
REM Created by M.M.J. Jorritsma. 2011-09-21, Enschede, The Netherlands
@SET /P INPUT=[Type the extension of the images to be batch-converted. example: jpg]
@SET /P OUTPUT=[Type the extension of the target image format. example: eps]
@ECHO Now converting from "%INPUT%" to "%OUTPUT%".
@SET /P CONTINUE=[Continue? [Y/N]]
@if /I %CONTINUE%==Y (
@for /R %%i In (*.%INPUT%) DO @(
@cls
@echo sam2p %%~ni.%INPUT% %%~ni.%OUTPUT%
sam2p %%~ni.%INPUT% %%~ni.%OUTPUT%
)
)
2
This is potentially messy. If the image you're copying, which is likely to be a vector graphic if it is a plot, is saved to bitmap before putting it into anepscontainer then the resultantepsis not a vector graphic. This typically results in low quality images (looks bad) or large files (pdf readers may get choppy when you scroll and the document that it is put in will be large). In short, one should avoid turning a vector graphic into a raster graphic if it is to be placed in another vector graphic later.
– qubyte
Jan 10 '12 at 15:54
Thanks for comment, @MarkS.Everitt! Haven't thought about it. In my case there were raster images.
– labramov
Jan 10 '12 at 16:41
add a comment |
I use Adobe Acrobat to select regions and save images to .bmp.
Then I convert them to .eps with a sam2p utility, using .bat file for batch processing.
sam2p project on google code
.bat file code:
REM Created by M.M.J. Jorritsma. 2011-09-21, Enschede, The Netherlands
@SET /P INPUT=[Type the extension of the images to be batch-converted. example: jpg]
@SET /P OUTPUT=[Type the extension of the target image format. example: eps]
@ECHO Now converting from "%INPUT%" to "%OUTPUT%".
@SET /P CONTINUE=[Continue? [Y/N]]
@if /I %CONTINUE%==Y (
@for /R %%i In (*.%INPUT%) DO @(
@cls
@echo sam2p %%~ni.%INPUT% %%~ni.%OUTPUT%
sam2p %%~ni.%INPUT% %%~ni.%OUTPUT%
)
)
2
This is potentially messy. If the image you're copying, which is likely to be a vector graphic if it is a plot, is saved to bitmap before putting it into anepscontainer then the resultantepsis not a vector graphic. This typically results in low quality images (looks bad) or large files (pdf readers may get choppy when you scroll and the document that it is put in will be large). In short, one should avoid turning a vector graphic into a raster graphic if it is to be placed in another vector graphic later.
– qubyte
Jan 10 '12 at 15:54
Thanks for comment, @MarkS.Everitt! Haven't thought about it. In my case there were raster images.
– labramov
Jan 10 '12 at 16:41
add a comment |
I use Adobe Acrobat to select regions and save images to .bmp.
Then I convert them to .eps with a sam2p utility, using .bat file for batch processing.
sam2p project on google code
.bat file code:
REM Created by M.M.J. Jorritsma. 2011-09-21, Enschede, The Netherlands
@SET /P INPUT=[Type the extension of the images to be batch-converted. example: jpg]
@SET /P OUTPUT=[Type the extension of the target image format. example: eps]
@ECHO Now converting from "%INPUT%" to "%OUTPUT%".
@SET /P CONTINUE=[Continue? [Y/N]]
@if /I %CONTINUE%==Y (
@for /R %%i In (*.%INPUT%) DO @(
@cls
@echo sam2p %%~ni.%INPUT% %%~ni.%OUTPUT%
sam2p %%~ni.%INPUT% %%~ni.%OUTPUT%
)
)
I use Adobe Acrobat to select regions and save images to .bmp.
Then I convert them to .eps with a sam2p utility, using .bat file for batch processing.
sam2p project on google code
.bat file code:
REM Created by M.M.J. Jorritsma. 2011-09-21, Enschede, The Netherlands
@SET /P INPUT=[Type the extension of the images to be batch-converted. example: jpg]
@SET /P OUTPUT=[Type the extension of the target image format. example: eps]
@ECHO Now converting from "%INPUT%" to "%OUTPUT%".
@SET /P CONTINUE=[Continue? [Y/N]]
@if /I %CONTINUE%==Y (
@for /R %%i In (*.%INPUT%) DO @(
@cls
@echo sam2p %%~ni.%INPUT% %%~ni.%OUTPUT%
sam2p %%~ni.%INPUT% %%~ni.%OUTPUT%
)
)
answered Jan 10 '12 at 15:34
labramovlabramov
1
1
2
This is potentially messy. If the image you're copying, which is likely to be a vector graphic if it is a plot, is saved to bitmap before putting it into anepscontainer then the resultantepsis not a vector graphic. This typically results in low quality images (looks bad) or large files (pdf readers may get choppy when you scroll and the document that it is put in will be large). In short, one should avoid turning a vector graphic into a raster graphic if it is to be placed in another vector graphic later.
– qubyte
Jan 10 '12 at 15:54
Thanks for comment, @MarkS.Everitt! Haven't thought about it. In my case there were raster images.
– labramov
Jan 10 '12 at 16:41
add a comment |
2
This is potentially messy. If the image you're copying, which is likely to be a vector graphic if it is a plot, is saved to bitmap before putting it into anepscontainer then the resultantepsis not a vector graphic. This typically results in low quality images (looks bad) or large files (pdf readers may get choppy when you scroll and the document that it is put in will be large). In short, one should avoid turning a vector graphic into a raster graphic if it is to be placed in another vector graphic later.
– qubyte
Jan 10 '12 at 15:54
Thanks for comment, @MarkS.Everitt! Haven't thought about it. In my case there were raster images.
– labramov
Jan 10 '12 at 16:41
2
2
This is potentially messy. If the image you're copying, which is likely to be a vector graphic if it is a plot, is saved to bitmap before putting it into an
eps container then the resultant eps is not a vector graphic. This typically results in low quality images (looks bad) or large files (pdf readers may get choppy when you scroll and the document that it is put in will be large). In short, one should avoid turning a vector graphic into a raster graphic if it is to be placed in another vector graphic later.– qubyte
Jan 10 '12 at 15:54
This is potentially messy. If the image you're copying, which is likely to be a vector graphic if it is a plot, is saved to bitmap before putting it into an
eps container then the resultant eps is not a vector graphic. This typically results in low quality images (looks bad) or large files (pdf readers may get choppy when you scroll and the document that it is put in will be large). In short, one should avoid turning a vector graphic into a raster graphic if it is to be placed in another vector graphic later.– qubyte
Jan 10 '12 at 15:54
Thanks for comment, @MarkS.Everitt! Haven't thought about it. In my case there were raster images.
– labramov
Jan 10 '12 at 16:41
Thanks for comment, @MarkS.Everitt! Haven't thought about it. In my case there were raster images.
– labramov
Jan 10 '12 at 16:41
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f40658%2fextracting-image-from-pdf-to-use-in-latex-document%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
5
Hi, it would help if you could minimise the work people have to do if they want to help you. For example, we don't know what kind of datasheets you're using, what OS you're using, what kind of output you're looking for (ps, pdf, ...), and so on.
– user10274
Jan 10 '12 at 15:09