Recent Posts

Pages: 1 ... 8 9 [10]
91
Bug reports / Re: Scripts manager crashes with stack overflow when new/edit selected
« Last post by RTT on October 02, 2017, 12:43:56 AM »
No issues here, configured with your settings (you only have one script in your My Scripts list?), so I'm still clueless.
Check if you can run this process explorer tool (no installation needed). If yes, run it when the manager is stuck, locate and select the manager.exe process and create a minidump file, menu Process>CreateDump>CreateMiniDump, and send me that file.
92
I don't have options to attach to PM so zip file is attached.  I've PM'd the password.  Hope there's a "smoking gun" in there!
93
Bug reports / Re: Scripts manager crashes with stack overflow when new/edit selected
« Last post by RTT on October 01, 2017, 10:01:41 PM »
If you don't mind sharing your PDF-ShellTools settings, send me by email, or attach to a forum PM, a backup file of your settings. Maybe we get lucky and I can get the issue to fire here too. Create the settings backup from the manager bottom left "settings" named button.

94
Bug reports / It's baaaaaaack
« Last post by conrad.drake on October 01, 2017, 02:15:14 AM »
Strangely, a similar behaviour has returned.  I am up-to-date except for one chinese language update.

Now, when I click "edit" (or "new") the button goes blue and that's where everything stops.   Task manager says shelltools is runnin but it is unresponsive.

It is using 0% CPU, which briefly pops up to 3% if I click on the window, and 2.036K memory.

When I stop shelltools running in New mode it says "stack overflow". When I stop if from "edit" is says "save changes (yes/no)"

Windows 7 professional, SP-1 on Intel I7-6600U CPU with 8G RAM.   I have no rights on this machine under our group policy:  doing anything at all requires an Administrator to remotely log in (e.g. installing updates; adding a new printer; adjusting time and date)
95
Ideas/Suggestions / Re: Split multi-page & multi-page.size PDF into respective sizes
« Last post by conrad.drake on September 21, 2017, 07:40:02 AM »
Thanks - I'll give that a go (I've been a little busy for the past week ro so!)
96
Ideas/Suggestions / Re: Split multi-page & multi-page.size PDF into respective sizes
« Last post by RTT on September 12, 2017, 01:54:07 AM »
Using the cropping idea, the next script creates a new PDF with all the A3 pages split into two A4. The split is done by adjusting the media and crop boxes and duplication of the page reference.
Code: [Select]
var Merger = pdfe.CreateDocumentMerger();
var ProgressBar = pdfe.ProgressBar;
ProgressBar.max = pdfe.SelectedFiles.Count;

for (var i = 0; i < pdfe.SelectedFiles.Count; i++) {
    ProgressBar.position = i + 1;
    try {
        var File = pdfe.SelectedFiles(i),
            Filename = File.Filename,
            Pages = File.Pages;
        var Path = Filename.substr(0, Filename.lastIndexOf('\\') + 1),
            Name = Filename.substring(Path.length, Filename.lastIndexOf('.'));

        pdfe.echo('>' + Filename);

        for (var PageIndex = 0; PageIndex < Pages.Count; PageIndex++) {
            var Page = Pages(PageIndex);
            if (Page) {

                var w = Math.min(Page.Width, Page.Height);
                var h = Math.max(Page.Width, Page.Height);

                //A3=297x420
                if (Math.abs(w - 297) < 15 && Math.abs(h - 420) < 15) {
                    pdfe.echo('  Splitting page ' + (PageIndex + 1).toString());
                    var box = Page.CropBox;
                    if (box.Right - box.Left < box.Top - box.Bottom) {
                        if (Page.Rotation == 90) {
                            var oriBoxTop = box.Top;
                            box.Top = box.Top + (box.Bottom - box.Top) / 2;
                            Page.MediaBox = box;
                            Page.CropBox = box;
                            Merger.MergePage(Page);

                            box.Bottom = box.Top;
                            box.Top = oriBoxTop;
                            Page.MediaBox = box;
                            Page.CropBox = box;
                        } else {
                            var oriBoxBottom = box.Bottom;
                            box.Bottom = box.Top + (box.Bottom - box.Top) / 2;
                            Page.MediaBox = box;
                            Page.CropBox = box;
                            Merger.MergePage(Page);

                            box.Top = box.Bottom;
                            box.Bottom = oriBoxBottom;
                            Page.MediaBox = box;
                            Page.CropBox = box;
                        }
                    } else {
                        if (Page.Rotation == 270) {
                            var oriBoxLeft = box.Left;
                            box.Left = box.Left + (box.Right - box.Left) / 2;
                            Page.MediaBox = box;
                            Page.CropBox = box;
                            Merger.MergePage(Page);

                            box.Right = box.Left;
                            box.Left = oriBoxLeft;
                            Page.MediaBox = box;
                            Page.CropBox = box;
                        } else {
                            var oriBoxRight = box.Right;
                            box.Right = box.Left + (box.Right - box.Left) / 2;
                            Page.MediaBox = box;
                            Page.CropBox = box;
                            Merger.MergePage(Page);

                            box.left = box.right;
                            box.right = oriBoxRight;
                            Page.MediaBox = box;
                            Page.CropBox = box;
                        }
                    }

                }
                Merger.MergePage(Page);
            }
        }

        var NewFilename = Path + Name + '_A3To2A4.pdf';
        if (Merger.EndAndSaveTo(NewFilename)) {
            pdfe.echo('  Saving to: ' + NewFilename + ' [OK]', 0)
        } else {
            pdfe.echo('  Saving to: ' + NewFilename + ' [Failed]', 0xFF0000);
        }

    } catch (e) {
        pdfe.echo(Filename + ' :' + e.message, 0xFF0000);
    }
}

pdfe.echo("Done");
97
Ideas/Suggestions / Re: Split multi-page & multi-page.size PDF into respective sizes
« Last post by conrad.drake on September 11, 2017, 06:31:47 AM »
A variation on the theme: I have some scanned documents, which are a mix of A4 and A3 sheets - the A3 being two pages.

Any suggestions on how I might split the A3 sheets into two A4 sheets?   I could probably fake it with PDF cropping. 

Right now, the scan is a JPEG so my current workflow will be to extract the images and cut these in half with my favourite image editor.

I suspect this is a whole new can-o-worms rather than a simple script.  Any suggestions?
98
General / Re: pdf shell tools / Windows 10
« Last post by RTT on August 20, 2017, 04:36:41 PM »
Just tested, v2.6.3 on Win 10 pro 1703, and I can edit standard, and custom, fields metadata without problem, from the Windows Explorer detail pane, preview pane (using the preview handler tools metadata edit pane) and file properties dialog details and InfoEdit tabs, so all still working as designed.

What's happening in your case? Does it show any error message when saving the changes or the fields are just read only?

Run the manager and recycle the Property Handler extension registration. I.e. uncheck it and apply the changes and then check it and apply the changes again.
Now, using the Windows task manager, select the Windows Explorer process and click the restart button.
99
General / pdf shell tools / Windows 10
« Last post by Philipp on August 20, 2017, 09:14:40 AM »
Hi, I am running pdf shell tools 2.6.3.0 under Win 10 pro v1703. I can view pdf Metadata in details pane or preview metadata section but cannot edit them.
Do I need current version of pdf shell tools in order to work with win 10?
Thanks,
Philipp
100
General / Re: Merge/Split Operation Error
« Last post by RTT on August 16, 2017, 02:14:31 AM »
These values in the registry are just the list of the last used split rules, shown in the tool dialog split rules field combobox drop down list.

When the user is getting that error, does it work clicking the "preview", instead of the "run", button? If yes, check if the "output filename" field is set to generate always the same filename. If that file already exists (from a previous split run) and it is open in the shell preview pane, or another application, that "Operation Failed: Unknown Error" message will fire.
Pages: 1 ... 8 9 [10]