title: Encapsulated poscript max line limit
body: <p>I think that I'm exceeding EPS max line limits:
  I'm generating an eps programmatically that consists of a grid of pictures.
  My EPS has this structure: </p>
  
  <pre><code>%!PS-Adobe-3.0 EPSF-3.0
  .
  .
  %%BeginProlog
  %%EndProlog
  %%Page: 1 1
  %%Begin Raster Image. Index: 0
  save
  449 2576 translate
  0 rotate
  -282 -304 translate
  [1 0 0 1 0 0] concat
  0 0 translate
  [1 0 0 1 0 0] concat
  0 0 translate
  userdict begin
  DisplayImage
  0 0
  564 608
  12
  564 608
  0
  0
  
  FBDBB9FBDCBCFDDBBAFFD8B2FFD7A9FED4A1FCD29CFDD09EFED0A2FFD0A6FFCDA3FFCBA0FFCBA0...
  EED79CEBD09CEDD19EEED2A1EFD3A3F0D4A5F0D4A6F0D4A7F1D4A4F3D4A0F3D49F
  end
  restore
  %%End Raster Image
  %%Begin Raster Image. Index: 1
  .
  .
  end
  restore
  %%End Raster Image
  %%Begin Raster Image. Index: 2
  etc
  </code></pre>
  
  <p>So the thing is if I write up to 4 images to the EPS, everything works fine, but when I try to write a 5th, the eps won't open on any EPS viewer including Adobe Illustrator (the operation cannot complete because of an unknown error).
  I tried using different images to make sure that the particular images were ok and I got the same result, as long as I'm writing 4 images (105825 lines file) everything works. But when I use 5 (132253 lines file) it fails.</p>
  
  <p>Is it possible that I'm exceeding the maximum line limit for EPS?
  This are the files in question if you'd like to analyze them:
  the one that works - ><a href="https://files.fm/u/bfn2d32m" rel="nofollow noreferrer">https://files.fm/u/bfn2d32m</a> and the one that doesn't ->
  <a href="https://files.fm/u/4gbybr3y" rel="nofollow noreferrer">https://files.fm/u/4gbybr3y</a> </p>