The best way in such cases is using Help > Recover. It scans through auto-saved files and suggests restoring project from them.
With respect to PDF and HTML, it is surely possible to gather data from them, the matter is how much time and efforts does it cost. There is no built-in import from PDF/HTML in GanttProject, sorry.