title: Pdf - MediaBox or CropBox
body: <p>I'm having this problem:</p>
  
  <p><a href="https://stackoverflow.com/questions/7939551/pdf-rendering-using-cgcontextdrawpdfpage-cannot-find-cropbox">PDF rendering using CGContextDrawPDFPage : cannot find CropBox</a></p>
  
  <p>but this question isn't actually answered. 
  Recap: I'm having trouble showing one particular pdf file, crop marks are visible but not on Safari on another reader. I've tried to use <code>kCGPDFCropBox</code>  instead of <code>kCGPDFMediaBox</code>  in the rendering, but resulting rects have the same values. Same result with <code>kCGPDFTrimBox</code>, example:</p>
  
  <pre><code>CGRect pageRect = CGPDFPageGetBoxRect(pdfPage, kCGPDFMediaBox);
  </code></pre>
  
  <p>UPDATE:</p>
  
  <pre><code>origin=(x=0, y=0) size=(width=595, height=842)
  </code></pre>
  
  <p>for pageRect with <code>kCGPDFMediaBox</code> and</p>
  
  <pre><code>origin=(x=42.9783, y=61.4606) size=(width=511.299, height=719.97)
  </code></pre>
  
  <p>for pageRect with <code>kCGPDFCropBox</code></p>
  
  <p>Using the second one, the page is cropped, but not how I wanted to (leaving print and crop marks and cutting content). Other viewers still works fine with this file</p>