VERIFIED SOLUTION i
X

ICMA Vault resource.ps customizations

UPDATED: October 18, 2017


According to Engineering, there is some custom code in Vault specifically for ICMA.  This code converts black and white Postscript into colour on the fly.

It makes use of functions defined in resource.ps.  Resource.ps contains a list of b/w resources that are looked for when a document is rendered, and then they are converted to color using RGB values.

If the document contains resources that are missing from this file, they can get Ghostscript related errors like this example (below) and the page will not display:

09:18:42 127.0.0.1:4364 <render1> Error: /undefined in bar0d587997
09:18:42 127.0.0.1:4364 <render1> Operand stack:
09:18:42 127.0.0.1:4364 <render1>    --nostringval--
09:18:42 127.0.0.1:4364 <render1> Execution stack:
09:18:42 127.0.0.1:4364 <render1>    %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1905   1   7   %oparray_pop   1904   1   7   %oparray_pop   1888   1   7   %oparray_pop   1771   1   7   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
09:18:42 127.0.0.1:4364 <render1> Dictionary stack:
09:18:42 127.0.0.1:4364 <render1>    --dict:1150/1684(ro)(G)--   --dict:0/20(G)--   --dict:85/200(L)--   --dict:45/89(L)--   --dict:45/89(L)--   --dict:74/160(L)--   --dict:94/156(L)--
09:18:42 127.0.0.1:4364 <render1> Current allocation mode is local
09:18:42 127.0.0.1:4364 <render1> Current file position is 102858
09:18:42 127.0.0.1:4364 <render1> ERROR 97002: unable to start Ghostscript, code [-100]


Solution is to add the relevant entry to the resource.ps as specified below:


/pie0d0980072 { [/DeviceRGB]  cs 0.00391 0.17969 0.38672 sc } def
/pie0d800003 { [/DeviceRGB]  cs 0.93750 0.66797 0.14063 sc } def
/pie0d298004 { [/DeviceRGB]  cs 0.00391 0.41797 0.30859 sc } def
/pie0d600006 { [/DeviceRGB]  cs 0.35156 0.59766 0.78906 sc } def
/pie1        { [/DeviceRGB]  cs 0.83594 0.76953 0.63281 sc } def 
/pie0d451004 { [/DeviceRGB]  cs 0.60938 0.69141 0.55859 sc } def


/pie0d199997 { [/DeviceRGB]  cs 1.00000 1.00000 1.00000 sc } def
/pie0d399994 { [/DeviceRGB]  cs 1.00000 1.00000 1.00000 sc } def
/pie0d897995 { [/DeviceRGB]  cs 1.00000 1.00000 1.00000 sc } def

/pie0d932999 { [/DeviceRGB]  cs 1.00000 1.00000 1.00000 sc } def

/bar0d753006 { [/DeviceRGB]  cs 0.35156 0.59766 0.78906 sc } def
----------------->  /bar0d587997 { [/DeviceRGB]  cs 0.35156 0.59766 0.78906 sc } def
/bar0d376007 { [/DeviceRGB]  cs 0.00391 0.17969 0.38672 sc } def
/bar0        { [/DeviceGray] cs 0.00000                 sc } def


/grf0d764999 { [/DeviceRGB]  cs 0.85000 0.85000 1.00000 sc f [/DeviceGray] cs } def
/grf0d783997 { [/DeviceRGB]  cs 0.86000 0.86000 1.00000 sc f [/DeviceGray] cs } def
/grf0d804001 { [/DeviceRGB]  cs 0.87000 0.87000 1.00000 sc f [/DeviceGray] cs } def
/grf0d824005 { [/DeviceRGB]  cs 0.88000 0.88000 1.00000 sc f [/DeviceGray] cs } def
/grf0d830994 { [/DeviceRGB]  cs 0.89000 0.89000 1.00000 sc f [/DeviceGray] cs } def
/grf0d843002 { [/DeviceRGB]  cs 0.90000 0.90000 1.00000 sc f [/DeviceGray] cs } def
/grf0d863007 { [/DeviceRGB]  cs 0.91000 0.91000 1.00000 sc f [/DeviceGray] cs } def
/grf0d878006 { [/DeviceRGB]  cs 0.92000 0.92000 1.00000 sc f [/DeviceGray] cs } def
/grf0d882004 { [/DeviceRGB]  cs 0.93000 0.93000 1.00000 sc f [/DeviceGray] cs } def
/grf0d921997 { [/DeviceRGB]  cs 0.94000 0.94000 1.00000 sc f [/DeviceGray] cs } def
/grf0d940994 { [/DeviceRGB]  cs 0.95000 0.95000 1.00000 sc f [/DeviceGray] cs } def
/grf0d960999 { [/DeviceRGB]  cs 0.96000 0.96000 1.00000 sc f [/DeviceGray] cs } def
/grf0d973007 { [/DeviceRGB]  cs 0.97000 0.97000 1.00000 sc f [/DeviceGray] cs } def

/grf0d979996 { [/DeviceRGB]  cs 0.98000 0.98000 1.00000 sc f [/DeviceGray] cs } def

/grf0d850998 { [/DeviceRGB]  cs 0.98000 0.98000 1.00000 sc f [/DeviceGray] cs } def



/grf0d957001x { [/DeviceRGB]  cs 0.00000 0.00000 0.00000 sc f [/DeviceGray] cs } def
%%Shading for box
/grf0d957001 { [/DeviceRGB]  cs 0.98000 0.98000 1.00000 sc f [/DeviceGray] cs } def

Environment Details

Product Feature: Render

Operating System: Windows 2008 64bit

Database: Not stated

Configuration: Not stated
 

Downloads

  • No Downloads