Fixed the PDF form comparison

Using diff(1) as it seems to be the easiest option to implement