Hello,
I work with pdfs that contains internal measurements (cropbox, trimbox..)
Can you make a script that show the trim and bleed box size in Windows Explorer ?
eg. 215.9 x 279.4mm+5mm
Thank you very much.
var ProgressBar = pdfe.ProgressBar;
ProgressBar.max = pdfe.SelectedFiles.Count;
for (var i = 0; i < pdfe.SelectedFiles.Count; i++) {
ProgressBar.position = i + 1;
var file = pdfe.SelectedFiles(i);
var Page = file.Pages(0);
if (Page) {
var w = Math.min(Page.Width, Page.Height);
var h = Math.max(Page.Width, Page.Height);
var PSizeStr = w.toFixed() + 'x' + h.toFixed();
var FileMetadata = file.Metadata;
if (FileMetadata.PageSize !== PSizeStr) {
FileMetadata.PageSize = PSizeStr;
if (FileMetadata.CommitChanges()) {
pdfe.echo(file.Filename + ' : (' + PSizeStr + ') [OK]');
} else {
pdfe.echo(file.Filename + ' [commit changes failed]', 0xFF0000);
}
} else {
pdfe.echo(file.Filename + ' : (' + PSizeStr + ') [already set]');
}
}
}
pdfe.echo("Done");