Skip to Content

What are the differences between PDPageGetMediaBox and PDPageGetSize?

Estimated Reading Time: < 1 Minute

The PDPageGetSize() interface was created first to return the PDF page size, returning it as a simple width and height.

The following interfaces were added later to provide more precise definitions of the PDF page:

  • PDPageGetMediaBox()
  • PDPageGetCropBox()
  • PDPageGetBox()

PDPageGetMediaBox() returns an ASFixedRect such that the right-left=width and top-bottom=height .

What are the differences between PDPageGetMediaBox and PDPageGetSize?
  • COMMENT