ERROR :
! LaTeX Error: Missing \begin{document}. See the LaTeX manual or LaTeX Companion for explanation. Type Hfor immediate help. ... l.1 ď »ż%%
SOLUTION:
Convert all document to ANSI ( style, dokument .… ), if you use
\usepackage[cp1250]{inputenc}%
Source : http://tex.stackexchange.com