I have written a C++ program to generate multi-page PS file, and it
reads raw data(strings) from database table and graphics file(s) from
local drive and then generates PS file with all necessary resources.
While generating main PS file I copy the eps file contents and put
them in main PS file. As my EPS files are big in size and repeated
several times on multiple pages ( for example background graphics) and
the copying of eps to PS is taking lot of time and bloats main PS file
size. Is there any other way to create main PS file without copying
the eps file repeatedly? I mean I would like to copy each file type
only once to main PS file and then reference that section(copied EPS
content) in main PS file. I looked at “Encapsulated PostScript File
Format Specification”(
http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf’) and could not figure out how to do it.