Thursday, February 27, 2014

PDF not working in Greenstone

If some of your PDF files cannot be built on greenstone, then they are some ways that you may use to solve your problem

1. Install the pdb-box plugin, for Greenstone 2.85 please have a look here
2. Convert your PDF to a lower version 1.5 or 1.4. Have a look here on how to proceed.

If you still have a problem or has found a better solution please drop a comment.

pdf-box plugin for greestone 2.85

I have noticed that they are many version of pdf-box plugin available out there. If by mistake you install a wrong one your Librarian Interface may fail to start. If you have greenstone 2.85 installed , you can try the plugin available in the following link. At least at the time of writing of this post, it was working properly.
I you have any further problem, knock me and will happy to help.

Note: You should put the extracted pdf-box in the ...\Greenstone\ext and restart the server.

Now that you've installed the PDFBox extension, this will be available as an option in the plugin's configuration dialog. To turn on the PDFBox extension for any collection you open in GLI, you would go to the Design panel, select Document Plugins from the left and on the right, double click the PDFPlugin (alternatively, select this plugin and click the <Configure Plugin...> below) to open the dialog to configure this plugin. In the Configure Plugin... dialog, scroll down to the section AutoLoadConverters and select the checkbox next to the pdfbox_conversion option. Click OK to close the dialog, switch to the Create panel and rebuild your collection. This time, PDF files will be processed by PDFBox which will extract their text.
Try this feature out on a collection of recent PDF files, by configuring its PDFPlugin with the pdfbox_conversion option turned on.

Wednesday, February 26, 2014

Change PDF version : Converting a PDF from one version to another

Are you having hard time trying to convert your PDF file from one version to another ? It is a common scenario with some software not accepting the latest version of PDF. I faced a similar probelm working a Greenstone library software which could only process at most the version 1.4.
No matter what you are going through this post is going help you move on with your task.

1. Download PDFCreator, don't panic as far as I know it is free.
    Jsut install it and it is straight forward.

2. Check the version of your PDF version
    Open the file with a pdf reader like acrobat ---> File --->Properties.
 
As you can see the version of this file is 1.6, so we have to convert it to lower one. 

3.  Launch PDFCreator:
   You will have the following small interface.
Click on Add and brwose to the file location. and you will get a pop window
4. Wait for 1 to 2 minutes you will get another windows
5. Click on Options :
 The button at the bottom center. And follow.

6. Click on Format:
 At the left side you see format, under click PDF.
Then at the right side set the Default settings (Ebook for my case),
Under compatibility choose your desired version (In my case i chose Adobe Acrobat 5 (PDF 1.4)).
Click on save and wait for a while. Your converted pdf will pop up.
Just save it and enjoy.
 Sorry for being long, I will try to come up with another short and better way on the matter in another post, till then stay tuned.
Aurevoir !!!!!!!

Tuesday, February 25, 2014

Production tips#5 : Glassfish Master Password

What is the master master password often referred to in Glassfish ? In this post I sharing with you some of the basic points regard the master password that can help you to administer your server confidently.

The master password is a password that is used to encrypt the DAS or Domain Administration Server and the instances keystores (IKS). The DAS and IKS used it to open instances at startup.
Another point worth mentioning is that the master password is not transmitted over the network nor is it used for authentication.
It is saved for the DAS and all the  instances in the domain. Contrary to what you may have in mind, the default master password is 'changeit' and not 'adminadmin'
For each domain like domain1 is it located inside  C:\glassfishv3\glassfish\domains\domain1
cmd: asadmin> create-domain  --savemasterpassword domain1

Start a domain:
asadmin> start-domain domain1

stop a domain:
asadmin> stop-domain domain1

You will have noticed that you are not prompted to enter the master password when it is starting the DAS just because it has been saved.

Change master password for a domain:
asadmin> change-master-password --savemasterpassword domain1

Delete a domain:
asadmin> delete-domain domain1


Monday, February 24, 2014

Production tips#4 : Create a secured domain in Glassfish console and assign it to the GUI in netbeans

What is really the issue here ?
Suppose you want to have your Netbeans IDE and an embedded Glassfish server GF attached to it. By default the web administration console page is not password protected. If you go directely to the web admin console page and change the admin password and hope it to work chances are that you will disappoint yourself. 
If that is the case then what to do ?
1. Go to the command prompt and navigate into the C:\glassfishv3\glassfish\bin.
   Clik on asadmin.bak
    or cd C:\glassfishv3\glassfish\bin
C:\glassfishv3\glassfish\bin> asadmin [ENTER]
asadmin > create-domain --adminport 5555--savemasterpassword domain3
 Follow the shell instruction it is interactive but enter your admin username, admin password and master password (at least 6 characters )
2. Assign the domain we just created to GUI so that we don't need to use the command line or asadmin shell  every time for the server administration.
 Go to Netbeans --> Services -->Servers :
        Right click Servers and Add a Glassfish server
 
Click Next  -->Next  and you are here
 Specify the same domain name you created previously : domain3
 
Finish and Restart you IDE, you can now visit the admin web console page by just right clicking the server name and click View Domain Admin Console  like here below
 Congratulation you just did it, feel to comment ...