Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

open pdf files

douglasf1216991
Level 2
Level 2

How Can I open a PDF file from a card in AEM? PDF has to be embed not hosting on server. So, if you are offline you can still open the PDF.

Thanks!

1 Accepted Solution
Bob_Bringhurst_
Correct answer by
Employee
Employee

You can now upload PDF files instead of .article files. For details, see Experience Manager Mobile Help | Create articles from PDF files

View solution in original post

2 Replies
Mitch_Green
Employee
Employee

There are two possible answers to your question.

First, you can download and use the new Acrobat DC plugin (AEM Mobile PDF Export for Acrobat) to export the PDF document from Acrobat into AEM Mobile (as a .article file). Then just configure an image card in the layout with a navto:// link to point to the new converted PDF article. You can learn more about the Acrobat plugin here, Adobe Prerelease.

The second method is more involved and requires programming, but it gives you more flexibility in how you do things. When a content view (an .article document) loads, you can include Javascript in that view that fetches a PDF document from an external service and stores it in the local filesystem (using the new Cordova File System and File Transfer APIs). Once stored, another link on that page could fetch the PDF document from local storage and open it in the default handler for PDF content on the device. You could also create a first-launch content view that fetches multiple PDF documents and saves them so they're available for offline use in the future.

Bob_Bringhurst_
Correct answer by
Employee
Employee

You can now upload PDF files instead of .article files. For details, see Experience Manager Mobile Help | Create articles from PDF files

View solution in original post