1. A document production system comprising: a scanner that is equipped with a motor which rotates a medium to be scanned around an axis; a printer; and a computing device, including a processor, configured to perform the functions of: causing the scanner to scan a soft copy template corresponding to the pre-printed media, determining, based on the soft copy template, a page margin of the pre-printed media, the page margin comprising a side margin, a header or a footer, wherein the determining comprises: (a) identifying a first variation in the intensity of light detected by a scan head of the scanner; (b) identifying an angle that the motor has rotated the pre-printed media when the first variation is detected and calculating a linear distance therefrom; and (c) providing a first offset of the linear distance from the top of the pre-printed media and marking the first offset as unprintable, determining, based on the page margin, a printable area of the pre-printed media, re-scaling content of the document such that the content is configured to fit into the printable area of the pre-printed media, and causing the printer to print the re-scaled content of the document in the printable area of the pre-printed media.