I am getting the following error when I run pdflatex:
Syntax Error: Expected the optional content group list, but wasn't able to find it, or
it isn't an Array
It SEEMS to build correctly, but I am just trying to figure out why this is happening. The following code triggers the problem.
\begin{figure}[hbtp] %[!t]
\centering
\includegraphics[scale=0.55]{figures/illustration.pdf}
\end{figure}
Any ideas? Thanks for your help!
Here is the additional information that was requested:
output of pdftex –version
MiKTeX-pdfTeX 2.9.4535 (1.40.13) (MiKTeX 2.9)
Copyright (C) 1982 D. E. Knuth, (C) 1996-2012 Han The Thanh
TeX is a trademark of the American Mathematical Society.
And here is a link to the pdf causing the issues: https://www.sugarsync.com/pf/D6819494_1990813_6559556
EDIT
Well, I've learned a bit more. Although I don't know what the problem is exactly with the pdf, it IS a problem with the pdf. I created it using the dopdf printer. I created the same one using cutepdf, and pdflatex compiled without any errors.
On a somewhat-related note: if anyone has recommendations on a nice, free pdf printer, let me know! I've used dopdf for awhile, which seems to work just fine for regular pdf viewing. I think that cutepdf will become what I use for tex documents from now on, unless people have other solutions.
And if anyone is able to identify exactly WHY the dopdf version isn't working, please share!
Thanks!
Best Answer
The error message probably comes from the library (
xpdf
orpoppler
) that pdfTeX uses to read and embed PDF files. Eitherillustration.pdf
is indeed broken or the library has a bug or does not support this kind of PDF files. For further analysis the output ofand the file
figures/illustration.pdf
would be useful.Edit
File
illustration.pdf
is faulty, its reformatted/Catalog
object:The PDF specification says about
OCProperties
:The list is specified in key
/OCGs
:The required key
/OCGs
is indeed missing and the error message of MiKTeX's pdfTeX is correct.The file was created by (
/Producer
entry in the catalog):I have not found that optional content groups are used in
illustration.pdf
. Thus the bug is probably that the/OCProperties
key should have been removed if there are no optional content groups. Also MiKTeX's pdfTeX runs without error, if/OCProperties
is changed (e.g. in /qCProperties).IMHO the error message is correct, but it can be ignored, because optional content groups are not used anyway.