[NTG-pdftex] pdfpagebox

Thanh Han The hanthethanh at gmail.com
Thu Sep 15 18:01:07 CEST 2005

On Thu, Sep 15, 2005 at 02:57:59PM +0200, Heiko Oberdiek wrote:
> Hello,
> On Thu, Sep 15, 2005 at 04:31:18AM -0700, Thanh Han The wrote:
> > Another issue is that I am implementing a primitive
> > requrested by Cho, to grab the BBox of an included pdf.
> What's the purpose? The knowledge of width and height is
> important (graphicx, pdfpages, ...). By putting \pdfximage
> into a box these values are easily available (see pdftex.def).
> I would be interested, in which case the exact offset must
> be known.

to be honest I don't know either -- because I don't use
dvipdfm(x). Just trying to satisfy a request by Cho.

> Next issues:
> * I assume the box (media, crop, ...) is choosen by
>   the previous \pdfximage?

yes exactly

> * What is "1" until "4"?
>   * It is the first until fourth component
>     of the box retangle, given in the pdf file?

they are the values as returned by xpdf -- 
page->{x1, y1, x2, y2}. I don't know whether xpdf does 
normalize them, but I hope so.

>   * The pdf spec says that the box typically has the form:
>       [ ll_x ll_y ur_x ur_y ]
>     (PDF spec for 1.6, section "3.8.4 Rectangle")
>     But there is a note that says that any two diagonally
>     opposite corners are acceptable and that applications that
>     process PDF should be prepared to normalize such rectangles.
>     The question is now, does pdfTeX normalize the rectangle?
>     This has the advantage that the numbers "1" until "4" also
>     have the symbolic meaning "ll_x" until "ur_y".


More information about the ntg-pdftex mailing list