Determine color profile to use from the output intent in PDF/X files

,

I am using PDFNet SDK to rasterize PDF documents and in order to get the colors to match correctly, I sometimes need to use an ICC color profile. I know that specific files are compliant with the PDF/X formats and they should have the correct output intent embedded somewhere in the PDF document. If I use PDF draw on these files to rasterize and I do not explicitly specify an ICC profile, the colors do not match. I would like to determine if there is an emedded output intent in a PDF document and if so, use the correct ICC profile. Does anyone have an idea how I could locate the output intent using PDFNet SDK?