Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #1475 > unrolled thread
| Started by | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| First post | 2013-07-18 08:11 +0200 |
| Last post | 2013-07-29 09:05 +0200 |
| Articles | 7 — 3 participants |
Back to article view | Back to comp.lang.postscript
Using eps-files in a ps-file Cecil Westerhof <Cecil@decebal.nl> - 2013-07-18 08:11 +0200
Re: Using eps-files in a ps-file ken <ken@spamcop.net> - 2013-07-18 07:52 +0100
Re: Using eps-files in a ps-file Cecil Westerhof <Cecil@decebal.nl> - 2013-07-18 09:19 +0200
Re: Using eps-files in a ps-file ken <ken@spamcop.net> - 2013-07-18 08:51 +0100
Re: Using eps-files in a ps-file Cecil Westerhof <Cecil@decebal.nl> - 2013-07-18 10:37 +0200
Re: Using eps-files in a ps-file John Deubert <john@acumentraining.com> - 2013-07-25 10:41 -0700
Re: Using eps-files in a ps-file Cecil Westerhof <Cecil@decebal.nl> - 2013-07-29 09:05 +0200
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2013-07-18 08:11 +0200 |
| Subject | Using eps-files in a ps-file |
| Message-ID | <87a9lkmm75.fsf@Aspire.decebal.nl> |
I am including an eps-file in my ps-file with:
(name.ps) run
This works, but I like to put the output from the eps-file somewhere
else on my page. How would I do that?
On a side node. Until now I worked with epstopdf. When using an
eps-file this does not work. I get the following error:
Error: /invalidfileaccess in --run--
I circumvent this now by using gs instead of epstopdf. Is it possible
to still use epstopdf, or not?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [next] | [standalone]
| From | ken <ken@spamcop.net> |
|---|---|
| Date | 2013-07-18 07:52 +0100 |
| Message-ID | <MPG.2c51a0f4ba1270a79898a7@usenet.plus.net> |
| In reply to | #1475 |
In article <87a9lkmm75.fsf@Aspire.decebal.nl>, Cecil@decebal.nl says... > > I am including an eps-file in my ps-file with: > (name.ps) run That's not really the correct way to include an EPS file. > This works, but I like to put the output from the eps-file somewhere > else on my page. How would I do that? You need to scale, position, potentially clip the content of the EPS file, you should save and restore around it, you may want to take action to guard the stacks, etc. The EPS specification can be found here : http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf You need to read section 3 "Guidelines for Importing EPS files" starting on page 13 Ken
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2013-07-18 09:19 +0200 |
| Message-ID | <8761w8mj26.fsf@Aspire.decebal.nl> |
| In reply to | #1476 |
Op donderdag 18 jul 2013 08:52 CEST schreef ken@spamcop.net:
> In article <87a9lkmm75.fsf@Aspire.decebal.nl>, Cecil@decebal.nl
> says...
>>
>> I am including an eps-file in my ps-file with:
>> (name.ps) run
>
> That's not really the correct way to include an EPS file.
That is what I found while googling. :-(
>> This works, but I like to put the output from the eps-file
>> somewhere else on my page. How would I do that?
Now I got this working with translate. Seemed first that it did not
work, but now it does.
> You need to scale, position, potentially clip the content of the EPS
> file, you should save and restore around it, you may want to take
> action to guard the stacks, etc.
>
> The EPS specification can be found here :
>
> http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf
>
> You need to read section 3 "Guidelines for Importing EPS files"
> starting on page 13
I think I understand it, except:
...Included EPS file here...
Or is meant that the EPS file should be merged with the input file?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [prev] | [next] | [standalone]
| From | ken <ken@spamcop.net> |
|---|---|
| Date | 2013-07-18 08:51 +0100 |
| Message-ID | <MPG.2c51aef37b86d15a9898a8@usenet.plus.net> |
| In reply to | #1477 |
In article <8761w8mj26.fsf@Aspire.decebal.nl>, Cecil@decebal.nl says... > > You need to read section 3 "Guidelines for Importing EPS files" > > starting on page 13 > > I think I understand it, except: > ...Included EPS file here... > > Or is meant that the EPS file should be merged with the input file? Ordinarily an EPS file is included as a kind of black box into another document. On the application display you might get a little preview of what it looks like, or you might get some icon. When the document is printed to PostScript (and you can't easily include any EPS when printing to anything else) the EPS file is inserted verbatim at that point. So yes, that's the normal way to do it. In your case however you could just use the "(filename) run" method. Ken
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2013-07-18 10:37 +0200 |
| Message-ID | <87y594l0vb.fsf@Aspire.decebal.nl> |
| In reply to | #1478 |
Op donderdag 18 jul 2013 09:51 CEST schreef ken@spamcop.net: > In article <8761w8mj26.fsf@Aspire.decebal.nl>, Cecil@decebal.nl > says... > >>> You need to read section 3 "Guidelines for Importing EPS files" >>> starting on page 13 >> >> I think I understand it, except: >> ...Included EPS file here... >> >> Or is meant that the EPS file should be merged with the input file? > > Ordinarily an EPS file is included as a kind of black box into > another document. On the application display you might get a little > preview of what it looks like, or you might get some icon. When the > document is printed to PostScript (and you can't easily include any > EPS when printing to anything else) the EPS file is inserted > verbatim at that point. > > So yes, that's the normal way to do it. In your case however you > could just use the "(filename) run" method. At the moment it is all handwritten code. I am using a preprocessor that includes my own libaries. It should not be to difficult to expand it with including the eps files. Wil make things more secure, so a good thing to do I think. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [prev] | [next] | [standalone]
| From | John Deubert <john@acumentraining.com> |
|---|---|
| Date | 2013-07-25 10:41 -0700 |
| Message-ID | <2013072510414793835-john@acumentrainingcom> |
| In reply to | #1479 |
On 2013-07-18 08:37:44 +0000, Cecil Westerhof said: > Op donderdag 18 jul 2013 09:51 CEST schreef ken@spamcop.net: > >> In article <8761w8mj26.fsf@Aspire.decebal.nl>, Cecil@decebal.nl >> says... >> >>>> You need to read section 3 "Guidelines for Importing EPS files" >>>> starting on page 13 >>> >>> I think I understand it, except: >>> ...Included EPS file here... >>> >>> Or is meant that the EPS file should be merged with the input file? >> >> Ordinarily an EPS file is included as a kind of black box into >> another document. On the application display you might get a little >> preview of what it looks like, or you might get some icon. When the >> document is printed to PostScript (and you can't easily include any >> EPS when printing to anything else) the EPS file is inserted >> verbatim at that point. >> >> So yes, that's the normal way to do it. In your case however you >> could just use the "(filename) run" method. > > At the moment it is all handwritten code. I am using a preprocessor > that includes my own libaries. It should not be to difficult to expand > it with including the eps files. Wil make things more secure, so a > good thing to do I think. The November 2004 Acumen Journal has an article that covers this in detail (entitled, cleverly, "Using EPS Files in Handwritten PostScript Code"). It's available free for the downloading at http://www.acumentraining.com/acumenjournal.html - John -- ======== John Deubert Acumen Training PostScript & PDF Engineering Classes & Consulting www.acumentraining.com Learn PostScript programming techniques Read the free Acumen Journal acumentraining.com/acumenjournal.html
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2013-07-29 09:05 +0200 |
| Message-ID | <87ioztq20a.fsf@Aspire.decebal.nl> |
| In reply to | #1509 |
Op donderdag 25 jul 2013 19:41 CEST schreef John Deubert: > On 2013-07-18 08:37:44 +0000, Cecil Westerhof said: > >> Op donderdag 18 jul 2013 09:51 CEST schreef ken@spamcop.net: >> >>> In article <8761w8mj26.fsf@Aspire.decebal.nl>, Cecil@decebal.nl >>> says... >>> >>>>> You need to read section 3 "Guidelines for Importing EPS files" >>>>> starting on page 13 >>>> >>>> I think I understand it, except: >>>> ...Included EPS file here... >>>> >>>> Or is meant that the EPS file should be merged with the input >>>> file? >>> >>> Ordinarily an EPS file is included as a kind of black box into >>> another document. On the application display you might get a >>> little preview of what it looks like, or you might get some icon. >>> When the document is printed to PostScript (and you can't easily >>> include any EPS when printing to anything else) the EPS file is >>> inserted verbatim at that point. >>> >>> So yes, that's the normal way to do it. In your case however you >>> could just use the "(filename) run" method. >> >> At the moment it is all handwritten code. I am using a preprocessor >> that includes my own libaries. It should not be to difficult to >> expand it with including the eps files. Wil make things more >> secure, so a good thing to do I think. > > The November 2004 Acumen Journal has an article that covers this in > detail (entitled, cleverly, "Using EPS Files in Handwritten > PostScript Code"). It's available free for the downloading at > > http://www.acumentraining.com/acumenjournal.html I already have written the preprocessor, but I will read this and other journals. They look interesting. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.postscript
csiph-web