Color spaces - update according to the PDF 2.0 specification

This commit is contained in:
Jakub Melka
2020-08-11 17:46:03 +02:00
parent c033de6917
commit 8eedb45576
3 changed files with 43 additions and 7 deletions

View File

@ -467,7 +467,7 @@ PDFImage PDFImage::createImage(const PDFDocument* document,
{
QByteArray iccProfileData(reinterpret_cast<const char*>(jpegImage->icc_profile_buf), jpegImage->icc_profile_len);
PDFICCBasedColorSpace::Ranges ranges = { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 };
image.m_colorSpace.reset(new PDFICCBasedColorSpace(image.m_colorSpace, ranges, qMove(iccProfileData)));
image.m_colorSpace.reset(new PDFICCBasedColorSpace(image.m_colorSpace, ranges, qMove(iccProfileData), PDFObjectReference()));
}
}