From 7c24a89acfb45b11edafc8c113be04595b563c61 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 19 Oct 2023 19:53:55 -0400 Subject: [PATCH] LibPDF: Add spec comment about valid bits_per_component values --- Userland/Libraries/LibPDF/Renderer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibPDF/Renderer.cpp b/Userland/Libraries/LibPDF/Renderer.cpp index 86cff3238f0..f2039e213ce 100644 --- a/Userland/Libraries/LibPDF/Renderer.cpp +++ b/Userland/Libraries/LibPDF/Renderer.cpp @@ -842,6 +842,7 @@ PDFErrorOr> Renderer::load_image(NonnullRefPtrget_name(m_document, CommonNames::Intent))->name(); // FIXME: Do something with color_rendering_intent. + // "Valid values are 1, 2, 4, 8, and (in PDF 1.5) 16." auto bits_per_component = image_dict->get_value(CommonNames::BitsPerComponent).get(); if (bits_per_component != 8) { return Error(Error::Type::RenderingUnsupported, "Image's bit per component != 8");