• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Delete <sect> when exporting to PDF??

Community Beginner ,
Oct 08, 2019 Oct 08, 2019

Copy link to clipboard

Copied

Do you guys know a way to prevent InDesign from exporting content into a <sect> tag?

When exporting to a accessible PDF i have to manualy move tags out of the section tag = <sect> before deleting it, this is very time consuming process, but sometimes its necessary for the PDF to be accessible. -is there a way to stop indesign from exporting into a section tag??...maybe a script??

/Jakob

here you see the paragraph tags nested inside the section taghere you see the paragraph tags nested inside the section tag

TOPICS
Scripting

Views

1.1K

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

correct answers 2 Correct answers

Community Expert , Oct 08, 2019 Oct 08, 2019

@Jakob_diversa,

Not sure why you think the <Sect> tag prevents your PDF from being accessible. It's a valid tag in the PDF/UA-1 standard (ISO 14289) and is used to denote a sub-section of a larger story. It's valid as shown in your screen capture as it denotes a section within the article tag <Art>.

 

That being said, you could have too many <Sect> tags in the exported PDF, or inapropriate use of them, and an accessibility officer or checker would flag that. This happens when your construction m

...

Votes

Translate

Translate
Community Expert , Oct 22, 2023 Oct 22, 2023

The simple answer is you cannot do what you ask from Acrobat itself or through export settings. This is the way that InDesign creates tag structure for your content. I know you don't want to hear it and I completely understand. It frustrates me too. That is why I use third-party programs to remove those containers as part of my workflow. We call this flattening the tags tree.  DM me if you wanna know the names of the ones I use. There are several out there. Be warned, None are cheap. 

Votes

Translate

Translate
Community Expert ,
Oct 08, 2019 Oct 08, 2019

Copy link to clipboard

Copied

@Jakob_diversa,

Not sure why you think the <Sect> tag prevents your PDF from being accessible. It's a valid tag in the PDF/UA-1 standard (ISO 14289) and is used to denote a sub-section of a larger story. It's valid as shown in your screen capture as it denotes a section within the article tag <Art>.

 

That being said, you could have too many <Sect> tags in the exported PDF, or inapropriate use of them, and an accessibility officer or checker would flag that. This happens when your construction methods aren't tight enough in the InDesign layout.

 

Essentially, InDesign produces a new <Sect> tag whenever a new story thread is created.

 

So one theory of document construction is to make sure that each story consists of a connected, threaded series of text frames from start to finish. Here's an example from my book that shows a multi-frame heading. Designers often do this type of construction when we want a different appearance of the heading's text, or we want to control alignment of each line. Note the open INports on each frame (in yellow) indicating a new "story."

UNthreaded text frames = <Sect> tagsUNthreaded text frames = <Sect> tags

 

And below is the resulting PDF. Note the 4 <Sect> tags, one for each unthreaded frame (or new "story").

 

4 <Sect> tags in the exported PDF.4 <Sect> tags in the exported PDF.

 

A better way to accomplish a design like this is to either thread the frames together, or have only one frame and use formatting styles (paragraph and character) to create the visual appearance you want.

 

Below, the same frames are threaded into one story (note the blue arrows in the INports).

Note the blue arrows in the INport on frames 2-4.Note the blue arrows in the INport on frames 2-4.

 

And the PDF has one <Sect> in the tags tree.

In the PDF, one threaded story produces one <Sect> tag. Also one <H1> tag for the heading.In the PDF, one threaded story produces one <Sect> tag. Also one <H1> tag for the heading.

 

Hope this helps! Concentrate on better construction of the InDesign layout so that you have only appropriate, logical uses of the <Sect> tag.

 

And I noticed empty <P> tags in your screen capture (highlighted in blue below).

Those are caused by empty "returns" or paragraphs in your document, probably to create white space between paragraphs. You don't want blank paragraphs in an accessible document! So add space before/space after to your paragraph styles to create the white space and avoid the blank returns. Right now, those would need to be artifacted one by one in order to pass some accessibility checkers.

Eliminate the blank paragraphs.Eliminate the blank paragraphs.

 

|    Bevi Chagnon   |  Designer & Technologist for Accessible Documents
|    Classes & Books for Accessible InDesign, PDFs & MS Office |

Votes

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
New Here ,
Mar 22, 2021 Mar 22, 2021

Copy link to clipboard

Copied

Despite the previous answer, I would also like to have the opportunity to prevent sect-tags from being created on export. Connecting text frames might work for text-only content, but fails for me for content with a lot of pictures in between. If I anchor them within the text frames, the figure tags will be nested within p tags, which is semantically not correct (correct me if there is another solution to this). Therefor I would prefer to set the reading order with the article panel only and avoid the bloat of all those sect-tags around single p tags (even though they are technically valid there).

Votes

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
Community Expert ,
Mar 22, 2021 Mar 22, 2021

Copy link to clipboard

Copied

That requirement of PDF/UA-1 (that a <Figure> can't appear within a <P>) is totally inaccurate.

And I contest this when it's brought up in the PDF/UA committee (I'm a US delegate). There are plenty of valid conditions where a <Figure> can and should be nested inside a <P>.

 

With InDesign at this time, you have no option but to anchor <Figure> tags inside a <P> or other block-level element.

 

|    Bevi Chagnon   |  Designer & Technologist for Accessible Documents
|    Classes & Books for Accessible InDesign, PDFs & MS Office |

Votes

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
New Here ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

Why do you think it's inaccurate? The only occasions in which I think figures are semantically correct when placed inline in p tags are icons or similar objects, that are unambiguously part of that line. However, any block figure, especially in combination with a caption, should not be 'inline' in my opinion. P tags should contain a paragrah of text content, shouldn't they? And the same way as one would avoid placing two paragraphs inside a single p tag, the same way I would avoid placing a paragraph and a text figure inside one p tag.

Votes

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
Community Expert ,
Oct 22, 2023 Oct 22, 2023

Copy link to clipboard

Copied

LATEST

The simple answer is you cannot do what you ask from Acrobat itself or through export settings. This is the way that InDesign creates tag structure for your content. I know you don't want to hear it and I completely understand. It frustrates me too. That is why I use third-party programs to remove those containers as part of my workflow. We call this flattening the tags tree.  DM me if you wanna know the names of the ones I use. There are several out there. Be warned, None are cheap. 

Votes

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