IPhone - print multiple images on one sheet

I have a jpgs (7) array that I would like to print. All images are the same size, 900x1382, and I would like to print two of them on the page, rotate them 90 degrees and print them on top / bottom on paper with letter size.

It looks like I need to create printFormatter, but where I get stuck. I have read the Apple Drawing and Printing Guide, probably 10 times, and I cannot figure out how to do what I want to do.

Can someone help me or at least point me towards a good tutorial?

+6
ios iphone printing
source share
1 answer
- (void)drawPageAtIndex:(NSInteger)pageIndex inRect:(CGRect)printableRect { // You can draw images in the specified rect. } 

Try to subclass UIPageRenderer, then override the above function. You can draw images in the specified rectangle. I think you need to check out the Apple PrintPhoto sample sample and your own drawing from the old manual. Check it out and add comments about it. thanks:)

+3
source share

All Articles