<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, all:<br>
In web search engine, I want to support the pdf snapshot. So I
want to convert pdf files to images and save the images in a
database. I don't want to change the poppler code.<br>
Because that's not<font color="#ffcc66"> <span style="color:
rgb(68, 68, 68); font-family:
Verdana,Geneva,Arial,Helvetica,sans-serif; font-size: 14px;
font-style: normal; font-variant: normal; font-weight: bold;
letter-spacing: normal; line-height: 21px; orphans: 2;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px; display:
inline ! important; float: none;">convenient for upgrade the
poppler's code.</span></font> <br>
<br>
Thank you for your precious advices.<br>
<br>
On 12/17/2011 03:16 PM, Brad Hards wrote:
<blockquote cite="mid:201112171816.14375.bradh@frogmouth.net"
type="cite">
<pre wrap="">On Sat, 17 Dec 2011 02:09:21 PM 杨辉强 wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> I am a newbie to poppler. I use utils/pdftoppm.cc to convert a pdf
file into jpeg images.The generated images are save to disk files. Now I
wish to know whether it can save the images in memory such as a
vector<std::string>. Wishing you can give me some advices.
</pre>
</blockquote>
<pre wrap="">I'm sure that is possible, but you'd need to make some code changes (and
consider whether an arbitrary binary blob, containing nulls, is really a good
idea in a std::string). The code changes should basically be taking the
existing output writer and copying in to a memory location instead. I don't
see you'd need to make any real popper changes. How you integrate that depends
on the application you're trying to create.
What is the end-use for this?
Brad
_______________________________________________
poppler mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/poppler">http://lists.freedesktop.org/mailman/listinfo/poppler</a>
</pre>
</blockquote>
<br>
</body>
</html>