PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________


Secondly, to take my mind of encryption for a little while,
I'm trying to
embed an EPS file into my PDF.  Does anyone have a simple
sample of how to do this?

It isn't a sample, it's a process. Distill to PDF, convert the PDF page to a form XObject, merge the form XObject onto the target page.

The attractive sounding PostScript XObject should be avoided
like the plague.


Its easy to embed PostScript as an XObject:


104 0 obj  <<^M
/Length XXX^M
/Type /XObject^M
/Subtype /PS^M
>>^M
stream^M
/bar { pop } def bar %% more PS stuff goes here
 end ^Mendstream^Mendobj^M

In your /Resources you will define a name in the XObject dictionary, e.g., /PS1 104 0 R.

Then in the content stream you use Do to invoke it: /PS1 Do

Understand a couple of things: 1) Only some PostScript RIPs (Adobe, Harlequin, Creo, or any other Adobe-based RIP) will support this - a PDF RIP, e.g., OSX Quartz-based, may not because it interprets the PDF directly instead of converting it to PostScript first. 2) The context of the PostScript interpreter state at the time the Do command is executed may not be what you would expect relative to the PDF Graphic State. 3) You will not see any marking done by the PostScript in a PDF viewer.

This is only horrible practice if you do things this way you could better be doing in PDF. Unfortunately, there are things in this world that can ONLY be gotten down by doing this...

Todd



To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html



Reply via email to