Copy link to clipboard
Copied
Bonjour,
Je cherche à corriger un problème.
Quand je règle le zoom sur 100 % en travaillant sur mon format A4, celui-ci n'est pas correct. Si je veux avoir les bonnes dimensions, en taille réelle, il faut que je règle le zoom sur 94,5 %, ce qui est assez pénible. Est-il possible de résoudre cela ?
Merci ! 🙂
There have been some recent discussions of this issue (getting "100% zoom" to represent the exact page size on the screen). You don't say whether you are on Mac or Windows, but I believe both can be adjusted so that the zoom level is accurate.
This involves setting your screen scaling to a precise value within InDesign. Unfortunately, this simple value is not accessible via a Preferences field, but can be set using a script.
Install this script, and then run it. Set your screen resolution to
...Hi @Baptiste226969048uza , just to clarify, normally you shouldn’t need my script to get a 100% view that matches print output, but it looks like the problem occurs in some cases when you change the InDesign UI scaling preference—I’m on aMac still using CC2021 so I can’t test, but the script doesn’t actually change your monitor res, it just changes how InDesign adjusts its scale based on the monitor resolution reported by the OS.
Copy link to clipboard
Copied
There have been some recent discussions of this issue (getting "100% zoom" to represent the exact page size on the screen). You don't say whether you are on Mac or Windows, but I believe both can be adjusted so that the zoom level is accurate.
This involves setting your screen scaling to a precise value within InDesign. Unfortunately, this simple value is not accessible via a Preferences field, but can be set using a script.
Install this script, and then run it. Set your screen resolution to a value that will produce an exact size for 100% zoom — you can do this by measuring the width and calculating the different setting needed.
/*
* Set a custom display resolution
* Rob Day 2020-2022
*/
var mm = app.generalPreferences.mainMonitorPpi.toFixed (2);
$.writeln(Number(mm))
makeDialog()
var cRes, ckBox;
function makeDialog(){
var theDialog = app.dialogs.add({name:"Display Resolution", canCancel:true});
with(theDialog.dialogColumns.add()){
staticTexts.add({staticLabel:"Custom Resolution:"});
staticTexts.add({staticLabel:"Use System Setting: " + mm + " "});
}
with(theDialog.dialogColumns.add()){
cRes = realEditboxes.add({editValue:Number(mm), minWidth:100});
ckBox = checkboxControls.add({checkedState:false, minWidth:150});
}
if(theDialog.show() == true){
cRes = cRes.editValue;
ckBox = ckBox.checkedState;
setCustomRes()
theDialog.destroy();
}
}
/**
* Discription
* @ return value
*
*/
function setCustomRes(){
if (ckBox) {
app.generalPreferences.customMonitorPpi = 72;
app.generalPreferences.useCustomMonitorResolution = false;
} else {
app.generalPreferences.customMonitorPpi = cRes
app.generalPreferences.useCustomMonitorResolution = true;
}
app.activeWindow.zoomPercentage = 100;
}
Copy link to clipboard
Copied
Hi,
Thank for your answer, I don't really understand why I need a script if I have to change my screen resolution, which I prefer not to touch.
However, if I try, where can I find this script ? I have never used this feature.
Thanks
Copy link to clipboard
Copied
Copy the text
/*
* Set a custom display resolution
* Rob Day 2020-2022
*/
var mm = app.generalPreferences.mainMonitorPpi.toFixed (2);
$.writeln(Number(mm))
makeDialog()
var cRes, ckBox;
function makeDialog(){
var theDialog = app.dialogs.add({name:"Display Resolution", canCancel:true});
with(theDialog.dialogColumns.add()){
staticTexts.add({staticLabel:"Custom Resolution:"});
staticTexts.add({staticLabel:"Use System Setting: " + mm + " "});
}
with(theDialog.dialogColumns.add()){
cRes = realEditboxes.add({editValue:Number(mm), minWidth:100});
ckBox = checkboxControls.add({checkedState:false, minWidth:150});
}
if(theDialog.show() == true){
cRes = cRes.editValue;
ckBox = ckBox.checkedState;
setCustomRes()
theDialog.destroy();
}
}
/**
* Discription
* @ return value
*
*/
function setCustomRes(){
if (ckBox) {
app.generalPreferences.customMonitorPpi = 72;
app.generalPreferences.useCustomMonitorResolution = false;
} else {
app.generalPreferences.customMonitorPpi = cRes
app.generalPreferences.useCustomMonitorResolution = true;
}
app.activeWindow.zoomPercentage = 100;
}
Save it to a file called 100percent or something with file extension .jsx
Any text editor will do
Just make sure the actual file extension is .jsx
Copy link to clipboard
Copied
Hi @Baptiste226969048uza , just to clarify, normally you shouldn’t need my script to get a 100% view that matches print output, but it looks like the problem occurs in some cases when you change the InDesign UI scaling preference—I’m on aMac still using CC2021 so I can’t test, but the script doesn’t actually change your monitor res, it just changes how InDesign adjusts its scale based on the monitor resolution reported by the OS.
Copy link to clipboard
Copied
Hi
I did not change InDesign UI scaling preference.
I specifiy that I'm using Windows 11 Pro.
I tried and this windows appears : what does 144 mean ? It is a ratio or something ? I understand that it has to do with the resolution but I don't know how.
Thank you
Thank you
Copy link to clipboard
Copied
144ppi is the display resolution reported to InDesign by the OS, which InDesign uses to calculate the 100% Print View.
In your case, for whatever reason 144 is not right. Try entering 136 and see if that gives you the accurate 100%print view (144 x .945 = 136).
Copy link to clipboard
Copied
After few tests, 126 is approximately the correct value.
I tried to calculate this ppi with this : https://www.sven.de/dpi/
My screen resolution is 2560 x 1440 with Windows and mesures 15,6 inches. It gave me 188.28 PPI and I entered it, but the result is wrong. I don't understand why.
Copy link to clipboard
Copied
After few tests, 126 appears to be aproximately the good value.
I tried with this website to calculate it (https://www.sven.de/dpi/ ) but the result - 188.28 - is incorrect when I enter it.
Copy link to clipboard
Copied
After few tests, 126 appears to be aproximately the good value.
I tried with a website to calculate it but the result - 188.28 - is incorrect when I enter it. I specify that my screen size is 15,6 inches and the Windows resolution is 2560 x 1440.
Copy link to clipboard
Copied
OMG It actually works although I paste your code in Text Edit (macOS) as plain text and save as .js because .jsx cannot be runned. Thank you very much.