iphone Programming Glossary: writecontext
Merge PDF files on iOS http://stackoverflow.com/questions/6553540/merge-pdf-files-on-ios pdfRef1 NSInteger numberOfPages2 CGPDFDocumentGetNumberOfPages pdfRef2 Create the output context CGContextRef writeContext CGPDFContextCreateWithURL pdfURLOutput NULL NULL Loop variables CGPDFPageRef page CGRect mediaBox Read the first PDF and.. i page CGPDFDocumentGetPage pdfRef1 i mediaBox CGPDFPageGetBoxRect page kCGPDFMediaBox CGContextBeginPage writeContext mediaBox CGContextDrawPDFPage writeContext page CGContextEndPage writeContext Read the second PDF and generate the output.. i mediaBox CGPDFPageGetBoxRect page kCGPDFMediaBox CGContextBeginPage writeContext mediaBox CGContextDrawPDFPage writeContext page CGContextEndPage writeContext Read the second PDF and generate the output pages NSLog @ GENERATING PAGES FROM PDF 2..
|