I’ve just tested the code with the most recent version of PD4ML and was not able to reproduce the issue.
Could you please publish a PDF sample (which should help us to determine conversion parameters and PD4ML version you used) and also give a try to v380b1?