so the original code is from here https://github.com/vslavik/diff-pdf Maybe it was a bad idea to include source code here.