home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / colorspc.zip / FIXPDF4A.TXT < prev    next >
Internet Message Format  |  2001-11-27  |  2KB

  1. Date: Thu, 24 May 2001 09:34:49 -0700
  2. To: "Dr. Jeffrey Race" <jrace@attglobal.net>
  3. From: <removed at sender's request>
  4. Subject: Re: IBM Redbook problem
  5.  
  6. This is a free Windows command-line program. It removes one specific 
  7. backward-compatibility problem between Acrobat 4 Distiller and Acrobat 3 
  8. Reader. The symptom of this problem is the message "Could not find the 
  9. ColorSpace named 'Cs9'" or Cs6, etc.
  10.  
  11. The program will either leave your PDF file unchanged, or will do minimal 
  12. changes to remove this specific problem. If it helps you, great. If your 
  13. PDF file has any other problem or uses any other Acrobat 4 (PDF 1.3) 
  14. feature, it won't help that.
  15.  
  16. Disclaimer: This program is not sponsored by my employer. It was written 
  17. from the language description in the PDF Reference Manual, and contains no 
  18. Adobe source code, libraries, or other technology. It is 500 lines of C 
  19. that I wrote it one weekend to solve a specific problem I had.
  20. --------------------
  21.  
  22.  
  23. Usage: fixpdf4 <input PDF file name> [<output PDF file name>]
  24.     Default output for foo.pdf is foo3.pdf
  25.  
  26. /***
  27.  
  28. This converts foo.pdf from PDF-1.3 to PDF-1.2, removing the "Cs6" problem
  29.  
  30.    Could not find the ColorSpace named 'Cs6'.
  31.  
  32. input:
  33.    PDF file with gratuitous iccbased color profile
  34.  
  35. output:
  36.    PDF file without gratuitous iccbased color profile
  37.  
  38.     1. find each "[ /ICCBased xxx yyy R ]",
  39.     2. find object xxx yyy obj<< /N 3 /Alternate /DeviceRGB ...
  40.     3. If N==1, replace "[ /ICCBased xxx yyy R ]" with "/DeviceGray"
  41.        If N==3, replace "[ /ICCBased xxx yyy R ]" with "/DeviceRGB"
  42.        If N==4, replace "[ /ICCBased xxx yyy R ]" with "/DeviceCMYK"
  43.     4. Use enough blanks to exactly preserve length, thus no need to update 
  44. xref table
  45. ***/
  46.  
  47.  
  48.