[XeTeX] xdvipdfmx doesn't seem to respect PDF crop areas

Akira Kakuto kakuto at fsci.fuk.kindai.ac.jp
Fri Sep 22 12:47:55 CEST 2006


> For posterity, in case anyone ever needs to do this again: the i- 
> installer version only has the kpathsea headers and libs if you  
> install the 'full' TeX, not the 'basic' one. Next, the kpathsea  
> headers seem vaguely broken in that if the preprocessor symbol  
> 'HAVE_PROTOTYPES' is not externally defined, then gcc chokes on them.  
> (This was tricky to find since the gcc barf was hidden by the  
> configure script for dvipdfm.) So finally by setting CFLAGS to '- 
> DHAVE_PROTOTYPES', I got ebb to compile. At which time I found that  
> ebb only works for PDF versions 1.3 and below.

Formally higher version will be allowed by rewriting the function
pdf_set_version() in pdfobj.c like

static unsigned pdf_version = 4;
void pdf_set_version (unsigned version)
{
  if (version >= 2 && version <= 7) {
    pdf_version = version;
  }
}

> So maybe xdvipdfmx is disregarding the bounding box info from .bb  
> files too? Let me know if I can test anything further, and thanks  
> Akira and Jonathan for the help and suggestions!

Please note the option [dvipdfm]:
\documentclass[dvipdfm]{article}
... ...


If you set the [dvipdfm] option as above, compilation itself
by xelatex must fail if foo.bb is missing.


Best regards,
Akira


More information about the XeTeX mailing list