This is a copy of the picture slab_the_helper is refering to:
There are many differences in the pad loctions for connectors. With a bit of searching n Aliexpress you find pictures of assortments of 100 different USB connectors.
For DB25 there are also plenty of variations. In older connector variants the PCB pins tend to be pretty far from the “flange” on the front, while for others (more modern / “small form factor”?) this distance is much shorter.
One of the ways to go forward is to find the exact datasheet for your connector brand, and use the measurements for that.
For some brands you can download STEP models of the connectors, and there are even websites with databases of footprints for all kind of electronic components.
I’m a sort of old fashioned guy, and some time ago I made: