Provide a view-only PDF experience in Adobe Experience Manager

This article explains how to configure Adobe Experience Manager (AEM) to publish PDF documents in a way that restricts end-user editing and downloading, offering a view-only experience.

Description description

Organizations may need to publish PDF documents through AEM while preventing end users from editing or downloading the files in an editable format. The goal is to make PDFs viewable on the live site, but not downloadable or editable, effectively providing a view-only experience. AEM’s native capabilities don’t enforce absolute edit restrictions or password protection for PDFs, especially for publicly accessible documents. PDF permission settings (such as restricting editing, copying, or printing) rely on the PDF reader honoring those permissions and aren’t absolute for public documents.

Environment

Adobe Experience Manager (all versions)

Symptoms

  • End users can download or edit published PDFs.
  • Business requires PDFs to be viewable only, not editable or downloadable.

Cause

AEM’s out-of-the-box PDF viewers provide only a presentation layer and can’t enforce absolute edit restrictions on PDFs for anonymous users. Rendering PDFs as images or non-editable formats is a practical deterrent, but not absolute protection, as users may still capture content via screenshots or other means.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Store the original PDF asset in a secure location within AEM, and don’t expose it as a directly downloadable public asset.
  2. Generate a web-friendly, non-editable representation of the PDF, such as rendering each page as an image (For example: JPEG or PNG). This can be done using a custom workflow or integration with a PDF-to-image conversion tool.
  3. Implement a custom viewer on your AEM site to display the rendered images in sequence, simulating the PDF reading experience.
  4. Configure the viewer interface to remove or disable download, print, and source-file links, ensuring users can’t access the original PDF file.
  5. Apply appropriate access controls and caching rules in AEM to restrict access to the rendered content and prevent direct access to the original PDF.
  6. Test the solution to ensure it meets your business and accessibility requirements. Note that rendering as images may impact text search, selection, accessibility, and indexing.

To verify, attempt to access the PDF from the live site as an anonymous user, and confirm that only the image-based viewer is available, with no option to download or edit the original PDF.

recommendation-more-help
experience-cloud-kcs-help-kbarticles