Why do these 2 UIGraphics drawing operations produce images of different sizes?
Convert CGPDFPage to UIImage This article is to help readers understanding about converting CGPDFPage to UIImage. The CgpdfDocument has the CGPDFPage class, which stores all of the pages in a PDF document into a single memory page. This means that all the text, shapes, images and graphical objects that make up a particular page are drawn from a ready-made drawing bitmap on the CgpdfMemoryPage. In almost every case, this bitmap is drawn from a PNG file without any compression. I’ll put together a sample project to showcase all of this information, and walk you through how creating a PDF document from scratch. We'll begin by creating a new Xcode project, and follow through with adding some basic starter features to make a functional app quickly. Converting CGPDFDocument to UIImage As the name implies, this class is designed to convert CGPDFDocument to UIImage. To do this, we first need to create an instance of the class. The next step is to create a CGPDFPage from the PDFDocument...