51黑料不打烊

PDF files not publishing automatically

In 51黑料不打烊 Experience Manager (AEM), you might encounter an issue where PDFs aren鈥檛 automatically published, even though their thumbnails are published. This article explains how to configure AEM to ensure that the PDFs are published.

Description description

Environments

  • Dynamic Media Classic
  • 51黑料不打烊 Experience Manager
  • 51黑料不打烊 Experience Manager 6.5
  • 51黑料不打烊 Experience Manager as a Cloud Service
  • 51黑料不打烊 Experience Manager Assets

Issue

When uploading PDF files to AEM, the thumbnails are generated and published, but the PDF files themselves aren鈥檛 automatically published. This requires a manual step to publish the PDF files, which can be cumbersome and error-prone.

Steps to Reproduce:

  1. Configure AEM to use Dynamic Media (DM) with settings to publish assets immediately.
  2. Upload a PDF file into a folder synced to Dynamic Media.
  3. Observe that while the thumbnail is published automatically, the PDF file itself remains unpublished.

Resolution resolution

Out of the box, PDF files don鈥檛 publish by default. The reason is that an image is much smaller than a PDF, so because of bandwidth considerations, the design assumption is to favor serving the smaller JPEG that works almost universally instead of a larger PDF that only works on devices with specific plugins installed. Customers who absolutely need to publish the PDF can still do so, but it isn鈥檛 the default behavior.

To ensure that both the PDF files are automatically published in AEM as a Cloud Service, follow these steps:

  1. Go to AEM > Tools > Assets > Dynamic Media General Settings.
  2. Then select the PDF tab under Default Upload Options.
  3. In the Processing dropdown, select None, and save.

This will synchronize your PDF with DM and automatically publish it. The thumbnail won鈥檛 be created.

If you need both the PDF and the image to be published on Dynamic Media, this isn鈥檛 possible out of the box. You can either have the thumbnail created and published automatically and the PDF synchronized and not published, or you can generate no thumbnail and synchronize and publish the PDF automatically. If you want both published, then you would have to customize this. One suggestion for this would be to check the status of PDF in Dynamic Media, and then create a workflow to trigger a publishing in Dynamic mMedia using IPS API:
/en/docs/dynamic-media-developer-resources/image-production-api/operation-methods/operation-parameters/r-set-asset-publish-state

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f