How can I set the default background color when exporting to a .pdf file with .prc support?

  1. FAQ
  2. »
  3. PDF and PRC Questions

Currently the ability to set a background color isn't provided; you can do it only at the .pdf file level. For example, if you have the following data in a .pdf file:

<<
/Type /Annot
/Subtype /3D
/Rect [0 123 594 718]
/P 2 0 R
/F 68
/Contents 9 0 R
/3DA <<
/Transparent true
/A /PO
/D /XD
>>
/3DV <<
/Type /3DView
/XN (Default View)
/MS /M
/CO 3.334073
/C2W [1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 -1.000000 7.712374 5.931818 3.334073 ]
/P <<
/Subtype /O
/OB /Max
/OS 0.519500
>>
>>

To change the default background color:

  1. Change the key /Transparent true to /Transparent false.
  2. Set the new value for the background color between /CO and /C2W keys:
  3. 
    /BG <<
    	  /C [
    	    0.0
    	    0.0
    	    1.0
    	  ]
    	  /Subtype /SC
    >>