Try the Quartz 2D API. It has very good support for reading PDF files.
- When learning the API, you should be able to read all input PDF document files
- get a pdf page for them
- Create a PDF context for your new document.
- draw PDF pages in PDF
Please note that the PDF page drawing code must be between the start and end pages.
CGPDFDocumentCreateWithURL CGContextBeginPage CGPDFDocumentGetPage CGPDFContextCreateWithURL CGContextDrawPDFPage CGContextEndPage
Check out Apple docs for
[CGContext][1] [CGPDFDocument][2] [CGPDFPage][3]
Check if this helps, or let me know if you need some sample pseudo code.
msk
source share