In a support thread titled ‘Force pdf download,’ Rafael_Melo_Silva seeks a way to force PDF downloads instead of opening them in an iOS app, especially for files hosted on S3. He notes the challenge of modifying nearly 3,000 existing PDF links. thoka suggests using the download HTML attribute via a theme component, referencing a guide on forcing file downloads. itsbhanusharma recommends using Discourse’s remap feature to bulk-update links, cautioning to test on a staging site first. Don provides a working JavaScript solution using api.decorateCookedElement to automatically add the download attribute to all .pdf links in attachments, tested successfully on iOS. He notes the code can be customized for other attributes or behaviors. The solution targets attachment links and can be added via a theme component’s header section. The thread also references a similar topic for context here.