


Some printers physically are not capable to draw or print at whole area of the page. Reasons for that are usually in constructive nature of printers. They are different from page margins set by user. It is important to know that every printer has its own physical page margins that narrows size of printable area of the selected page, so called Printer Hard Margins. So when we set all four page margins the page printable area gets smaller than actual physical size of page. There are four page margins, accordingly to the page edges: This space is called Page Margin Set By User. We usually leave some unused empty space on page from page borders toward center of page that separates content of the page from the edge of the page. Size of this area may vary because of many factors. If we take plain A4 paper and use whole page area to draw something on, the whole page area would be printable area and size of that area would be 210×297 mm. The area of the page that can be used to print or write document on, is called Page Printable Area. According to that here are some measurement units ratio: In this article and computer program proposed as solution, pixel is used as measurement unit. Whatever calculation we do, the measurement unit must be the same. Measurement units are often different for Font (points or pica), Paper size (points, inches or millimeters), Computer graphics (pixels), etc. Here are some standard page sizes in millimeters: There are world standards when printer page sizes are in question. There are many important printer characteristics, one of them is page sizes supported by printer.

Page printable area size height and width.Physical size of page supported by printer.To solve these three simple tasks we need to know,
#Pdf shrink text size to fit on one page how to
How to automatically change font size so that the whole document text can fit into the page?.How to know if a line of text that we want to print will fit into page row?.How to calculate the printer page size, height, and width, expressed in the number of characters that can fit across the page height and width, for a selected font?.
#Pdf shrink text size to fit on one page windows
How to: Obtain Font Metrics - Windows Forms.Thanks to this information, we can create a program that can automatically change font size so that a document content can fit on a page. Whenever we make a computer program that uses a printer for printing documents, there is a need to know how many characters of a selected font can fit on a selected page width and height.
