<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, mpsuzuki:
<br>
Nice to hear from you again. I have written a memory jpeg writer
and change some parts of poppler's code such that the image can be
saved into memory directly. But my <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;"></span>companion hates to
change the source code. So I will dig the source code and find the <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;">appropriate interface to do this. Thank you very much, </span>mpsuzuki.<br>
<br>
Regards,
<br>
<br>
On 12/19/2011 04:34 PM, suzuki toshiya wrote:
<blockquote cite="mid:4EEEF71B.6040001@hiroshima-u.ac.jp"
type="cite">Hi,
<br>
<br>
Good to hear that your target platform is Ubuntu, yes, what I mean
<br>
is the utilization of ramdisk-like filesystem. Please check the
output
<br>
of the command "cat /proc/mounts". I guess there might be some
entries
<br>
including the word "tmpfs" (maybe "/dev/shm" would be there). It
is
<br>
the files system like ramdisk, so writing/removing files in there
would
<br>
be faster than those in the harddisks. Please check if tmpfs will
serve
<br>
for your purpose.
<br>
<br>
Regards,
<br>
mpsuzuki
<br>
<br>
杨辉强 wrote:
<br>
<blockquote type="cite">Hi, mpsuzuki:
<br>
Thank you very much. My system is ubuntu. I don't know much
about memory-based file system.
<br>
Does it mean utility such as ramdisk.
<br>
<br>
On 12/19/2011 12:01 PM, suzuki toshiya wrote:
<br>
<blockquote type="cite">Hi,
<br>
<br>
I guess poppler should have something you want, at least
<br>
internally, because the bindings for other frameworks (Qt,
<br>
GLib, cpp etc) may deal with the images without creating/
<br>
cleaning temporary image files.
<br>
<br>
BTW, before searching such, I want to ask an off-topic
question;
<br>
your target operating system does not support memory-based
<br>
file system?
<br>
<br>
Regards,
<br>
mpsuzuki
<br>
<br>
杨辉强 wrote:
<br>
<blockquote type="cite">Hi, all:
<br>
Thank Brad. I don't want to save images into files and
then read files into memory.
<br>
The disk IO expense is high. So what's the utility from
another application can do this job? Wish your advice.
<br>
<br>
Thank you!
<br>
<br>
On Sun, 18 Dec 2011 11:34:17 AM Brad Hards wrote:
<br>
<br>
This should have gone to a mailing list.
<br>
<br>
How are you possibly going to use the utility from another
application and
<br>
copy to memory without making any code changes?
<br>
<br>
Brad
<br>
<br>
<br>
<br>
On 12/18/2011 08:47 AM, 杨辉强 wrote:
<br>
<blockquote type="cite">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 notconvenient for upgrade the poppler's
code.
<br>
<br>
Thank you for your precious advices.
<br>
<br>
On 12/17/2011 03:16 PM, Brad Hards wrote:
<br>
<blockquote type="cite">On Sat, 17 Dec 2011 02:09:21 PM
杨辉强 wrote:
<br>
<blockquote type="cite"> I am a newbie to poppler. I
use utils/pdftoppm.cc to convert a pdf
<br>
file into jpeg images.The generated images are save to
disk files. Now I
<br>
wish to know whether it can save the images in memory
such as a
<br>
vector<std::string>. Wishing you can give me
some advices.
<br>
</blockquote>
I'm sure that is possible, but you'd need to make some
code changes (and
<br>
consider whether an arbitrary binary blob, containing
nulls, is really a good
<br>
idea in a std::string). The code changes should
basically be taking the
<br>
existing output writer and copying in to a memory
location instead. I don't
<br>
see you'd need to make any real popper changes. How you
integrate that depends
<br>
on the application you're trying to create.
<br>
<br>
What is the end-use for this?
<br>
<br>
Brad
<br>
_______________________________________________
<br>
poppler mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/poppler">http://lists.freedesktop.org/mailman/listinfo/poppler</a>
<br>
</blockquote>
<br>
<br>
_______________________________________________
<br>
poppler mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/poppler">http://lists.freedesktop.org/mailman/listinfo/poppler</a>
<br>
</blockquote>
<br>
<br>
<br>
------------------------------------------------------------------------
<br>
<br>
_______________________________________________
<br>
poppler mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/poppler">http://lists.freedesktop.org/mailman/listinfo/poppler</a>
<br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>