Print document / pdf in different paper size through airprint in objective c
<p>I am generating pdf and then printing that pdf through <code>airprint</code>. when I see in preview it won't give me option of choosing paper size.  </p>

<p>I use the following code for printing</p>

<pre><code>UIPrintInteractionController *pic=[UIPrintInteractionController sharedPrintController];
NSData *myData = [NSData dataWithContentsOfFile:logPath];
if ( pic &amp;&amp; [UIPrintInteractionController canPrintData: myData] ) {
    pic.delegate = self;

    UIPrintInfo *printInfo = [UIPrintInfo printInfo];

    printInfo.outputType = UIPrintInfoOutputGeneral;
    printInfo.jobName = [logPath lastPathComponent];
    printInfo.duplex = UIPrintInfoDuplexLongEdge;
    pic.printInfo = printInfo;
    pic.showsPageRange = YES;
    pic.printingItem = myData;


}
</code></pre>

<p>Now I want the pdf to be print in A4, A5, Letterpad, postcard, etc size.</p>

<p><strong>How do I include the below option in preview panel?</strong></p>

<p><a href="https://i.stack.imgur.com/ty0hs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ty0hs.jpg" alt="This type of size format"></a></p>