I'm experimenting with changing tags within a PDF document using the Action Wizard and creating a new JavaScript action.
My end goal is to identify all tables but keep the inner tags while removing the table, tr, and td tags.
I'm uncertain if this can be achieved or not.
For now, I attempted to find all table tags (and count them) by testing the following code, but it's not yielding the desired result:
var tables = app.document.getElementsByTagName('table');
var numTables = tables.length;
app.alert(numTables);
If this approach is not viable, do you have any alternative suggestions for modifying tags in a PDF document?