adobe - Tagged PDF How to move a PDSElement to another position in the PDSTreeRoot? -


i'm tagging pdf's content adobe's pdf lib. logical tree structure pdstreeroot has several elements.

the top element called document. need move other psdelements under psdeelement document. needed creating accessible pdfs.

i can acrobat pro (just shift-click mark tag-elements , move them under document-tag) thought has possible adobe pdf lib.

    asint32 numkids = pdstreerootgetnumkids (mytreeroot);     pdselement  pdsdocelem, pdselem;     //first pdselement document-element     pdstreerootgetkid(mytreeroot, 0, &pdsdocelem);       for( int i2 = 1; i2 < numkids;i2++)     {         pdstreerootgetkid(mytreeroot,i2,&pdselem);         pdselementinsertkid(pdsdocelem,pdselem,kpdsafterlast);     } 

the last line throws following error:

error code: 1074855939: wrong type parameter supplied pds procedure

any help?


Comments