2009/5/22

Linux PDF editor for manipulating PDF documents

Adobe Acrobat is a commercial tool for manipulating PDF files. Earlier I was using CUPs - printing system, to export PDF files. I've also tried out gv for the same purpose. However, I needed complete editing of pdf documents. My search ended with PDFedit software, which is free and open source editor for manipulating PDF documents. The software available in both GUI and CLI (commandline) interface.

Install PDFEdit

  • Mandriva Linux

urpmi pdfedit

  • Ubuntu Linux

sudo apt-get install pdfedit

Reference: http://www.cyberciti.biz/tips/open-source-linux-pdf-writer.html

How to put variable in sed command

I declare a variable in bash

VALUE=dance

How to put it in sed command like that:

sed 's/hop/$VALUE/' filename

Solution:

sed 's/hop/'"$VALUE"'/' filename

OR

sed 's/hop/'$VALUE'/' filename

Two method are worked.

2009/5/11

MPICH2: the md5 module is deprecated

Due to Mandriva 2009 upgrade to Mandriva 2009 spring, as you type mpd&
You will get like this message:
The popen2 module is deprecated.
the md5 module is deprecated; use hashlib instead from md5

please refer to this article : http://trac.mcs.anl.gov/projects/mpich2/attachment/ticket/362/mpd_deprecated_workaround.patch

or
edit
mpdlib.py
add
*************************************************************
import warnings
warnings.filterwarnings('ignore', '.*the md5 module is deprecated.*', DeprecationWarning)
warnings.filterwarnings('ignore', '.*the popen2 module is deprecated.*', DeprecationWarning)
****************************************************************