Copy link to clipboard
Copied
I'm using InDesign 2023 and exporting PDFs using ExtendScript. The resulting PDFs pass all of the accesibilty checks except Page Content >> Tab order for pages. I know I can fix this manually in Acrobat by going to Page Properties >> Tab Order >> Use Document Structure, but I am generating hundreds of of PDF files. How can I set Tab Order >> Use Document Structure in ExtendScript?
I have tried using TaggedPDFPreference.structureOrder set to both TaggedPDFStructureOrderOptions.USE_ARTICLES and TaggedPDFStructureOrderOptions.USE_XML_STRUCTURE, but this does not seem to resolve the issue. Any pointers or solutions would be appreciated.
Yeah, that specific tab-order is only set when interactive pdf is used on export, in any print pdf export that one has to be done in Acrobat.
Copy link to clipboard
Copied
Perhaps a dumb question, but do you have Create Tagged PDF enabled in your pdf export preferences (or as part of a preset or via ES)?
Copy link to clipboard
Copied
I have it set as in a preset.
Copy link to clipboard
Copied
Yeah, that specific tab-order is only set when interactive pdf is used on export, in any print pdf export that one has to be done in Acrobat.
Copy link to clipboard
Copied
Thanks for your reply. So, maybe my question is different than I initially thought. When exportFile with ExportFormat.INTERACTIVE_PDF, my resulting PDF is not tagged with InDesign 2023 even though tagged is specified in the preset. How would I set the tab order for interactive and is there a way to specify interactive in the preset?
Copy link to clipboard
Copied
I marked correct because this answer pointed me in the right direction.
I use the code below:
//Set PDF to use structure for tab order
with ( app.interactivePDFExportPreferences )
{
usePDFStructureForTabOrder = true;
includeStructure = true;
}
//Save interactive
rcDoc.exportFile(ExportFormat.INTERACTIVE_PDF, File(fname + fileVersionSuffix + ".pdf"), false, MyExportFormat) ;