github.com/unidoc/unidoc@v2.2.0+incompatible/pdf/model/colorspace_test.go (about) 1 /* 2 * This file is subject to the terms and conditions defined in 3 * file 'LICENSE.md', which is part of this source code package. 4 */ 5 6 package model 7 8 import ( 9 "fmt" 10 "testing" 11 ) 12 13 func TestSeparationCS1(t *testing.T) { 14 rawObject := ` 15 % Colour space 16 5 0 obj 17 [ /Separation /LogoGreen /DeviceCMYK 12 0 R ] 18 endobj 19 % Tint transformation function 20 12 0 obj 21 << 22 /FunctionType 4 23 /Domain [0.0 1.0] 24 /Range [ 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 ] 25 /Length 65 26 >> 27 stream 28 { dup 0.84 mul 29 exch 0.00 exch dup 0.44 mul exch 0.21 mul 30 } 31 endstream endobj 32 ` 33 34 // Test a few lookups and see if it is accurate. 35 // Test rgb conversion for a few specific values also. 36 37 fmt.Println(rawObject) 38 39 //t.Errorf("Test not implemented yet") 40 } 41 42 func TestDeviceNCS1(t *testing.T) { 43 // Implement Example 3 on p. 172 44 45 //t.Errorf("Test not implemented yet") 46 }