Use Read PDF Text to get the content, then apply the Text to Right activity with the separator "to " to extract everything after it. Finally, use string functions like Split or Regex to isolate and retrieve only the dynamic “To Location” from that extracted text.
Try to use regex activity with pattern to\s+([A-Za-z\s]+)\s+( and get Matches(0).Groups(1).Value to extract the To location dynamically and change accordingly.