Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4032360
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:42:42+00:00 2026-05-20T11:42:42+00:00

How to handle different type of Pdf display boxes like media box, cropbox etc..

  • 0

How to handle different type of Pdf display boxes like media box, cropbox etc.. I am drawing pdf and page’s cropbox and media box are different so page is cutting. So any one have a clear idea how to take care or handle about this boxes while drawing a page.
CGRect cropBoxRect = CGPDFPageGetBoxRect(drawPDFPageRef, kCGPDFCropBox);
CGRect mediaBoxRect = CGPDFPageGetBoxRect(drawPDFPageRef, kCGPDFMediaBox);
CGRect effectiveRect = CGRectIntersection(cropBoxRect, mediaBoxRect);


I am using above effective rect in drawing.and it creates issue.
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:42:43+00:00Added an answer on May 20, 2026 at 11:42 am

    MediaBox is defines the physical page size, CropBox defines the visible page size. The size of the page you see in any viewer is given by the CropBox. These boxes are defined in terms of lower left and upper right corners [llx lly urx ury]. Usually the CropBox is contained in MediaBox, so the effectiveRect in your code should match the CropBox.

    The MediaBox is mandatory, the CropBox is optional and when it is missing, its value matches the MediaBox.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to develop an exception handler that should handle like 5 different type
Is it possible to handle different type of archive (zip,rar,7z,tar,) using qt framework ?
I would like to handle requests differently depending upon the MIME type. For example,
I'm just about to create a WorkQueueService that can handle different type of WorkItems.
What is the best way to handle different subtypes of an abstract supertype as
I have 3 different types of modal windows to handle different events. They popup
With Perl, what is an easy way to handle different development versus production libs
I am trying to handle two different WebException 's properly. Basically they are handled
I am developing a basic android app which must handle several different things typically
I'm using two different TapGestureRecognizer to handle both single and double tap on screen.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.