It's definitely your code.
I ran your file through a simple app that uses PDDocColorConvertPageEx() and it worked just fine converting that file to Adobe RGB.
It's definitely your code.
I ran your file through a simple app that uses PDDocColorConvertPageEx() and it worked just fine converting that file to Adobe RGB.