Convert a normal PDF to accessiblity PDF

Community Beginner ,
Mar 28, 2020 Mar 28, 2020

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

TOPICS
Acrobat SDK and JavaScript

Views

39

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation