creating pdf file with four pages


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users creating pdf file with four pages
# 1  
Old 09-29-2011
creating pdf file with four pages

I have some code in fortran90, example stored in scode.f90 and I want to create a pdf containing the code. I would like to have four pages of code put into each page in the pdf. I was thinking of creating a ps file using mpage and then using ps2pdf after. However, I noticed that ps2pdf shift the page to the top edge instead of keeping the margins.
# 2  
Old 09-29-2011
There is a postscript command to move the origin. Does 'mpage' invert the cursor so that (0,0) is the top left corner of the page, instead of the bottom left.
Can you post the postscript file?
# 3  
Old 09-29-2011
I am thinking of trying to convert the file to ps first and then use psnup to have four pages in one page

---------- Post updated at 08:34 PM ---------- Previous update was at 08:28 PM ----------

Seems to work fine in Ubuntu. Tried it on Fedora and got the problem
# 4  
Old 09-29-2011
I don't have access to mpage, but what does a pdf file look like if you use the -1 option (1 page per page) in mpage, and then convert that with ps2pdf. Do the margins stay?

---------- Post updated at 09:41 PM ---------- Previous update was at 09:41 PM ----------

Check the release numbers?
# 5  
Old 09-29-2011
Hmmm. I can check the release.

---------- Post updated at 08:48 PM ---------- Previous update was at 08:45 PM ----------

Doing mpage -1 is fine

Last edited by kristinu; 09-29-2011 at 11:01 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Gs to split a pdf into multiple pages

Hello, Some googling and checking the man pages told me it should be possible to split a pdf (or ps) file into individual pages : man gs You might want to print each page separately. To do this, send the output to a series of files "foo1.xyz, foo2.xyz, ..." using the "-sOut-... (3 Replies)
Discussion started by: jossojjos
3 Replies

2. Shell Programming and Scripting

Merging pdf and creating chapter using shell

Does anyone know how to create chapter in pdf I have 3 pdf, each pdf contains about 25 pages, I want to create 3 chapter in single pdf, and inside each chapter I want to give link to main index whether it's possible in ubuntu 12.04 64-bit OS ? I usually use pdftk for merging pdf don't... (0 Replies)
Discussion started by: Dona Clara
0 Replies

3. UNIX and Linux Applications

Creating pdf with bookmarks using ps2pdf ??

Hello to all, I have a *.ps file, which needs to be converted to a pdf file. The file is huge & i would like it to have bookmarked according to main titles (already provided). What is the option used in ps2pdf command, that will generate bookmarks from a *.ps file ? Kindly help. Thanks. ... (0 Replies)
Discussion started by: frozensmilz
0 Replies

4. Shell Programming and Scripting

[Example] View man pages as pdf

This is a simple example of a shell script. I made it because it's sometimes convenient to search through a manpage and to have access to the terminal while you're reading (maybe to test code). It also serves as a basic example for anyone learning shell scripting. #!/bin/sh nm="/tmp/$1.pdf"... (0 Replies)
Discussion started by: CRGreathouse
0 Replies

5. Shell Programming and Scripting

how to get number of pages in a PDF file

Hello, Can anyone please help me providing script to get the number of pages in a PDF file? TIA Prvn (8 Replies)
Discussion started by: prvnrk
8 Replies

6. UNIX for Dummies Questions & Answers

man pages creating

Hi, I wnat to create my own man pages, but I can't find a good description of the troff language. Knows somebaody a good docu including examples?? Thx Bensky (2 Replies)
Discussion started by: bensky
2 Replies

7. UNIX for Dummies Questions & Answers

Updating and Creating Web pages wiht Unix

I am new to Unix and would like to update a website as well as add new content to the site but it must be done with UNIX. Can anyone give me some pointers as to what types of references are on the web or maybe even some basic commands? Thanks so much! (1 Reply)
Discussion started by: gsensebe
1 Replies
Login or Register to Ask a Question