LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-13-2006, 03:35 PM   #1
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
ps2pdf bounding box & page size problem


I'm trying to scan some documents so I can throw away my paper copies. I've sucessfully scanned the documents to PostScript format, and the files have a bounding box. If I open the files in evince, the page size is correct - it shows just the scanned image.

However, when I run ps2pdf to convert it to pdf (because it's *much* smaller as a pdf, I think due to image compression), when I open the resulting pdf in evince, it's put it on what looks like an A4 page.

Two questions:

1. Why isn't ps2pdf paying any attention to the BoundingBox directives?
2. How can I fix it?

Regards
David Gee
 
Old 06-13-2006, 07:05 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
does ps2pdf -sPAPERSIZE=letter myfile.ps make any difference ?
 
Old 06-14-2006, 02:37 AM   #3
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Original Poster
Rep: Reputation: 30
Yup, that does work but it's not what I'm after. Because the PS document is coming from a scan, it's not always a regular paper size, as sometimes I only need to scan part of a document. What I'm after is an option that will read the bounding box from the PS file and convert it into the PDF page size.
 
Old 06-14-2006, 11:02 PM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
From all the info I have seen ps2pdf is SUPPOSED to default to letter size paper, so the first thing I have to say is I have no idea why yours wasn't... I did not find anything that mentioned a way for ps2pdf to automatically select the size of paper based on the document size. Interesting thought though..

maybe you can parse the ps file for the page size using a script then insert that size into the -sPAPERSIZE= field....
 
Old 11-21-2007, 10:39 AM   #5
zmi007
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 1
-dEPSCrop can probably help you
 
1 members found this post helpful.
Old 11-24-2007, 01:36 AM   #6
saegeas
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by zmi007 View Post
-dEPSCrop can probably help you
yep! many thanks zmi007
 
  


Reply

Tags
pdf, postscript


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
Samba & PS2PDF Slacktastic Linux - Newbie 0 05-20-2006 06:29 PM
Network Bounding cemzafer Linux - Networking 2 05-01-2006 01:48 PM
Re-partition hd size & usb problem tanchu Linux - Newbie 3 08-07-2005 02:52 PM
K3B Problem & File Size David@330 Linux - Newbie 0 08-30-2004 03:13 AM
RH & HP4050N PCL - page, pause, page, pause, page andguent Linux - Hardware 0 11-10-2003 09:35 AM


All times are GMT -5. The time now is 07:00 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration