Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-06-2011, 09:03 AM   #1
LQ Newbie
Registered: Jul 2011
Posts: 10

Rep: Reputation: Disabled
combine 4 page to singe page

I want to combine 4 ps(or pdf) page to single page and for this i have try a2ps command as:

a2ps -4 -o

Event through it divide the page into four section. But only give one output of my four input. other three section is blank. Is i am doing some wrong or Is their any other command to do so.

I am thankful for your help.

Old 07-07-2011, 01:39 AM   #2
Registered: Jan 2007
Location: Alberta Canada
Distribution: Fedora/Redhat/CentOS
Posts: 68

Rep: Reputation: 19
You may the input files at the end of the command, like:

a2ps -4 -o

Or, the input files may need to be combined into one file before using a2ps. Like:

cat >>
cat >>
cat >>

Then run a2ps on the file:

a2ps -4 -o

A 'for' loop could be used to combine the files as well.

Last edited by anotherlinuxuser; 07-07-2011 at 01:52 AM.
0 members found this post helpful.
Old 07-07-2011, 02:23 AM   #3
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If you wish to concatenate several files into one, you may want to use Ghostscript (gs) for that. If you want examples, see for example this thread. It's not difficult, you just tell ghostscript the output file, device (how to write the output, for example pdf or ps), perhaps some other settings if you need to, and the input files. See if you have the psmerge script available.
0 members found this post helpful.
Old 07-07-2011, 04:50 AM   #4
LQ Newbie
Registered: Jul 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks <anotherlinuxuser> it works.

Last edited by seismo18; 07-07-2011 at 05:28 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HP deskjet 940c on linksys printserver prints alternating good page and bad page frogger Linux - Hardware 2 03-14-2011 02:54 PM
EasyIDS help, no TCP traffic on NTOP page, no activity at all on base/snort page a2brute Linux - Distributions 6 08-14-2009 09:29 AM
Dell Inspiron 8100: No scancodes from Page Up Page Down keys twosider Linux - Laptop and Netbook 1 10-18-2005 09:41 AM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM
RH & HP4050N PCL - page, pause, page, pause, page andguent Linux - Hardware 0 11-10-2003 08:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration