This is pretty straightforward.
This is the diagram without voltage dividers, where the signals feed directly from the encoder to the Due:

This is the diagram with the voltage dividers (which proved to perform worse than the first one, as I have described in a previous message above):
