Thanks very much, I am grateful for this information, we actually scanned documents into searchable pdf format, how can we take the documents into OPEN OFFICE before going into Greenstone 2.84
I look forward to hearing from you.
--- On Sun, 4/10/11, John Rose <email@example.com> wrote:
From: John Rose <firstname.lastname@example.org>
Subject: Re: [greenstone-users] Design and Build of pdf in linux - Challenge
Cc: "Sandton Consulting Ltd" <email@example.com>, "Pier Luigi ROSSI" <firstname.lastname@example.org>
Date: Sunday, April 10, 2011, 10:50 PM
The Waikato team has determined that the pdf files generated by cups-pdf
in Linux are not well formed (apparently a problem with non-compatible
embedded scripts). They are unreadable in many non-Adobe programs, and
cannot be handled correctly by Greenstone.
However, the pdf files generated by exporting from Open Office (they are
version 1.4 from my Open Office 3.2) seem to be handled fine by my
Greenstone 2.84 using either the standard plugin (based on pdftohtml) or
the PDFBox extension.
Concerning my second point, Waikato explains that PDFBox was not shipped
as standard with Greenstone because of its 20MB size. I asked them
whether it would be possible to cut this extension down in size to
□□□ Best regards, John Rose of Greenstone Team
On 05/04/2011 16:35, John Rose wrote:
> Dear Anupama, as promised in the message to the list below, please find
> attached a sample pdf file which is not handled correctly in Greenstone
> 2.84 (no text extracted without PDF Box, garbled text with it), looking
> forward to your advice, best regards, John
> -------- Original Message --------
> Subject: Re: Re: [greenstone-users] Design and Build of pdf in linux -
> Date: Tue, 05 Apr 2011 16:31:11 +0200
> From: John Rose <email@example.com>
> To: firstname.lastname@example.org, Pier Luigi ROSSI
> 1. I have a problem with pdf files which may be related to Boye's. I
> have Ubuntu 10.04 and have set up cups-pdf to print to pdf files. This
> works fine and generates pdf version 1.3 files which read with Acrobat
> Reader in Ubuntu or in Windows, and no one has complained about them.
> However, when I try to put these files into a collection in Greenstone
> 2.84 GLI, no text is extracted by Greenstone when the collection is
> created. On the other hand, when I try pdf files which came from
> somewhere else, they are handled fine in Greenstone 2.84.
> When I ask about the character encoding in Ubuntu (file -bi filename) it
> says charset=binary in both cases [thus no information about the real
> character set]
> I have tried to see whether I can configure cups-pdf better, but have
> not see how to do thus far. Ideally, Greenstone should handle these
> files if they are well formed, no? I am sending a sample pdf file
> off-list to Anupama.
> Anupama said that the PDF Box extension is mainly for recent versions of
> pdf. Think that it could also help with the above problem, I followed
> the instructions. Now my problem pdf files show text but it is in the
> form "glyph19glyph25glyph27glyph29....". What does this mean?
> 2. It would be interesting to learn whether there is any downside to
> using the PDF Box extension, and if not why it is not included by
> default in Greenstone 2.84. It is certainly very important for
> Greenstone to keep up with extensions of pdf. If I understand correctly,
> the major problems with pdftohtml (fidelity of formatting is often not
> good with the earliest pdf versions) begin with Extension Level 3 of pdf
> version 1.7 (Acrobat 9.0). It would be very useful if list members could
> share their experience with the PDF Box extension.
> Best regards, John
> -------- Original Message --------
>> Content-Transfer-Encoding: 7bit
>> From: Greenstone Team <email@example.com>
>> Precedence: list
>> MIME-Version: 1.0
>> To: Sandton Consulting Ltd <firstname.lastname@example.org>,
>> Anupama of Greenstone Team <email@example.com>,
>> Date: Mon, 04 Apr 2011 17:29:45 +1200
>> Message-ID: <4D995749.firstname.lastname@example.org>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>> Subject: Re: [greenstone-users] Design and Build of pdf in linux -
>> Hello Boye,
>> There's not enough information provided as to the manner in which things
>> are going wrong, but there's 2 things I can think of that you could try
>> (please also answer my questions below).
>> So we know that your Greenstone can work with same PDF files work on
>> Windows, and that they are unable to process these files on Linux.
>> Perhaps your environment is not set up right.
>> - You appear to be using GLI (the Greenstone Librarian Interface
>> application). Are there any errors shown in the output? More detailed
>> error messages would appear if you went to the File menu > Preferences >
>> Mode. Then tick "Expert" and click OK. Rebuild your collection and this
>> time there may be more specific error messages in the build log area of
>> the Create Panel. Can you copy the relevant section of the output (the
>> error messages) and send this to us.
>> - If your Linux system is an Ubuntu and the Greenstone version you
>> happen to be using is 2.83 or earlier, then it may be a problem with
>> Perl. In that case, see suggestion 2 below.
>> 1. Otherwise, try the following first. We're going to try building from
>> the command-line, instead of from GLI (the Greenstone Librarian
>> application), just to check whether it has something to do with the
>> a) Open a linux terminal (x-term) and go into your Greenstone
>> installation folder:
>> $ cd /type/the/full/path/to/your/greenstone/installation/
>> b) Next, set up the Greenstone environment by typing the following in
>> your x-term:
>> $ source setup.bash
>> c) Run the import script -- which is the first step of the build process
>> - and provide the name of collection you wish to build as argument to it:
>> $ import.pl -removeold <type your collection's name>
>> Are there any errors at this stage (check for errors in the text that
>> moves past in the terminal during the execution of the import.pl
>> d) Next run the 2nd step of the build process, once again providing the
>> collection name as argument:
>> $ buildcol.pl -removeold <type your collection's name>
>> Once again, does the output show any errors?
>> e) If all went well, rename the folder "building" inside your collection
>> folder to "index":
>> $ cd collect/<type your collection's name>
>> $ mv building index
>> ! If the above worked for some reason, then the environment GLI runs in
>> when it is launched is different from the environment that the
>> command-line scripts manage to work in.
>> f) If steps d and e above showed up no errors to do with your PDF files,
>> then go back to your Greenstone installation folder and run the
>> Greenstone server from there to visit your collection page:
>> > cd /type/the/full/path/to/your/greenstone/installation/
>> > ./gs2-server.sh
>> This should launch a dialog. Press its central button to go to your
>> Greenstone digital library's home page and from there manoeuvre to your
>> 2. If suggestion 1 above did not work, and your work is urgent, then I
>> think it a good idea for you to try out the latest version of Greenstone
>> (released last Friday): Greenstone 2.84. This latest Greenstone version
>> can work with a plugin extension which makes it cope with later versions
>> of PDF. It may be that doing so will bypass your linux-specific problems
>> of handling the PDFs you have:
>> a) Download the Greenstone 2.84 installer for *Linux* by clicking the
>> link at the top of http://www.greenstone.org/download
>> (or visit http://sourceforge.net/projects/greenstone/ and press the
>> green Download button)
>> b) Then run the installer to install Greenstone2.84. Make sure to
>> install it somewhere else than your previous Greenstone installation.
>> c) Next, point your browser to
>> Click on the small red "download" link on that page and make sure to
>> save this file (the PDF-Box Greenstone extension) into your Greenstone
>> 2.84 installations "ext" folder.
>> d) Use a terminal (x-term) to cd into your Greenstone installation
>> folder and then go into its ext folder where you have saved the tar.gz
>> file downloaded above. Then extract this archive file in this location:
>> $ cd /type/the/full/path/to/your/Greenstone 2.84/installation/
>> $ cd ext
>> $ tar -xvzf pdf-box-java.tar.gz
>> e) Copy your collection folder across from the old Greenstone
>> installation into the new one:
>> $ cp -r
>> /<full/path/to/your/OLD-Greenstone-installation>/collect/<type name of
>> PDF collection> /<full/path/to/your/Greenstone
>> (Note that the folder "collect" is the name of the directory containing
>> your collection which is to be copied. The "collect" folder exists in
>> all normal Greenstone installations, so you need to type it as shown.
>> Just replace the strings inside the <> marks.)
>> f) In a *fresh* terminal (this is important, so make sure to open a
>> brand new x-term), go back to your Greenstone installation folder and
>> run GLI from here:
>> $ cd /full/path/to/your/Greenstone 2.84/installation/
>> $ ./gli/gli.sh
>> The reason you need a fresh x-term is because when GLI is run this time,
>> it will know to set up the Greenstone environment all over again. And
>> this time, it will detect the new PDF Box extension that you downloaded
>> and unpacked in steps c and d.
>> g) Go to File > Open. Click the "Change Dir..." button at the bottom
>> and, in the dialog that appears, make sure it is pointing to the collect
>> folder inside your new Greenstone 2.84 installation. (Else use the
>> Change Dir dialog to go to the Greenstone 2.84 installation's collect
>> directory.) Now open your collection. This should open the collection
>> you copied into your Greenstone 2.84.
>> h) Go into the Design panel. Make sure that on the left hand side,
>> "Document Plugins" is selected. Then, to the right, double click on the
>> PDFPlugin in the list of Document plugins. In the Plugin Configuration
>> dialog that appears, scroll down to the section titled "Autoload
>> Converters" and tick the checkbox next to "pdfbox_conversion".
>> This tells GLI to use the PDFBox extension to process PDF files. This
>> extension to the PDFplugin allows newer PDF versions to be processed as
>> i) Now go to GLI's Create Panel and click the Build button. Hopefully
>> there will be no errors this time and your PDFs will get processed. Then
>> click the Preview button to preview your collection.
>> If you still have problems after trying the above, then, in your next
>> e-mail will you send us the error messages from the build output? And
>> also tell us what version of Greenstone you are using and what
>> particular Linux (Ubuntu for example).
>> Best of luck,
>> > Sandton Consulting Ltd wrote:
>> > Hello ,
>> > We are a company interested in Greenstone Digital library
>> > We have this challenge pdf files in Greenstone linux environment .
>> When we attach pdf files , we go on to Design and build our pdf files,
>> the pdf files are rejected . The same pdf files are accepted
>> > and we build with them in Greenstone for Windows.
>> > Please assist us to solve this problem of Design and Build of pdf
>> files in Greenstone for linux environment.
>> > Please it is urgent.
>> > Thanking you
>> > Boye Adesanya
-------------- next part --------------
An HTML attachment was scrubbed...