Creating a PDF file inside an iOS app may be easy however scaling the PDF file to right size may not be. An A4 sized PDF file is most common size and frequently used in printing documents.
The objective of this post is to explain how to create an A4-sized PDF file in iOS application from an HTML rendered UIWebView.
The basic class used in this task is explained below: