Skip to main content
Known Participant
June 17, 2021
Question

Help - Optimizing PDF rmoves tags and alt text even when selecting not to remove these

  • June 17, 2021
  • 6 replies
  • 9461 views

I have a PDF which was exported from InDesign and contains tags, alt text and other accessibility settings.  The PDF is 24mb which we feel is too large to upload to a website.  Therefore, we are trying to reduce the PDF output file. 

 

I have tried to optimize the PDF within Adobe Acrobat and under the "Discard Objects" settings, unticked "discard all alternative images", "discard document tags", "discard bookmarks" and "discard embedded search index" (as per screenshot).

 

When I open the PDF, all tags and alt text has disappeared. 

 

How do I retain all tags, alt text and any other accessibility settings that have been done in the InDesign file (exported PDF). 

 

This topic has been closed for replies.

6 replies

JR Boulay
Community Expert
February 28, 2023

In all, it would be interesting to know the settings for converting to PDF in InDesign and to know what these files contain.

Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
February 28, 2023

I will see if our Graphics team can tell me what their settings are when converting to PDF from InDesign.  I have uploaded the PDF file if you want to have a look.  I appreciate your help because this is something we have been struggling with for a few years now.  

Bevi Chagnon - PubCom.com
Brainiac
February 28, 2023

Hi @agile_Miracle5DD0

I took a quick look at your PDF and found some items that might be causing the bloated file size.

 

  1. Graphics. It has hundreds of graphics throughout the 168 pages, each one adding to the size of the file. They are a combination of bitmapped photos, bitmapped maps, and other file formats for the icons and illustrations. Depending upon how those graphics were created and which file format they were exported to, they could be contributing to the bloated file size.
  2. Story threads. Every text frame adds to the file size, whether it contains just a word or a page's worth

of text. So one theory we teach in our Accessible InDesign classes is to minimize the number of text frames used to lay out the project. Without seeing the INDD files, I can't tell from the PDF how well it was constructed.

3. Fonts. Every font adds to the file size. I recognize that the project is dual-language and, therefore, will have more fonts than other types of documents, but there might be places where different weights of National could be merged. Example, both National Regular/Italic and National Medium/Italic are used; these are so similar, you might want to consider using just one weight. I doubt it will affect the overall visual design.

4. Page count and complexity. 168 pages with many visual details (rules, borders, color blocks, tables, etc.) add to the file size, too.

 

In terms of tags and accessibility, the PDF you posted fails. It's nearly totally inaccessible at any level, and only 2 out of 168 pages have tags: pages 157 and 158. I don't know if this is the original PDF as exported from InDesign, or it's from an attempt to optimize the file and lost the tags along the way.

 

But it does give a clue: If this file — without tags — is bloated, then it's something other than the tags that's causing the file bloat.

 

The colors chosen for text need to be checked with a good contrast checker. We highly recommend WebAim's Contrast Checker at https://webaim.org/resources/contrastchecker/ Areas that might not be compliant are:

  • Blue text on black background, page 6
  • Blue heading text, page 7
  • White text on blue background, page 7
  • Small blue text, page 17
  • All of the text in color, page 22-23
  • All of the green text in section 2, starting on page 31
  • All of the red-orange text in section 3, starting on page 36
  • All of the aqua text in section 4, starting on page 39
  • All of the orange text in section 5, starting on page 43
  • All of the blue text in section 6, starting on page 47
  • All of the lime green text in section 7, starting on page 50
  • All of the redish in section 8, starting on page 68
  • All of the aqua text in section 9, starting on page 78
  • All of the orange text in section 10, starting on page 89
  • The reversed text in the color bars of the financial section, starting on page 97

 

I know New Zealand has requirements for accessible ICT and am just letting you know that this file doesn't even come close to meeting the accessibility standards.

 

Hope this helps,

—Bevi

 

|    Bevi Chagnon   |  Designer, Trainer, & Technologist for Accessible Documents ||    PubCom |    Classes & Books for Accessible InDesign, PDFs & MS Office |
JR Boulay
Community Expert
February 28, 2023

To keep the tags and matadatas intact, don't use these options and be sure to "Retain existing" version:

 

Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
February 28, 2023

Thank you so much!  I think I've been going wrong with the "Make compatible with" as I wasn't ensuring that was set to "Retain existing".  I really appreciate your help. 

JR Boulay
Community Expert
February 28, 2023

To remove "Document overhead" you must tick this option:

Acrobate du PDF, InDesigner et Photoshopographe
JR Boulay
Community Expert
February 27, 2023

To find out where the weight of the document comes from and where you should intervene to reduce it, open the PDF in Acrobat Pro : File menu : Save as other : Optimized PDF, and click on the "Audit space usage" button.

Feel free to share the screenshot.

 

Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
February 27, 2023

Thank you for sharing this.  I didn't know about that Audit space usage function.  I will try that next time with any PDFs exported from InDesign files by our Graphics Team, that are large.

As this post was put up 2 years ago, I cannot quite remember which document(s) we were having trouble with but if it happens again, I will share a screenshot.  Thank you for your help. 

Known Participant
February 27, 2023

I have actually just found a document that we had trouble with last year.  I'm not sure what it means by "Document Overheads".

 

hammer0909
Community Expert
June 18, 2021

Have you tried using File > Save As Other > Reduced Size PDF?

Known Participant
June 20, 2021

Yes but that removes all of the tags and alt text also.  

Known Participant
June 20, 2021

There doesn't seem to be an option to reduce (or optimize) that keeps the tags and alt text. 

JR Boulay
Community Expert
June 17, 2021

If you used the correct settings when exporting from InDesign you wouldn't need Acrobat Pro to reduce the size of your PDF!

Acrobate du PDF, InDesigner et Photoshopographe
Known Participant
June 17, 2021

Well that was really helpful!  So what do you think the correct export settings are?

We have the export settings correct (to our knowledge and as far as we know) but the file is still 24mb which we feel is too large to put onto the web.  We are trying to reduce the size of file so are trying all options.  I have posted in the InDesign community to check export settings, as well. 

JR Boulay
Community Expert
June 19, 2021

You have to do some tests because it depends on what is in the INDD file, there is no universal settings.

Acrobate du PDF, InDesigner et Photoshopographe