title: Duplicate CALayer
body: <p>I want to create a PDF from a UIView.
  Now I want to copy the layer and resize it to a DIN A4 page size.</p>
  
  <pre><code>CGRect A4PageRect = CGRectMake(0, 0, 595, 842);
  CALayer *myLayer = [pdfView layer];
  myLayer.bounds = pageRect;
  </code></pre>
  
  <p>But this cody resizes the visible layer on my screen.</p>
  
  <p>How can I copy the layers contents to resize it to fit an A4 page?</p>
  
  <p>Thanks for help, Julian</p>