[XeTeX] XeTeX cannot deal with pdf v1.6

Jonathan Kew jonathan_kew at sil.org
Mon May 26 18:14:11 CEST 2008


Hi Joseph,

Several comments that might help....

On 26 May 2008, at 7:07 am, Joseph LEE wrote:

> Hi All
>
> These days I need to extract a page in one pdf file (v1.4) and  
> insert it
> into a tex document in graphics style. But the Acrobat 8 would rise  
> the
> version of extracted page to v1.6.
>
> With the simplest source:
>
> \documentclass[a4paper]{article}
> \usepackage{graphicx,color}
> \begin{document}
> \resizebox{\textwidth}{!}{\includegraphics{5.pdf}}%5.pdf is pdf v1.6
> \end{document}
>
> The XeLaTeX warns and could not output any page
>
> ** WARNING ** Couldn't open font map file "psbase14.map".
> ** WARNING ** Couldn't open font map file "pdfmfnt.map".

These warnings may not be directly relevant here, but they sound like  
there's a config problem with xdvipdfmx. Are you running a very  
recent update? If so, you may need to move the dvipdfmx.cfg file from  
(SOMEWHERE)/texmf/dvipdfm to (SOMEWHERE)/texmf/dvipdfmx, to match  
recent changes in the dvipdfmx and xdvipdfmx drivers.

(And if you do copy/move such a file, remember to update the TeX  
filename databases using texhash or the MikTeX equivalent... you  
didn't specify exactly what TeX system you're using.)

> ** WARNING ** Version of PDF file (1.6) is newer than version limit
> specification.

You can try changing the PDF version setting in the config file; see  
the "V" entry, probably the first option that's specified in  
dvipdfmx.cfg if yours looks anything like mine. You can change it  
from "4" to "6" to suppress this warning.

> 'gswin32c' is not recognized as an internal or external command,
> operable program or batch file.
> ** WARNING ** Filtering file via command -->gswin32c -q -dSAFER
> -dNOPAUSE -dBATC
> H -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.4
> -dAutoFilterGrayImag
> es=false -dAutoFilterColorImages=false -dGrayImageFilter=/FlateEncode
> -dColorIma
> geFilter=/FlateEncode -dUseFlateCompression=true
> -sOutputFile=C:/DOCUME~1/JOSEPH
> ~1/LOCALS~1/Temp/dvipdfmx.b02256 -c .setpdfwrite -f ./5.pdf -c quit<--
> failed.
> ** WARNING ** Image format conversion for "./5.pdf" failed...
> ** WARNING ** Image width=0.0!
> ** WARNING ** Image height=0.0!
> ** ERROR ** pdf_ref_obj(): passed invalid object.

Here, xdvipdfmx is trying to use Ghostscript to convert the image  
format. I think it's doing that to try and re-encode it as PDF 1.4;  
but GS apparently isn't installed or isn't found on your system.  
Result: it ends up without a usable file.

Changing the PDF version # in the config file may stop it from trying  
to do this, and allow you to include the page directly.

JK



More information about the XeTeX mailing list