We solved it by generating pdf with only file_number and revision.
when creating ECO we moved the pdf file to pdf old folder when we
are doing it the part number and revision are the same as the pdf
As a result only when the part is in status Released you can find
pdf file in the pdf folder.
Let me know if it help you