Hello!
I’m in the process of converting a PDF file that includes both text and images into a CMYK color space. While I’ve successfully converted the text from RGB to CMYK using a specific ICC color profile, I’ve encountered some difficulties with the images. Despite employing the code below to convert the images, I’ve noticed color discrepancies compared to the text:
Document document = new Document("RGB.pdf");
// converting text colors to CMYK
PdfFormatConversionOptions options = new PdfFormatConversionOptions("CMYK-logs.log", PdfFormat.PDF_X_1A);
document.convert(options);
document.save("CMYK.pdf");
Is there any way to convert images using a custom color profile? I’ve attached three PDF files for your reference: the original file, one converted using Adobe, and another showing the results of our efforts using Aspose.
files.zip (1005.6 KB)
Additionally, I’ve observed that post-CMYK conversion, the image filter differs between Adobe and Aspose, with Aspose utilizing ZIP while Adobe employs JPEG. Is there a way to adjust the filter to JPEG for consistency? I’ve attached a comparison photo illustrating the differences between the files generated by Adobe and Aspose.
Environment Details:
- Aspose.PDF for Java version: 22.2
- Java version: 17
- Operating System: Windows
Thank you!