How to delete Arbortext PIs to remove shading in a table

Submitted by: James Sulak Last Updated: 2009-07-06

For anyone who's interested, this code (using oid_find_children to access the PIs directly):

oid_find_children($table_oid, $nodeset, "_cellfont"); for ($i in $nodeset) { if (oid_has_attr($nodeset[$i], "Shading")) { oid_delete($nodeset[$i]); } }

is significantly faster than this code (translating the OIDs into cell IDs):

oid_xpath_nodeset($table_oid, $nodeset, ".//entry"); for ($i in $nodeset) { $cell_id = tbl_oid_cell($nodeset[$i]); tbl_cell_fontpi($cell_id, 'delete'); }