I am creating a 10000 page postscript file using Apache FOP containing only a person's name per page. I am given a large (4MB) EPS file which should be added to the background of each page. I should create a single output postscript file for printing. Although I can embed the EPS in every page of my postscript (as described in EPSF_SPEC [1]), I would like to embed it once and reference it. Otherwise, 4MB are added for each output page and the final output postscript is huge. Is it possible to do this in postscript ? If yes how ?
I already looked at [2]. I also created them as PDF and added the background once using iText. The size was small but when I converted it to PS using Ghostscript, the size was too large. Finally, FOP can only add the EPS file inline, even when configured with optimize-resources=true.
[1] http://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf