Enumeration to pdf problem