LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-06-2011, 09:03 AM   #1
seismo18
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 1.ps 2.ps 3.ps 4.ps -o outfile.ps

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.

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

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

a2ps -4 -o outfile.ps 1.ps 2.ps 3.ps 4.ps

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

cp 1.ps stage1.ps
cat 2.ps >> stage1.ps
cat 3.ps >> stage1.ps
cat 4.ps >> stage1.ps

Then run a2ps on the stage1.ps file:

a2ps -4 stage1.ps -o outfile.ps

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
b0uncer
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
seismo18
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:16 AM.

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