Book Image

Delphi Cookbook

By : Daniele Teti
Book Image

Delphi Cookbook

By: Daniele Teti

Overview of this book

Table of Contents (14 chapters)
Delphi Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Displaying PDF files in your app


In the mobile world, you often need to show PDF files to your user. Maybe these PDF files are used as reports (usually generated by some reporting tool on the remote server), a statement about something that the user should do, a small book, or simply as a products catalog. So, how do we show a PDF that is deployed within the app or downloaded from some remote server and stored locally? How do we do it on Android and iOS? This is the topic of this recipe.

Getting ready

Let's say we have to create an app that contains some PDF files. In this case, we don't download the files but simply deliver them within the app. Later, we'll see how to download them from the network.

To deploy additional files within our app, we have to use the Deployment Manager, which is accessible by navigating to Project | Deployment. If you need to know how to use it, check the Embarcadero documentation at (http://docwiki.embarcadero.com/RADStudio/XE6/en/Deployment_Manager).

The additional...