An acclaimed Queensland author has just weeks to live after being diagnosed with aggressive pancreatic cancer – but is still working on his last novel.