LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-02-2009, 12:07 AM   #1
aussierob
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
embed an EPS file into a PS file


Hi there,

I realise the an eps file is a ps file with reduced command set and a bounding box.

I create PS files and want to place a common graphic in many, so made an EPS of the graphic and want embed it into the PS.

I presume I insert some lines in the file.ps and insert the file.eps
in between those lines,
but I cannot find out how to do it.

Any advice would be much appreciated.
Regards Robert
 
Old 10-01-2009, 01:42 AM   #2
Caballero del norte
Member
 
Registered: Apr 2007
Location: Sonoran Desert, USA
Distribution: Ubuntu 8.04
Posts: 30

Rep: Reputation: 16
Because this question has been here so long I will give an inexpert suggestion:

Create your files in OpenOffice.org Writer rather than as a raw PS*file. If you need to use a PS*file, you may wish to open it in a graphics program and save the image in a way that you can use it in Writer.

Where you want to insert EPS files, Insert > Picture > From file and select the EPS file.

Save your file in OpenOffice.org and then File > Export to PDF.

(There probably is also a simple way to edit PS files for this... but I know very little about PS.)
 
Old 10-01-2009, 09:31 AM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Although you can just use '%%BeginDocument:' and '%%EndDocument', it takes some work to preserve the state around an inlined eps file. If you are writing PostScript directly, you can use the Astigmatix functions to do this for you, typically like this:

Code:
{ StatEPSF 100 100 0 1 1 ReadyEPSF ExecEPSF }
currentfile exch exec
%%BeginDocument:
   inlined eps code
%%EndDocument
Of course, if you are using something like LaTeX to produce the postscript file, you can just do

Code:
\usepackage{graphics}
...
\includegraphics{file.eps}

Last edited by neonsignal; 10-01-2009 at 09:50 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
transferring .eps file saray Linux - Software 12 05-21-2009 08:09 PM
how to embed .wmv video file in site krunalpatel LinuxQuestions.org Member Intro 0 03-06-2009 04:44 AM
Embed File into Image (rar?) swatward Linux - Software 5 01-14-2008 05:57 AM
how to add text to eps file? markhod Linux - General 1 07-05-2005 11:49 PM
How to play a media file/ video file/mp3 file recorded in harddisk/cd-rom arindam Linux - Newbie 2 09-05-2003 10:31 AM

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

All times are GMT -5. The time now is 04:21 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