Hi Pentaxian and friends,
The Pentax k20d has a special function located in the Custom Setting menu. It is Custom Setting No. 34 and it is called Focus Adjustment. According to Pentax, all newer DA Series of lenses are tuned at the factory for proper focus with all Pentax DSLR bodies. However, the older K-mount lenses may produce back or front focused images. The K20D’s AF Adjustment function allows the adjustment of the focus position for these lenses and can store up to twenty lenses in its memory. It is also possible that newer DA lenses need adjustment as well. Any high precision instruments, such as modern lenses, may need calibration once in a while. With the K20D built-in firmware, you can check and adjust all your current Pentax K-mount lenses.
Reading the Pentax manual, or our book,
the Pentax K20D “Everything you need to know…and then some” for that matter, the AF Focus adjustment function is explained, but there are no adjustment chart to comprehensibly adjust the focus of any lenses. A bench mark chart is required. There are a few AF focus check charts floating around on the internet, but I have not seen any designed specifically for the Pentax line of DSLRs and lenses. The charts I have seen on the internet were all designed with the Nikon products in mind, although there are no in-camera adjustments possible with these DSLRs. All you do is checking the back or front focus problems so that you can send your lens or lenses to the manufacturer for adjustment. On all the charts I have seen, either the English measurement scale or the Metric measurement scale were incorrect. I also noticed that they required laying the chart on a flat surface and position the camera at 45 degrees, which is a little difficult to do accurately.
Well, it took me a little while, but I designed a chart for the Pentax line of DSLRs and lenses. It is free for the download amd will also be included with all K20D books. It is very simple to use and will stand at exactly 45 degree on a flat surface, requiting you to simply set your camera horizontally. The chart was designed with AutoCAD.
(This is an engineering design software package, for those of you that are not familiar with AutoCAD). The chart measurements are exact and adjusted on the 45 degree plane to reflect and measure the exact back or front focus depth. In other words, it shows the exact depth of focus measurements in millimeters or inches, from the 45 degree position. It just required a little trigonometry formula for right angle triangle.
The actual method of checking your lenses is written on the sides of the chart. You can download the chart here,
Pentax K20D AF Adjustment Chart Revision 1.
Here are the instructions for setting it up.
You can use the chart as you please and distribute it to anyone, but you cannot sell the chart or reproduce it for publication without written permission. I think that’s fair enough.
1. After downloading the PDF chart, print it preferably on a thick stock letter sized paper. I used a matte photo paper with a 61lb weight / or 10 mil thickness.
2. Next, cut the chart where is says “Cut at line”. 
3. Score the chart where is says “Score and fold”. Scoring simply means to use a straight edge and a dull side of a knife and tracing along the line to make an indentation in the paper so that folding becomes easier and precise.
4. Fold the chart as shown.
5. Staple of tape the chart pointed end as shown. The angle is already adjusted so that the chart will lay exactly at 45 degree when placed on a flat surface such as a table or desk.
Use the instructions on the chart to test your lenses. 


If your lens AF is adjusted properly, it will look like the picture above. The target cross is in perfect focus.
If your lens AF has front focus problems , it will look like the picture above. The target cross is not in perfect focus. The point of perfect focus is in the front of the target cross. You need to adjust the front focus by half the distance of focused area. In this case it looks like 4mm will do it.
If your lens AF has back focus problems , it will look like the picture above. The target cross is not in perfect focus. The point of perfect focus is in the back of the target cross. You need to adjust the back focus by half the distance of focused area. In this case it looks like 2mm will do it.
You can read the chart directly on the camera monitor with the zoom function, but I found it was easier to print it.
That’s all there is to it. I hope you find the chart useful and please email me with your questions or suggestions. Don't take yourself too seriously, and just adjust your lens if you consistently have many pictures with front or back focus problems. You might be the problem, not the lens.
Best of all, go out and take pictures. The world is not made of pixels. Go smell the flowers and take pictures of them.
Thank you for reading,
Yvon Bourque