1. Home
  2. Use cases
  3. PDF to APK

Use case

How to convert a PDF or ebook into an Android app (APK)

A PDF in an app sounds simple, but Android's web view — the engine inside every website-to-app builder — cannot display PDF files on its own. Here are three ways around that, from best reading experience to quickest.

Updated 3 min readBy the APK Maker team
Short answerConvert the PDF into HTML pages (best on phones), or into one image per page shown on a simple HTML page, or bundle a PDF viewer such as PDF.js with the file. Zip the result with index.html at the top level and build it with an HTML/ZIP to APK builder to get an offline reading app.

Why you can't just put a PDF in an app

Chrome on Android opens PDFs by handing them to a separate viewer. The WebView that powers website-to-app builders has no built-in PDF viewer, so linking to a .pdf file inside your app does nothing useful. The content needs to be in a form the web view can show: HTML, images, or a JavaScript PDF viewer.

Three methods compared

HTML pagesPage imagesPDF.js viewer
Reading on a phoneBest — text reflowsPinch to zoomPinch to zoom
Keeps exact layoutNoYesYes
Searchable textYesNoYes
SizeSmallestLargestPDF + viewer (a few MB)
EffortMediumLowMedium

Method 1: convert to HTML (best for text)

If the PDF is mostly text — a novel, a course, a manual — HTML gives the best experience. Export from the original document if you have it (Word, Google Docs and most writing tools can save as web page), or use a PDF-to-HTML converter. Split long books into one file per chapter and add an index.html contents page. A short stylesheet with max-width: 40em, comfortable line height and a dark-mode option goes a long way.

Method 2: one image per page (best for brochures)

Magazines, menus, comics and brochures depend on layout. Export each page as a JPEG or WebP (about 1200 px wide is plenty for phones) and show them one under another:

<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>body{margin:0;background:#222} img{display:block;width:100%;height:auto;margin:0 0 8px}</style>
<img src="pages/01.webp" alt="Page 1" loading="lazy">
<img src="pages/02.webp" alt="Page 2" loading="lazy">

Watch the size: a 60-page brochure at 150 KB per page is about 9 MB, which needs Pro's 18 MB limit; at 80 KB per page it fits the free 5 MB.

Method 3: bundle PDF.js

PDF.js is Mozilla's open-source PDF viewer written in JavaScript. Download its prebuilt viewer, put your PDF next to it, and point index.html at the viewer with your file. This keeps text selectable and the original layout intact, at the cost of a few megabytes for the viewer itself.

Build the app

Whichever method you choose, zip the folder so index.html is at the top level and build it with HTML & ZIP to APK. Everything is bundled, so the app reads offline — ideal for manuals, training material and books. See ZIP to APK for folder rules.

Make your APK now — free

No Android Studio, no code, no watermark. Pick what you are starting from:

Frequently asked questions

Can I convert a PDF directly to an APK?

Not as-is, because Android's WebView cannot display PDF files. Convert it to HTML or page images, or bundle the PDF.js viewer, then build an offline app.

Will the PDF app work offline?

Yes. All three methods bundle the content inside the APK, so it reads with no internet.

Which method is best for an ebook?

HTML. Text reflows to the phone's width, is searchable and keeps the app small.

How big can the PDF app be?

Free builds bundle up to 5 MB of files and Pro builds up to 18 MB. Compress page images to stay within the limit.