Refactored PDF Panel

More efficient PDF panel, properly formatted.