Hi Christian,
2014-06-15 20:18 GMT+09:00 Christian Völker <[email protected]>:
>
>
> This means, the enumeration scheme used by pdftoppm for writing image
> files from several pages is different from what the XPDF Plugin expects. If
> I got it right, the plugin tells pdftoppm to do this:
>
> /usr/bin/pdftoppm -q -f 1 -l 1 -r 75 /tmp/DSfilt2327548125683453130.pdf
> /tmp/prevu8591868713129272046out
>
> It expects to find the resulting file here:
>
> /tmp/prevu8591868713129272046out-000001.ppm
>
> However, the file gets written here:
>
> /tmp/prevu8591868713129272046out-1.ppm
>
> Everything is fine regarding file permissions, the file is in the expected
> directory /tmp, only the six digits instead of a single digit make the
> difference. There are several questions here. Why does the filter write a
> .ppm file and not a .jpg file using the -jpeg option of pdftoppm and when
> does the actual conversion happen? The task of the filter is always to
> produce a thumbnail image of the first page. So it would seem much more
> logical and robust to me to use the -singlepage attribute of pdftoppm which
> does not add anything to the output name besides the file extension.
> Instead first page -f and last page -l are set to 1. But well I would not
> need to bother if everything worked fine.
>
> Where does this six digit rule get set?
>
The version of my pdftoppm is different from yours and my version of it
makes a output ppm with 6 digit as a sequece.
dspace@www:~$ pdftoppm -v
pdftoppm version 3.02
Copyright 1996-2007 Glyph & Cog, LLC
And I confirm the version of pdftoppm in the package "poppler-utils" of
Ubuntu 1204LTS server (64bit version) is same as yours and this version
of pdftoppm make a output file with one digit.
I use Ubuntu 12.04LTS server (32bit version). I can't remember how did
I install my version but there is the "xpdf-utils" package that is not in
64bit OS.
I might install my version from this package.
In any case, I think there are two options.
1) Install the version 3.02 of pdftoppm in some way,
2) Edit line 237 of XPDF2Thumbnail.java and rebuild DSpace
from
File outf = new File(outPrefix+"-000001.ppm");
to
File outf = new File(outPrefix+"-1.ppm");
Hope this helps you.
Regards,
Keiji Suzuki
>
> During my tests I had produced thousands of files starting with
> /tmp/prevu*. Most of them ended on -1.ppm, but some of them on -01.ppm.
> Mysterious.
>
> I will try to produce the same fault on my test system which works fine
> for now, just to understand where are the differences.
>
> For now, I wont try the second suggestion to recompile with source code
> commented out, because I guess, I already found the issue, just dont
> understand it yet.
>
> Thanks for your support. Further suggestions welcome.
>
> Bye, Christian
>
>
>
> ------------------------------------------------------------------------------
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
鈴木敬二@江別市
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette