I'm sure Tilman's answer is the practical one.

If deeper reading is desired, see
https://www.prepressure.com/pdf/basics/page-boxes

On Tue, Sep 13, 2016 at 1:14 PM, Tilman Hausherr <[email protected]>
wrote:

> Am 13.09.2016 um 19:10 schrieb Jorge Reyes:
>
>> 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?
>>
>
> Yes, just google for PDF 32000 specification. But like I said, the page
> BBox does not really exist, the method returns the cropBox. I suspect this
> was done because the base class required it.
>
> You will usually only need MediaBox and CropBox in your work.
>
> Tilman
>
>
>
>> Thanks again for your help.
>>
>> Jorge
>>
>>
>> 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: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to