LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Search this Thread
Old 06-13-2006, 02: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


[Log in to get rid of this advertisement]
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
 
Tag This Post , ,
Old 06-13-2006, 06:05 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: Debian Lenny / Squeeze / Sid
Posts: 7,217
Blog Entries: 5

Rep: Reputation: 176Reputation: 176
does ps2pdf -sPAPERSIZE=letter myfile.ps make any difference ?
   
Old 06-14-2006, 01: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, 10:02 PM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: Debian Lenny / Squeeze / Sid
Posts: 7,217
Blog Entries: 5

Rep: Reputation: 176Reputation: 176
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, 09:39 AM   #5
zmi007
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
-dEPSCrop can probably help you
   
Old 11-24-2007, 12: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


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba & PS2PDF Slacktastic Linux - Newbie 0 05-20-2006 05:29 PM
Network Bounding cemzafer Linux - Networking 2 05-01-2006 12:48 PM
Re-partition hd size & usb problem tanchu Linux - Newbie 3 08-07-2005 01:52 PM
K3B Problem & File Size David@330 Linux - Newbie 0 08-30-2004 02:13 AM
RH & HP4050N PCL - page, pause, page, pause, page andguent Linux - Hardware 0 11-10-2003 08:35 AM


All times are GMT -5. The time now is 02:15 AM.

Main Menu
 
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.
Free Publications
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration