pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Reyes <jorgere...@phoenixsoftware.com>
Subject Re: Help on MediaBox and BoundingBox
Date Tue, 13 Sep 2016 17:10:18 GMT
Thank you for your answer, Herr Hausherr.

I was asking because there is a BoundingBox class and the documentation 
states: "T*his is an implementation of a bounding box. This was 
originally written for the AMF parser.*"  Additionally, the PDPage class 
has a getBBox() method, so I was curious to the differences between 
MediaBox, BoundingBox, CropBox and BleedBox.  Is this something I can 
find in the PDF specification document?

Thanks again for your help.


On 9/13/2016 9:56 AM, Tilman Hausherr wrote:
> Am 13.09.2016 um 18:50 schrieb Jorge Reyes:
>> Hello:
>> First time user here.  What is the difference between MediaBox and 
>> BoundingBox? And when should I use either? 
> I hadn't heard of the page BBox. This returns the cropBox.
> MediaBox:
> A rectangle expressed in default user space units, that shall define 
> the boundaries of the physical medium on which the page shall be 
> displayed or printed
> CropBox:
> A rectangle, expressed in default user space units, that shall define 
> the visible region of default user space. When the page is displayed 
> or printed, its contents shall be clipped (cropped) to this rectangle 
> and then shall be imposed on the output medium in some 
> implementation-defined manner. Default value: the value of MediaBox.
> I can't tell what you should use. What do you want to do? For create a 
> PDF, just set the mediabox to the A4 and don't bother about the rest.
> Tilman
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message