Skip to content

Commit 9f11349

Browse files
ar3emiText-CI
authored andcommitted
Remove TODOs in Lab and IccBased colors
It seems that these TODOs were added in accordance with the note about the Range entry in Table 65 of the PDF specification 32000-1: 2008. But it seems that this note is relevant to readers. Thus, we may not take this fact into account when writing to a PDF file. DEVSIX-4013 Autoported commit. Original commit hash: [2cf618d25]
1 parent 4314648 commit 9f11349

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

itext/itext.kernel/itext/kernel/colors/IccBased.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ source product.
4848
namespace iText.Kernel.Colors {
4949
public class IccBased : Color {
5050
public IccBased(PdfCieBasedCs.IccBased cs)
51-
// TODO if zero is outside of the Range, default value should be the nearest to the zero valid value
5251
: this(cs, new float[cs.GetNumberOfComponents()]) {
5352
}
5453

itext/itext.kernel/itext/kernel/colors/Lab.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ source product.
4646
namespace iText.Kernel.Colors {
4747
public class Lab : Color {
4848
public Lab(PdfCieBasedCs.Lab cs)
49-
// TODO if zero is outside of the Range, default value should be the nearest to the zero valid value
5049
: this(cs, new float[cs.GetNumberOfComponents()]) {
5150
}
5251

itext/itext.kernel/itext/kernel/pdf/colorspace/PdfCieBasedCs.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ public IccBased(PdfArray pdfObject)
197197
}
198198

199199
public IccBased(Stream iccStream)
200+
// TODO DEVSIX-4217 add parsing of the Range
200201
: this(GetInitialPdfArray(iccStream, null)) {
201202
}
202203

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e7a1b1f99b64a4d89ff6c904176928dde2843ac5
1+
2cf618d256e38f483918157a47a9184c98729f4e

0 commit comments

Comments
 (0)