Quantcast
Channel: Adobe Community : Discussion List - Acrobat Reader
Viewing all articles
Browse latest Browse all 61627

PDF from postscript (ps2pdf) displays "Insufficient data for an image" error in Reader

$
0
0

Hello,

 

I'm not fully confident this is the best place for this, but I'll start here. Note that this is NOT the same as the issue that was recently fixed in Reader 11 (found at http://helpx.adobe.com/acrobat/kb/insufficient-data-image.html)

 

I am using the command "ps2pdf" (using Ghostscript) to convert postscript files to PDF. To get better quality, I use the ps2pdf options "-dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode", which force lossless encoding for color images. However, there are images on certain pages that yield the error "Insufficient data for an image" when opened in Adobe Reader XI (current version), and the image on that page is not viewable (or rather, it can be viewed, but only until you get the whole image on the screen; then the image disappears). If the PDF is printed, the image will not print. The error also occurs in Acrobat 9.4.0, and possibly other versions. However, Reader 8 displays the files with no issues. Also, Foxit reader displays the PDF files fine.

 

The postscript files are screenshots generated by the user dragging a box to define the area of the screen to be printed to file. This issue only occurs for some size boxes that the user draws; others come out fine and are read by Reader just fine.

 

This only happens when using FlateEncode; using lossy JPEG compression (e.g. the default ps2pdf output) does not yield files that produce the error.

 

Here are some example files to demonstrate the issue (hey, maybe the issue is not even reproducible for other people! That would be helpful to know if true, so even if you can't help solve the problem, if you could verify whether this issue occurs when you open one of these files in Reader or Acrobat, it would awesome).

 

If anyone has any ideas on this issue, I would greatly appreciate it. Or if you think this isn't the right place for this, and perhaps know of a better place for my question, I'd appreciate that too. Thanks!

 

Additional possibly relevant information:

  • ps2pdf is being run using Ghostscript 8.15 on Unix Solaris 10. I also ran the same postscript files through ps2pdf (again using Ghostscript 8.15) on a Windows 7 machine, and the resulting PDFs did not exhibit the same errors when opened in Reader or Acrobat.
  • Adobe Reader 8 and 11, and Foxit were run on Windows 7. Acrobat 9.4.0 was run through a Citrix server, and I'm not sure what version of Windows it runs on.
  • I tried lots of different options in ps2pdf, and also tried running the postscript through ghostscript directly (using the "gs" command). Nothing was able to eliminate the error without resorting to using lossy JPEG compression.
  • I am now using lossy (but fairly high quality) JPEG compression in the workflow, accepting the loss in quality and (paradoxically) doubled filesize of the JPEG-compressed PDF files, so I'm really just pursuing this to figure out what the heck is going on, not because it is mission critical.
  • Postscript files used to create the above pdfs:
  • The .ps files are very similar to each other, differing only in the image content and the image location/translation.
  • The postscript files give multiple warnings/errors when opened in gsview (this happens with all .ps files created by Pinnacle, not just the ones giving me issues).
  • The program that is used to create the postscript files is Philips (Adac) Pinnacle^3, a treatment planning system for radiation oncology.

Viewing all articles
Browse latest Browse all 61627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>