Copy link to clipboard
Copied
Hi Team,
Need to convert the exiting pdf to accessiblity pdf using SDK i.e we need to select the text, based on the coordinates and tag the PDF like heading, table, para etc.. using acrobat DC PRO sdk. Similar to reading order tool in Acrobat Dc pro we have already tried the code below but in the below method there is no option to convert the text run as like the reading order tool in acrobat plugin
ASInt32 numTextRuns = PDETextGetNumRuns ((PDEText)pdeElement);
pdeContainer = PDEContainerCreate (ASAtomFromString("LI"), NULL, false);
pdeTextContent = PDEContentCreate ();
PDEContentAddElem (pdeTextContent, kPDEBeforeFirst, pdeElement);
PDEContainerSetContent (pdeContainer, pdeTextContent);
// Replace the text element in the page with the container
// holding the text element.
PDEContentRemoveElem (pdeContent, i);
PDEContentAddElem (pdeContent, i - 1, (PDEElement)pdeContainer);
Thanks
Bala v
Have something to add?