I place vector pdf generated from indesign, like the attached.
Looks like a rounding difference on the conversion from the PDF’s size in inches to millimeters. If I inspect the PDF Acrobat reports the trim dimension as 6.693" x 4.724"

Those inch dimensions don’t convert to exactly 170mm x 120mm:


The script could force the scale of the graphic to 100%:
var myDoc = app.activeDocument;
//an array of page names
var pa = [1,16,20,22]
//the bounds to use
var ba = [-5,0,115,170]
//set units for bounds—points?
app.scriptPreferences.measurementUnit = MeasurementUnits.MILLIMETERS;
//the target page
var p;
for (var i = 0; i < pa.length; i++){
//get the target page by name
p = myDoc.pages.itemByName(pa[i].toString())
//if the page exists run the function
if (p.isValid) {
setBounds(p,ba)
}
};
app.scriptPreferences.measurementUnit = AutoEnum.AUTO_VALUE;
/**
* Sets the bounds of all the graphics on the specified page
* @ param target page object
* @ param the bounds to set
* @ return void
*/
function setBounds(p,b){
var tfs = p.allGraphics;
for (var i = 0; i < tfs.length; i++) {
tfs[i].parent.geometricBounds = b;
tfs[i].geometricBounds = b;
tfs[i].horizontalScale = 100;
tfs[i].verticalScale = 100;
}
}