I am trying to import a PDF file into XeLaTeX using \includepdf{xyz.pdf} . The xyz.pdf file is a scan created by the Xerox 5755 machine and PDF version 1.3.
The error I am getting is:
** WARNING ** No valid name object found.
** WARNING ** Could not find a value in dictionary object.
** WARNING ** Didn't find "endobj".
** ERROR ** pdf_link_obj (): passed invalid object.
I tried normalizing the PDF by running pdftk xyz.pdf output xyz2.pdf and this fixes the problem - but only for some PDF files, without the obvious relationship between these pdftk fixes files and those that it doesn't have. There are always files normalized with pdftk that continue to show the same error as the unnormalized file.
I tried to find a solution to this problem and came up with this topic: XeLaTeX problems with embedded graphics , which suggests that the problem can be solved using -output-driver=xdv2pdf or, alternatively, using pdf(la)tex . Alas, I cannot use PdfLaTeX because I need Unicode XeLaTeX support. In addition, I use Linux, so I cannot use Mac-specific xdv2pdf .
I would be very grateful for any thoughts and materials on why this PDF does not load XeLaTeX and - even better; how to "fix" these PDF files.
Respectfully,
Brian
source share