


It should look like the one I did from the screenshot you shared. That should run the script.Īt the end of this first script you will have a new file with the same name but with "(Cropped)" at the end of the name. You select all the script (ctrl A or cmd A) and you press the ENTER key of the numerical keypad. You copy my first script then paste it in the console window. If the window is not empty, please clear it. Open it via ctl J on Windows or cmd J on Mac with your book file open. In a first time I give you the process from the console window. I hope that will help the profile doesn't exist on your version you will not be able to do it automatically for all your book, but only manually as explaind previously.įor using the scripts I gave you, you can use the console window or an action wizard (better if you have to use it several times). This.newPage(this.numPages+i,A4Format,A4Format) If (Number(nbP)*thisFormat<10) var nmberPages=Math.floor(thisScale*thisFormat/A4Format) Įlse var nmberPages=Math.floor(thisScale*thisFormat/A4Format)+1

if the height for the last page is No page Var nmberP=thisScale*thisFormat/A4Format If (Number(r)=thisFormat) var nmberPages=1 // Landscape format If (Number(r)>rightMargin) rightMargin=r var found=0 įor (var p=0 ptopMargin) topMargin=r If your text is editable and you want to automatically resize the pages cropping the closer to the text, you can use this script from the console window or in an action wizard. You can then print this file with the "fit" option to hold the max space of the sheet. If you want resize your text area manually with distorsion, you can do that importing your file in an empty A4 format file, then place it at the right position and resize it as required.
