Below is the code for the MainActivity. Comments are added inside the code to understand the code in more detail. Java import android. PackageManager; import android. Bitmap; import android. BitmapFactory; import android. Canvas; import android. Paint; import android. Typeface; import android. PdfDocument; import android. Bundle; import android. Environment; import android.
View; import android. Button; import android. Toast; import androidx. NonNull; import androidx. AppCompatActivity; import androidx.
ActivityCompat; import androidx. ContextCompat; import java. File; import java. FileOutputStream; import java. IOException; import static android. Builder pagewidth, pageHeight, 1. Skip to content. Change Language.
Related Articles. Table of Contents. Save Article. It gives you total freedom to create PDFs from scratch and edit existing documents without fuss, on desktop or mobile. Even the basic free version offers more than enough functionality for most situations, and excellent document compatibility means you should be able to view even the most complex of PDFs as it was meant to be seen.
Open a PDF from the web or share a document from another app and Acrobat Reader quickly displays it in a simple viewer. You're able to scroll around the document, zoom in and out or use simple searches, and everything works more or less exactly as you would expect. Advanced features in the paid-for version include form filling and signing, and you're able to annotate files, highlight text, plus you can add and manage PDF comments. The app is designed to work with many other Adobe services and products.
Some of these are free, including cloud storage when you sign up for an Adobe account, and the OCR-powered Adobe Scan app which enables using your device as a PDF scanner, turning receipts, business cards, whiteboards and anything else into searchable, editable PDFs.
The commercial extensions aren't always such good value. Converting files to and from PDF, reordering and rotating pages, are functions that other tools often do for free. Still, you don't have to sign up, and the free app delivers all the viewing functionality that many users will need. Xodo PDF Reader stands out from the underpowered masses for the range and depth of its feature set.
You can fill in, save and send PDF forms, or highlight text and add annotations of your own. It's even possible to collaborate on your document with others via Xodo's connect service no registration required. That's not just about providing an easy way to import documents from the cloud: Xodo can also automatically sync your edits with the source file, ensuring it always has the very latest version. There's another neat extra in Xodo's File Manager. Thumbnail previews and a Recent Files list give you speedy access to the documents you need, and you're able to freely rename, copy, move or delete any documents.
The core PDF viewing engine is what really matters, though, and Xodo's creation works very well. High zoom factors, page cropping and a full-screen mode help you focus on the content, Night Mode makes for comfortable reading in darker environments and versatile search tools and table of contents support enables drilling down to key areas of the file.
It doesn't take long to understand Foxit's success. PDFs open quickly, you can control orientation with ease, text reflows to fit and you're able to tweak brightness and change the background to make for comfortable reading in all situations.
Simple annotation tools are on hand to assist in highlighting text, adding notes or drawing on the page, and Foxit's Connected technology enables sharing comments and changes with others in real time.
Form handling is a major plus, with options to fill out and save forms, import and export their data and submit forms via HTTP, FTP and email. While Foxit's core functionality is free, a number of more advanced features are only available if you subscribe converting PDFs, combining files, password protection, digital certificates, OneDrive Business support. That's no surprise, but if you're on a budget, keep in mind that some PC-based PDF editors can carry out many of these tasks for free.
While there are a number of other PDF readers that may initially seem similar, All PDF itself comes with some nifty tools to help with handling PDF files that are often charged-for features in other apps.
You can also convert PDF's to images, control printing and sharing from the app, as well as reduce file size. There's also the ability to extract sections of text. Organizing PDF files is made easier, too. You can star the most important files and displays all PDFs in a grid view as required, making it easier to find the PDF file you want.
Additionally, when you close and re-open a PDF file you'll go straight to the last page you were on, rather than have to restart from the beginning and scroll back down to your place. The main viewing engine opens documents at speed and provides a comfortable and flexible environment for reading, adding and managing comments, or checking out any attachments.
Speedy options to add and edit bookmarks ensure that you can mark important areas of any document and speedily return to them later. Basic annotation tools include the ability to highlight text or draw lines, arrows and assorted simple shapes.
0コメント