I want to enumerate selected page ranges at Thumbnails panel.
I've tried to use AVDocGetSelection but it returns some pointer which I can't interpret as any usable info. According to spec it should be somehow converted to AsInt32, because AsInt32 is used in AVDocSetSelection for thumbnails data type, but I have not found any usable conversion variant. Are there any info how it should be converted to selected page array?
So now I'm trying to use AVDocSelectionEnumPageRanges in following way:
I've defined callback function which should store selected page ranges in following way: