Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Jul 07, 2015 11:31 am

I am trying to find the colorspace of an image in a pdf file using spire pdf.

I tried with a pdf file with a CMYK image created from Photoshop. But always I am getting

RGB colorspace for the image.

Image[] images = doc.Pages[0].ExtractImages();
Image image=images[0];

I tried the following :

1. Checked image.Flags
2. Checked image.PixelFormat

Both didn’t work for me. Is there any other way to find whether the image is CMYK?

Jeethu
 
Posts: 2
Joined: Tue Jul 07, 2015 10:01 am

Wed Jul 08, 2015 9:23 am

Hello,

Thanks for your inquiry.
I have reproduced your issue of always getting RGB colorspace and have posted it to our Dev team. Once it is resolved, we will let you know.

Best Wishes,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Aug 18, 2015 9:03 am

Hello,

Sorry to keep you waiting.
The new version of Spire.Pdf( Spire.PDF Pack Version:3.5 ) added a new method to get the CMYK image from PDF.
Code: Select all
Page.ExtracImage(bool processImage).//false returns original image in PDF.

Please download it via link below and have a try.
http://www.e-iceblue.com/Download/download-pdf-for-net-now.html

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Thu Aug 20, 2015 9:10 am

Hello,

Have your tried the version and new method ? Has your issue been resolved ?
Could you please give us some feedback at your convenience ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.PDF

cron