 Eighteen years later, Stanislaw Herburt built a castle here, the town also had a printing shop, where in 1612 the "Annales seu cronici incliti regni Poloniae" (The Annals of Jan Długosz) were published.Until the Partitions of Poland (1772), Dobromil was part of Przemyśl Land, Ruthenian Voivodeship.In the course of time, the branch of the Herburt family which resided in the town changed its name into Dobromilski.