[CentOS] pdfmerge and ghostscript-8.70-6.el5_7.6.x86_64 - Solution

Tue Feb 7 02:12:41 UTC 2012
Gregory P. Ennis <PoMec at PoMec.Net>


It looks like pdfmerge is broken after the recent upgrade of gs to
ghostscript-8.70-6.el5_7.6.x86_64.  Has anyone else had this problem. I
have just started trying to debug it.  If any of you already have
solutions please let me know.


Greg Ennis

Here is a little more information :

#/usr/bin/pdfmerge /tmp/gpe/xyzaaa.pdf /tmp/gpe/xyzaab.pdf /tmp/gpe/xyzaac.pdf /tmp/gpe/xyz.pdf
Error: /invalidfileaccess in --run--
Operand stack:
   (.//tmp/gpe/xyzaaa.pdf)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1846   1   3   %oparray_pop   1845   1   3   %oparray_pop   1829   1   3   %oparray_pop   1723   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1846   1   4   %oparray_pop   --nostringval--
Dictionary stack:
   --dict:1151/1684(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--   --dict:75/200(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 330
GPL Ghostscript 8.70: Unrecoverable error, exit code 1

I am running pdfmerge witten by F.B. Casse, but it looks like microtronyx.com no longer exists.  
If any of you have any ideas I would sure appreciate your efforts.  The
module I need to get repaired takes a hp pcl file and converts it to a
tif file, and then single pages of the tif file, and then converts each
single page tif file to a single page pdf file.  pdfmerge then combines
all the pdf single page files into a multi-page pdf file.  
Everything has worked until the recent update of ghostscript.

I really need this to work so if any of you know who is supporting
pdfmerge or have other ideas please help.

pdfmerge --help
This is pdfmerge4unix version 1.0-2. pdfmerge4unix is a command line utility program that merges pdf files in unix-based platforms

Syntax:  pdfmerge file1.pdf file2.pdf... fileN.pdf outfile.pdf

            --help                  displays this brief help; same as -h
Author:    Didier F.B Casse <didier at microtronyx.com>
URL:       http://www.microtronyx.com/pdfmerge4unix


I was able to bypass the use of pdfmerge with pdftk.  pdftk does a pdf
merge without mishap.  It looks to me that pdfmerge is now broken,  

Hope this helps everyone else.

Greg Ennis