Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 153FD200B81 for ; Tue, 13 Sep 2016 19:10:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 13D06160AD2; Tue, 13 Sep 2016 17:10:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 59354160AAA for ; Tue, 13 Sep 2016 19:10:43 +0200 (CEST) Received: (qmail 55381 invoked by uid 500); 13 Sep 2016 17:10:42 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 55369 invoked by uid 99); 13 Sep 2016 17:10:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2016 17:10:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 927FD1A006E for ; Tue, 13 Sep 2016 17:10:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.573 X-Spam-Level: X-Spam-Status: No, score=0.573 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id cEKD7mzsCeKI for ; Tue, 13 Sep 2016 17:10:37 +0000 (UTC) Received: from mail.phoenixsoftware.com (mail.phoenixsoftware.com [209.203.78.181]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id B54985FBC4 for ; Tue, 13 Sep 2016 17:10:36 +0000 (UTC) Received: from [192.168.10.125] (laxvba.phoenixsoftware.com [209.203.78.180]) by mail.phoenixsoftware.com (Postfix) with ESMTPS id 19E5D161990 for ; Tue, 13 Sep 2016 10:10:24 -0700 (PDT) Subject: Re: Help on MediaBox and BoundingBox To: users@pdfbox.apache.org References: From: Jorge Reyes Message-ID: <0ef1429b-d16f-ef38-8756-22408aaf0fe3@phoenixsoftware.com> Date: Tue, 13 Sep 2016 10:10:18 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------354C06AFE26BE55B6B75AD60" archived-at: Tue, 13 Sep 2016 17:10:44 -0000 --------------354C06AFE26BE55B6B75AD60 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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. 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: users-unsubscribe@pdfbox.apache.org > For additional commands, e-mail: users-help@pdfbox.apache.org > --------------354C06AFE26BE55B6B75AD60--