A couple things to hopefully de-mystify what you’re experiencing. It’s not exactly clear to me what your specific issue is, so I’ll do my best to cover all possible answers.
- Edge Delivery supports publishing PDFs that are 20MB and under. Anything above this and you will need to host it on AEM Assets. To use Edge Delivery end to end for PDFs:
- Drag the (less than 20MB) PDF into the browse list on DA. It will turn green on hover.
- Click on the PDF in the list after upload, it should be at the top.
- Press paper plane > publish.
- You will be taken to your PDF.
- Your dev team is responsible for how the PDF is then used on your site.
- You can simply paste a link to the PDF on whatever page you want it. Most browsers will provide a preview when the link is clicked.
- There is no built-in HTML inline / embedded preview out of the box for Edge Delivery. We recommend using the free version Adobe provides. Again, someone will need to write the code to integrate this, but it should be easy. DA itself uses this exact same SDK.
- If you are dealing with a PDF above 20MB, then you will need to get a publicly available link to the asset. Ideally, one that has your production domain and not a publish or delivery URL. Once you get this link, you can follow step 2 above.
- If your team architected your site to specifically require AEM Assets regardless of size, your hunch about “too much code” may be correct. Getting a PDF on an Edge Delivery page is usually a 4 step process (as outlined above).