Skip to content

Commit

Permalink
Resolve #366
Browse files Browse the repository at this point in the history
  • Loading branch information
petervwyatt committed Apr 27, 2024
1 parent 2ad6f8f commit 5b72e6a
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
40 changes: 39 additions & 1 deletion docs/32000-2-2020/clause07.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ subset: PDF 2.0
isodoc: ISO 32000-2:2020
clause: 7
title: Syntax
modified: 25 April 2024
modified: 27 April 2024
---

<ul class="noprint">
Expand Down Expand Up @@ -35,6 +35,12 @@ modified: 25 April 2024
<ul>
<li><a href="#H7.4.3">7.4.3 ASCII85Decode filter</a>
</li>
<li>7.4.4 LZWDecode and FlateDecode filters</a>
<ul>
<li><a href="#H7.4.4.3">7.4.4.3 LZWDecode and FlateDecode parameters</a>
</li>
</ul>
</li>
<li><a href="#H7.4.9">7.4.9 JPXDecode filter</a>
</li>
</ul>
Expand Down Expand Up @@ -346,6 +352,38 @@ Any other characters, and any character sequences that represent impossible comb
<li>A final partial group contains only one character.</li>
</ul>

<h3 id="H7.4.4">7.4.4 LZWDecode and FlateDecode filters</h3>

<p>...</p>

<h4 id="H7.4.4.3">7.4.4.3 LZWDecode and FlateDecode parameters</h4>

<p>...</p>

<p class="location">Change Table 8 as follows:</p>

<table>
<caption id="Table8">Table 8 - Optional parameters for LZWDecode and FlateDecode filters</caption>
<tr>
<th>Key</th>
<th>Type</th>
<th>Value</th>
</tr>
<tr>
<td><b>BitsPerComponent</b></td>
<td>integer</td>
<td>
<p>(<i>May be used only if <b>Predictor</b> is greater than 1</i>) The number of bits used to represent each colour component in a sample.
Valid values are <i>1</i>, <i>2</i>, <i>4</i>, <i>8</i>, and (<i>PDF 1.5</i>) <i>16</i>. Default value: <i>8</i>.
</p>
<p class="hangingindent"><ins onMouseEnter="mouseEnter(this)" data-issue="366">
NOTE there is no relationship between this parameter and the similarly named key in image dictionaries.
</ins></p>
</td>
</tr>
</table>


<h3 id="H7.4.9">7.4.9 JPXDecode filter</h3>

<p class="location">Change paragraph below NOTE 5 as follows:</p>
Expand Down
24 changes: 24 additions & 0 deletions docs/32000-2-2020/clause08.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,30 @@ indicates that the corresponding colour component shall never be painted on the
<th>Type</th>
<th>Value</th>
</tr>
<tr>
<td><b>BitsPerComponent</b></td>
<td>integer</td>
<td>
<p>
(<i>Required except for image masks and images that use the <b>JPXDecode</b> filter</i>) The number of bits used to represent each colour component.
Only a single value shall be specified; the number of bits shall be the same for all colour components. The value shall be <i>1</i>, <i>2</i>,
<i>4</i>, <i>8</i>, or (<i>from PDF 1.5</i>) <i>16</i>. If <b>ImageMask</b> is <i>true</i>, this entry is optional, but if specified, its
value shall be <i>1</i>.
</p>
<p>
If the image stream uses a filter, the value of <b>BitsPerComponent</b> shall be consistent with the size of the data samples that the filter
delivers. In particular, a <b>CCITTFaxDecode</b> or <b>JBIG2Decode</b> filter shall always deliver 1-bit samples, a <b>RunLengthDecode</b> or
<b>DCTDecode</b> filter shall always deliver 8-bit samples, and an <b>LZWDecode</b> or <b>FlateDecode</b> filter shall deliver samples of
<del onMouseEnter="mouseEnter(this)" data-issue="366">a</del>
<ins onMouseEnter="mouseEnter(this)" data-issue="366">the</ins>
specified size <del onMouseEnter="mouseEnter(this)" data-issue="366">if a predictor function is used</del>.
</p>
<p>
If the image stream uses the <b>JPXDecode</b> filter, this entry is optional and shall be ignored if present. The bit depth is determined by
the PDF processor in the process of decoding the JPEG 2000 image.
</p>
</td>
</tr>
<tr>
<td><b>Intent</b></td>
<td>name</td>
Expand Down
1 change: 1 addition & 0 deletions docs/32000-2-2020/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ All issues related to {{ page.subset }} are recorded in the PDF Association's <a
<p>The following tables have all been corrected:</p>
<ul>
<li><a href="clause07.html#Table5">Table 5 - Entries common to all stream dictionaries</a></li>
<li><a href="clause07.html#Table8">Table 8 - Optional parameters for LZWDecode and FlateDecode filters</a></li>
<li><a href="clause07.html#Table15">Table 15 - Entries in the file trailer dictionary</a></li>
<li><a href="clause07.html#Table19">Table 19 - Additional entries in a hybrid-reference file’s trailer dictionary</a></li>
<li><a href="clause07.html#Table25">Table 25 - Entries common to all crypt filter dictionaries</a></li>
Expand Down

0 comments on commit 5b72e6a

Please sign in to comment.