--
You received this message because you are subscribed to the Google Groups "pdfium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/7AD2C3D2-148D-4095-8CC2-C020C8AEDB8B%40gmail.com.
Am 07.04.2021 um 17:33 schrieb David Tejnora <david....@gmail.com>:
Hi David,
Thanks and sorry for the long response, but I don’t get the ICC data out of it.
Here is how I get the colorspace:
FPDF_IMAGEOBJ_METADATA metadata;
auto ret = FPDFImageObj_GetImageMetadata(pageObject, page.get(), &metadata);
if (ret) {
//auto iccProfile = static_cast<CPDF_ICCBasedCS *>(metadata.colorspace); // HERE I WANT TO GET THE ICC DATA
//if (iccProfile) {
// if (StringInfo *stringInfo = BlobToStringInfo(iccProfile->->GetStream()->, iccProfile.size)) {
// SetImageProfile(pImage, "icc", stringInfo, exception.get());
// }
//}
}
Best Regards
Roman