Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 12-13-2005, 01:32 PM PHP and Ghostscript
Average Talker

Posts: 23
Trades: 0
Has anyone used ghostscript with php or something else to convert ps to pdf or eps?
tobeyt23 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-13-2005, 02:09 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
I've not done it directly with PHP - sounds like way too much hard work. What platform are you doing this on? Windows/Unix? Unix/Linux systems may well have a program installed called ps2pdf that will convert for you. You can execute this program on the server using the PHP exec() function.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 12-13-2005, 03:33 PM
Average Talker

Posts: 23
Trades: 0
i am designing on windows but will place on a linux system for production. I am designing a site where individuals can order business cards and need to generate online image and export eps files for printing.
tobeyt23 is offline
Reply With Quote
View Public Profile
 
Old 12-13-2005, 06:06 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
You can get versions of ps2pdf that install as a command line tool under windows, should work the same as on linux hopefully.

To convert ps to eps should be as easy as adding the bounding box information to the top of the file - ps files are just ASCII files so you can do this very easily with PHP. Your mileage may vary depending on where the ps file was exported from and who is going to open it, since different software packages add varying amounts of application specific crud to their postscript output.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)

Last edited by 0beron; 12-13-2005 at 06:08 PM..
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Reply     « Reply to PHP and Ghostscript
 

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18755 seconds with 12 queries