You shouldn't use a pop-up alert for such a task as you'll be sitting and
clicking OK, OK, OK for a long time... A better option is to print the file
name and page number to the console and then at the end of the process have
a look at the output.
Do you have Acrobat Pro?
thanks for your prompt reply... things is out of 1700 to 1800 pages hardly 10-15 pages are released with wrong setup by the content department. so pressing the ok is no big issue and chekcing the console at the end would be troublesome because if someone misses the page size right at the bottom (yes, we use acrobat professional 6.0 and 8.0 both) they can miss the console too!
so i want to omit the manual error by popping up an alert.
is this possible?
This sounds like what pre-flight is for. Now, I don't know if it offers the ability to set up this check, but it would be the first place to look.
Yes, but it requires running a batch sequence. It's not something that can
be done by itself when the file is opened or something like that. Can you
trust the users to do that, though?
and all preflighting plugins i checked did not have this parameter
What do you mean "preflighting plug-ins"? How did you check?
like quite revealing and snake pdf thing, which are cheaper by the way...
i tried these things but no page size mismatch alert option was there
That wasn't what I meant by preflight... You didn't answer the question in #1 - do you have Acrobat Pro - if the answer is yes, what version?
i use acrobat professional 6.0 and 8.0 both as i told you already
preflight is checking files for parameters (mostly rgb, overprint etc.)
some plugins work with acrobat that we tried are quite revealing and snake pdf
but none of them have this alert for wrong page size
that's all i meant and if by preflight u meant the built in preflight in acrobat, i tried that too, but to no avail
i can well undersatnd that just by opening a file would not pop up the message but there would be some button clicking or running the script somehow and i want that to pop up the alert if the document size differs from the size i set up in the script itself
and also everytime i process a page running the preflight in acrobat is very timetaking.... so not an option.
Preflight, even in the ancient Acrobat 8, does allow you to create a profile which checks page size.
i just click a button or something like that as in a batch
and an error message should pop up to alert that page size is wrong
You click a button for each file you open? Not sure why that is so much easier than clicking on Analyze in preflight for each file you open.
clicking on preflight #1 takes too many clicks
and #2 too much time
all i want is one click and an alert message to gimme me the confirmantion the page is right size or wrong
Isn't preflight one click per file (Analyze) which gives the report which you close (another click).
Versus one click to run the script and one to close the alert?
2 != 2?
i am sorry, either i could not present my query very well or u just want me to go through the problem i am facing right now
all i wantted is a simpler solution to the problem and omit the manual error by some alert message; either this is not possible or i am unable to find it
thank you very much for your support though
It is possible to do it with a single click (on a single file) by using a
am sorry if i talked rude
but that one click soulution is what i am after with some message that says it's wrong page size
Still, that's exactly how I see the preflight. You precreate the profile, open preflight, click on it to select.
Then for each file opened you click Analyze. You get a report with success or failure.
so from menu to preflight, then anlyze after selecting one particular profile and taking some time is simpler than writing a java script one time and get the problem solved? great
thanks so much
Surely you keep Acrobat running? So you already have the preflight window open ready to click Analyze.
Sorry if you find this impractical.
You can use the getPageBox method to get the dimensions of a page and then the app.alert method to notify the user if those dimensions are incorrect. If you want someone to create the entire script for you, contact me privately at email@example.com.