Recent Posts

Pages: 1 ... 7 8 [9] 10
81
General / trim + bleed size
« Last post by Nick Riviera on April 29, 2021, 09:35:16 AM »
Hi,

I have this script (from RTT) which adds in the file name the  trim box size  ex "test_210x297 mm.pdf"

In this script can be added also the bleed size? ex "test_210x297 mm + 10 mm bleed.pdf".
If there is no bleed in the document then  "test_210x297 mm + 0 mm bleed.pdf"

Thanks a lot

Code: [Select]
function TS() {
   var Size = '';
    var Page = BatchFile.Pages(0);
    if (Page) {
        var box = Page.TrimBox ? Page.TrimBox : Page.CropBox ? Page.CropBox : Page.MediaBox;
        if (Page.Rotation == 90 || Page.Rotation == 270) {
            Size = GetDist_mm(box.top, box.bottom).toFixed() + 'x' + GetDist_mm(box.left, box.right).toFixed() + ' mm';
        } else {
            Size = GetDist_mm(box.left, box.right).toFixed() + 'x' + GetDist_mm(box.top, box.bottom).toFixed() + ' mm';
        }
    }
    BatchFile.close();
    return Size;
}

function GetDist_mm(x1, x2) {
    return Math.abs(x1 - x2) * 25.4 / 72
}
82
Ideas/Suggestions / Re: Create new custom property handle "thumbnail"
« Last post by RTT on April 15, 2021, 02:46:09 PM »
Now I get it. Show the thumbnail in a details view column. That's, afaik, not supported by the shell. It can show icons (pre-registered as an enumerated values property, drawn as IconList), as the OneDrive property handler does for the status column, but not thumbnails.
And yes, if supported, it would have the same size of the icon in the file name column.
83
Ideas/Suggestions / Re: Create new custom property handle "thumbnail"
« Last post by nightslayer23 on April 15, 2021, 01:02:30 AM »
eh - never mind. they'd likely be too small in details view anyway
84
Ideas/Suggestions / Re: Create new custom property handle "thumbnail"
« Last post by RTT on April 14, 2021, 11:55:52 PM »
The tools already provide a thumbnail handler for PDFs, so I suppose you are referring to something else. But I'm clueless about what!
Please give me more details about the functionality you are proposing.
85
Ideas/Suggestions / Create new custom property handle "thumbnail"
« Last post by nightslayer23 on April 14, 2021, 02:21:50 AM »
I had a thought.. would there be a way to create a new custom property handle in explorer but for thumbnails?
86
that DID significantly improve the rotating! wow. and now the script work to its full functionality! thankyou.
87
Ideas/Suggestions / Re: Would like to develop a combined script for various needs.
« Last post by RTT on March 29, 2021, 04:36:42 PM »
Bug in the API. I've updated the above script with a workaround.

If the original, and divider, PDFs number of pages is always multiple of two, there is the possibility to set the pages rotation in the 1st step, and that would speed up the operation.
88
having an issue with the rotating.. when the page count gets too large, it seems to be timing out on the rotating and only does a portion of the pages
89
Wonderful work  ;D will let you know if we run into any bugs ! thankyou thankyou
90
Ideas/Suggestions / Re: Would like to develop a combined script for various needs.
« Last post by RTT on March 26, 2021, 05:58:39 PM »
Check the attached one.
Run it against the original file. It will prompt for the divider PDF, with a open file dialog, and query for the number of copies and the multiple of value with a query dialog. When done it will ask were to save the result PDF.
Pages: 1 ... 7 8 [9] 10