serializer working. PDF printing example.
removed duplicated code