Recent Posts

Pages: 1 ... 3 4 [5] 6 7 ... 10
41
Ideas/Suggestions / Re: Comments Flattener
« Last post by RTT on December 27, 2021, 06:31:23 PM »
is this also possible for tapping into Acrobat's preflight options?
Preflight > "Discard hidden layer content and flatten visible layers"
Sure, but you will need to create a custom preflight profile to include that fixup. It seems only profiles can be executed from Acrobat javascript.
Create a new preflight profile, give it that "Discard hidden layer content and flatten visible layers" name (so the next script can find it) and add that fixup to it.
You can use the next PDF-ShellTools script to run it.
Code: [Select]
var oPreflight;
var app = pdfe.CreateObject("AcroExch.App");
var baseDoc = pdfe.CreateObject("AcroExch.PDDoc");
if (baseDoc.create()) {
    var JSObject = baseDoc.getJSObject();
    if (JSObject) {
        JSObject.addScript("getPreflightObj", "function getPreflightObj(){return Preflight}");
        oPreflight = JSObject.getPreflightObj();
        JSObject.removeScript('getPreflightObj');
        if (oPreflight != undefined) {
            pdfe.echo('Loading preflight profile');
            oProfile = oPreflight.getProfileByName('Discard hidden layer content and flatten visible layers');
            if (oProfile) {
                pdfe.echo(" [OK]", 0, 1);
            } else {
                pdfe.echo(" [not found]", 0xFF0000, 1);
            }
        }
    }
    baseDoc.Close();
}
if (oProfile) {
    var ProgressBar = pdfe.ProgressBar;
    ProgressBar.max = pdfe.SelectedFiles.Count;
    for (var i = 0; i < pdfe.SelectedFiles.Count; i++) {
        try {
            ProgressBar.position = i + 1;
            var FileObj = pdfe.SelectedFiles(i);
            var FullPathFilename = FileObj.Filename;
            FileObj.Close();
            pdfe.echo('Processing: ' + FullPathFilename);
            baseDoc.Open(FullPathFilename);
            try {
                var JSObject = baseDoc.getJSObject();
                if (JSObject) {
                    var PreflightResult = JSObject.preflight(oProfile);
                    if (PreflightResult.numFixed > 0) {
                        baseDoc.Save(1, FullPathFilename);
                        pdfe.echo(" [OK]", 0, 1);
                    } else {
                        pdfe.echo(" [fixup(s) not applied]", 0, 1);
                    }
                }
            } catch (err) {
                pdfe.echo(FullPathFilename + ': ' + err, 0xFF0000, 2);
                pdfe.echo(' ');
            }
            baseDoc.Close();
        } catch (err) {
            pdfe.echo(err, 0xFF0000);
            pdfe.echo(' ');
        }
    }
}
app.Exit();
pdfe.echo('Done');
42
General / Javascript and deleting namespaces/custom fields
« Last post by puckman on December 26, 2021, 04:03:03 PM »
I use Adobe's action scripts (javascript)  to automate populating custom fields.  I have hundreds of documents with custom fields that are 'orphaned.'  What I mean by this is that the document's namespace assigned to a custom field is no longer corresponds to the current namespaces in PDFE.

Instead of opening each file and manually deleting each entry under the Custom tab in Document Properties, I would like to create an action script that will batch process such files.  However, in my own research and  inquiries in user groups as well as trial and error , I am lead to believe that there is not a Javascript Adobe API method that can do this.

I'm not even sure I understand the object model for these custom fields other than its based on XML.  Looking at XML programming, that seems like an added learning curve.

Does know anyone know of an Adobe API method that can iterate through the custom fields and remove them?

Cheers

43
Ideas/Suggestions / Filtering on Fields
« Last post by puckman on December 26, 2021, 03:44:13 PM »
When filtering the database/data-disk files on fields corresponding to columns/metadata for pdfs, normally all the fields are checked except content.  Would it possible to add an button in the filter box that can select/unselect all in the same context as Windows 10 incorporates in file explorer?
44
Ideas/Suggestions / Re: Comments Flattener
« Last post by nightslayer23 on December 22, 2021, 12:12:06 AM »
Hi again!

is this also possible for tapping into Acrobat's preflight options?

Preflight > "Discard hidden layer content and flatten visible layers"

45
Ideas/Suggestions / Re: How to extract single layer from geoPDF
« Last post by RTT on December 19, 2021, 02:04:08 AM »
Set only that layer visible and print the document to PDF, e.g. using the Windows included "Microsoft Print to PDF" printer.
46
Ideas/Suggestions / How to extract single layer from geoPDF
« Last post by Mike Hoeck on December 18, 2021, 05:36:28 AM »
How can I extract and save a single layer from a georeferenced PDF?
47
General / Re: PDF Explorer Web Interface, API based, Client.
« Last post by RTT on November 18, 2021, 01:43:32 AM »
Sure. Send it to the email address you can find in the program about box.
48
General / Re: PDF Explorer Web Interface, API based, Client.
« Last post by Andi on November 16, 2021, 09:24:19 AM »
Yes, still an active project.

Thats great !

We have an special request, can we send this via email to you ?
49
General / Re: PDF Explorer Web Interface, API based, Client.
« Last post by RTT on November 15, 2021, 08:29:02 PM »
Yes, still an active project.
50
General / Re: PDF Explorer Web Interface, API based, Client.
« Last post by Andi on November 15, 2021, 03:57:19 PM »
Hi i found this site today and first question is:

You still work on your software ?
Pages: 1 ... 3 4 [5] 6 7 ... 10