Sorry. browser have some error. :(
Hello
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:
ACCB1 ASBool ACCB2 SelectionPageRangeCallback( AVDoc , void* , PDPageNumber firstPage, PDPageNumber lastPage )
{
//some code which stores page ranges
}
When I want to update selected page ranges list I perform following call:
...
AVDocSelectionEnumPageRanges( avSourceDoc, ASCallbackCreateProto( AVSelectionPageRangeEnumProc, SelectionPageRangeCallback ), NULL );
...
So callback function should be called. But it was not called. Could somebody, please, point on my error or just give me an idea how to enumerate selected pages at Thumbnails panel?
Thanks in advance.
Hello
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:
ACCB1 ASBool ACCB2 SelectionPageRangeCallback( AVDoc , void* , PDPageNumber firstPage, PDPageNumber lastPage )
{
//some code which stores page ranges
}
When I want to update selected page ranges list I perform following call:
...
AVDocSelectionEnumPageRanges( avSourceDoc, ASCallbackCreateProto( AVSelectionPageRangeEnumProc, SelectionPageRangeCallback ), NULL );
...
So callback function should be called. But it was not called. Could somebody, please, point on my error or just give me an idea how to enumerate selected pages at Thumbnails panel?
Thanks in advance.