I use ElementReader to iterate all elements from pdftron::PDF::Page.
I met with a problem, that is one image (here it is 'Im0') which
should be in the most top, however which is covered by other images in
my application. As a result that 'Im2' is last drawn on canvas. The
'Im0' is drawn in the last in Adobe Reader.
Below is the content retrieved from this PDF Page with function
page.GetContents().
{
q
q
1600 0 0 1200 0 0 cm
/Im0 Do
q
BT
7 Tr
/F1 1.0 Tf
0.00747 0.00000 0.00000 0.01083 0.01756 0.86553 Tm
0 0 Td
(\000\131) Tj
/F1 1.0 Tf
0.00747 0.00000 0.00000 0.01083 0.01756 0.86553 Tm
10.45897 0 Td
(\000\003) Tj
ET
/Im1 Do
Q
q
/Im2 Do
Q
Q
Q
}
By the way, I call doc->GetOCGConfig(), which return NULL.
So how can I get the images in correct order?