\NeedsTeXFormat{LaTeX2e}[2015/01/01]
\ProvidesClass{test}[2017/07/18 v1.03 Test class]
\PassOptionsToPackage{utf8x}{inputenc}
\newif\ifPF@print
\DeclareOption{print}{%
  \PF@printtrue
  \PassOptionsToPackage{utf8x}{inputenc}
  }
\DeclareOption*{%
  \PassOptionsToClass{%
    \CurrentOption}{report}}
\ProcessOptions\relax
\LoadClass[a4paper,10pt,twoside]{report}
\RequirePackage[T1]{fontenc}[2005/09/27]
\ifPF@print
  \RequirePackage[x-1a]{pdfx}
\else
  \RequirePackage{inputenc}[2015/03/17]
\fi
\endinput
