Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
seehuhn committed Jun 11, 2024
1 parent a198475 commit da0c8a1
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 84 deletions.
3 changes: 3 additions & 0 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func (err *AuthenticationError) Error() string {
}

// MalformedFileError indicates that a PDF file could not be parsed.
//
// TODO(voss): introduce a distinction between an invalid PDF container,
// and invalid PDF content within a valid container.
type MalformedFileError struct {
Err error
Loc []string
Expand Down
40 changes: 20 additions & 20 deletions graphics/color/Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ Device Color Spaces
The device color spaces are:

- DeviceGray (PDF-1.1)
Color space description: \DeviceGray
Color space description: /DeviceGray

- DeviceRGB (PDF-1.1)
Color space description: \DeviceRGB
Color space description: /DeviceRGB

- DeviceCMYK (PDF-1.1)
Color space description: \DeviceCMYK
Color space description: /DeviceCMYK

- CalCMYK is a deprecated synonym for DeviceCMYK.
Color space description: [\CalCMYK dict]
Color space description: [/CalCMYK dict]

The device color spaces can have two different uses:

Expand All @@ -36,27 +36,27 @@ CIE-Based Color Spaces
The CIE-based color spaces are:

- CalGray (PDF-1.1)
Color space description: [\CalGray dict]
The dictionary entries are \WhitePoint (required), \BlackPoint (optional)
and \Gamma (optional).
Color space description: [/CalGray dict]
The dictionary entries are /WhitePoint (required), /BlackPoint (optional)
and /Gamma (optional).
See table 62 in ISO 32000-2:2020.

- CalRGB (PDF-1.1)
Color space description: [\CalRGB dict]
The dictionary entries are \WhitePoint (required), \BlackPoint (optional),
\Gamma (optional) and \Matrix (optional).
Color space description: [/CalRGB dict]
The dictionary entries are /WhitePoint (required), /BlackPoint (optional),
/Gamma (optional) and /Matrix (optional).
See table 63 in ISO 32000-2:2020.

- Lab (PDF-1.1)
Color space description: [\Lab dict]
The dictionary entries are \WhitePoint (required), \BlackPoint (optional)
and \Range (optional).
Color space description: [/Lab dict]
The dictionary entries are /WhitePoint (required), /BlackPoint (optional)
and /Range (optional).
See table 64 in ISO 32000-2:2020.

- ICCBased (PDF-1.3)
Color space description: [\ICCBased stream]
The stream dictionary has the following (additional) entries: \N (required),
\Alternate (deprecated), \Range (optional), and \Metadata (optional).
Color space description: [/ICCBased stream]
The stream dictionary has the following (additional) entries: /N (required),
/Alternate (deprecated), /Range (optional), and /Metadata (optional).
See table 65 in ISO 32000-2:2020.

Special Color Spaces
Expand All @@ -65,20 +65,20 @@ Special Color Spaces
The special color spaces are:

- Indexed (PDF-1.1)
Color space description: [\Indexed baseColor highVal lookup]
Color space description: [/Indexed baseColor highVal lookup]
See section 8.6.6.3 in ISO 32000-2:2020.

- Pattern (PDF-1.2)
Colored patterns: /Pattern
Uncolored tiling patterns: [/Pattern baseColorSpace]

- Separation (PDF-1.2)
Color space description: [\Separation name alternateSpace tintTransform]
Color space description: [/Separation name alternateSpace tintTransform]
See section 8.6.6.4 in ISO 32000-2:2020.

- DeviceN (PDF-1.3)
Color space description: [\DeviceN names alternateSpace tintTransform]
or [/DeviceN names alternateSpace tintTransform attributes]
Color space description: [/DeviceN names alternateSpace tintTransform]
or [/DeviceN names alternateSpace tintTransform attributes]
See section 8.6.6.5 in ISO 32000-2:2020.


Expand Down
Loading

0 comments on commit da0c8a1

Please sign in to comment.