Scanning a document with your phone and getting a clean PDF
How do I turn photos of a paper document into one clean PDF?
Save your favourite tools
Create a free iBuildPDF account to keep your favourite tools and find them quickly anytime.
Free account. The PDF tools themselves never need one.
Short answer
Photograph each page flat, in daylight, on a darker surface. Then use a scan tool that finds the page edges, straightens the page, lifts the paper to white and joins the pages into one PDF. If the upload form has a size limit, choose the smaller-file setting, compress the PDF, or compress a single photo to a size in KB.
Take the photo so the scan has an easy job
Most of a good scan is decided before the shutter. A few habits make the difference:
- Put the page on a darker, plain surface. The page is found by the large bright area in the picture, so a dark table behind white paper is the easiest case. A white table or a patterned cloth is the hardest.
- Use daylight, from the side or above. Your own shadow across the page is the most common flaw. A window beside you is better than a lamp behind you.
- Hold the phone parallel to the page. Straightening can fix an angle, but it stretches the far edge, so text there comes out softer.
- Keep all four corners in the frame, with a little table around them, and turn the flash off to avoid a bright patch.
One page per photo. Photograph them in reading order and the pages will already be in the right order.
What straightening and a look actually do
A scan tool does three separate things, and it helps to know which is which.
Finding the page. The photo is reduced to grey, the brightness that best separates paper from background is chosen (Otsu’s method), and the largest bright region is taken as the sheet. Its four extreme points become the corners. This is a statistical guess, not understanding: on a white table it can fail, which is why the corners can be dragged by hand.
Straightening. The area inside the corners is stretched back into a rectangle, so a page photographed at an angle comes out square.
The look. Colour lifts the paper to white and keeps the ink’s colour. Grayscale drops the colour and makes a lighter file. Black and white compares each spot with the average around it (adaptive thresholding), so a shadow across half the sheet does not turn into a black patch the way a single fixed cut-off would.
Fitting an upload limit
Phone photos are large, so a PDF made from several of them can be many megabytes. Three ways to bring it down, from least to most effort:
- Choose Small file when making the PDF. The pages are saved at a lower resolution and quality, which is plenty for reading on screen.
- Use Grayscale or Black and white for pages that are only text. Both make a much lighter file than colour.
- Compress the finished PDF with Compress PDF, or to a fixed budget such as 200 KB.
If the form wants one picture rather than a PDF — an ID photo, say — use Compress image to KB: it finds the highest JPG quality that stays under your limit instead of making you guess. Limits are counted in thousands of bytes here, which satisfies forms that count 1 KB as 1,000 or as 1,024.
Check the result before you send it
- Look at each page in the Result view. Corners slightly inside the paper cut off a margin; slightly outside leaves a dark border.
- Read the smallest text. If it is soft, choose Sharp instead of Small file, or retake that page closer.
- Remember the pages are pictures. The text cannot be selected or searched. If you need that, run the PDF through OCR.
- A scan is not a signature. If the document must be signed, sign the PDF afterwards rather than photographing a signed page you will need to edit.
The processing in Scan to PDF runs in your browser, so the photos are not uploaded anywhere while you work.
Tools this article covers
Sources
Primary documentation for the claims above.



