Batch Sequence Page Scaling
I have a few hundred PDFs that I need to change the page scaling on, hopefully using a batch sequence or another automated method. I know I can change a single PDF in Acrobat by going to the Advanced tab on the Document Properties and setting the Page Scaling to Default, but I do not want to change hundreds of PDFs manually. I have also tried creating a PDF package and changing the document properties, but it only affects a single PDF in the package.
I am really looking for a JavaScript code to use in a batch sequence that will change the page scaling to either "fit to printable area" or "shrink to printable area" and save the document with that setting so I can distribute them to others with the page scaling already set and ready from them to print.
I have been able to use code in Acrobat 6 Standard (Advanced - JavaScript - Document Actions - Document Will Print) to change the page scaling on documents, but it only saves the action in Acrobat 6 and does not save the print setting when the PDF is opened in Reader or Acrobat 8. I tried copying the full acro_script from Acrobat 6 to 8 using a batch sequence in 8, but it does not work.
Code used in Acrobat 6:
var pp = this.getPrintParams;
pp.Handling = pp.constants.handling.shrink;
Is there a way to convert this code to work in 8? And is there somewhere else in Acrobat 8 (I have Pro) to enter JavaScript besides in a batch sequence?
Similar Messages
-
Additional Batch Sequences for Acrobat 9 Pro
In my downloaded version of Acrobat 9 Pro, there are only a few batch sequences.
The last time I bought Acrobat on a CD was version 5, and many additional batch sequences came on the CD. By "additional" I mean that they were not automatically installed when Acrobat was installed, but they could be installed manually. One could simply copy the additional batch sequences from the CD into the Acrobat installation, after which all of them would be available via the Acrobat interface.
Is the same true with a CD version of Acrobat 9 -- i.e., has the Acrobat 9 CD additional batch sequences that can be copied into the Acrobat installation?
If so, is it possible for a user of the downloaded version of Acrobat 9 Pro to obtain those additional batch sequences?
On my Acrobat 5 CD, the additional batch sequences were in --
(optical drive letter):\Batch\Sequences
In my Acrobat 9 Pro installation (under Windows XP Pro), one would copy additional batch sequences to --
C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Sequences\ENU
In both Acrobat 5 and Acrobat 9, it appears that the names of all batch sequence files end in the extension .sequ
I would particularly like to obtain the "List all Bookmarks" batch sequence. I copied that sequence from the Acrobat 5 CD to the Acrobat 9 installation, and it "sort-of" works. The main problem is that its list of bookmarks is limited to one page, regardless of the number of bookmarks. Any bookmarks that would be listed on pages 2, 3 etc. of the list of bookmarks are not listed at all.
Is it possible for me to download or otherwise obtain the Acrobat 9 "List all Bookmarks" batch sequence?
Thanks!Thank you, try67, for that insight.
Here is the "List all Bookmarks" batch sequence from the Acrobat 5 CD:
/* List all Bookmarks */
/* Recursively work through bookmark tree */
function PrintBookmarks(bm, nLevel)
if (nLevel != 0) { // don't print the root
bmReport.absIndent=bmTab*(nLevel-1);
bmReport.writeText(util.printf("%s",bm.name));
if (bm.children != null)
for (var i = 0; i < bm.children.length; i++)
PrintBookmarks(bm.children[i], nLevel + 1);
bmTab = 20;
bmReport = new Report();
bmReport.size = 2;
bmReport.writeText(this.title);
bmReport.writeText(" ");
bmReport.size = 1.5;
bmReport.writeText("Listing of Bookmarks");
bmReport.writeText(" ");
bmReport.size = 1;
PrintBookmarks(this.bookmarkRoot, 0);
global.bmRep = bmReport; // make global
global.wrtDoc = app.setInterval(
'try {'
+' reportDoc = global.bmRep.open("Listing of Bookmarks");'
+' console.println("Executed Report.open");'
+' app.clearInterval(global.wrtDoc);'
+' delete global.wrtDoc;'
+' console.println("Executed App.clearInterval");'
+' reportDoc.info.title = "Bookmark Listings";'
+' reportDoc.info.Author = "A. C. Robat";'
+'} catch (e) {console.println("Waiting...: " + e);}'
, 100);
I am not a programmer, and so would be grateful if you would advise how that sequence should be modified to incorporate your suggestion.
Thanks! -
Javascript in batch sequence stopped working
The following javascript used in a batch sequence is causing Acrobat to stop working. It was working fine, this problem has happened sometime in the last 2 weeks. This has affected all of our PCs regardless of Acrobat update version. We are running Acrobat 8 (8.15, 8.17, 8.21, 8.25). The only update common to all PCs is Windows Update.
/* Extract single pages to c:/Adobe */
// Regular expression used to acquire the base name of file
var re = /\.pdf$/i;
// filename is the base name of the file Acrobat is working on
var filename = this.documentFileName.replace(re,"");
try {for (var i = 0; i < this.numPages; i++)
this.extractPages({
nStart: i,
cPath: "C:\\Adobe\\"+filename+"_" + i +".pdf"
} catch (e) { console.println("Aborted: " + e) }
Any Clues?Thanks for the speedy response. I tried this and the problem is still there.
I did some further testing and the original script, and the new one modified to include your correction, both work if the PDF only has one page.
With more than one page Acrobat 'has stopped working' -
Using "automating batch sequence" query
Hi,
I am trying to add text content to an area of the page in a group of pdf files without having to open each file. I am not replacing existing text. After checking, I could not find a batch sequence to do this in Acrobat v7.1. Could this feature be available in Acrobat v9.? and/or would I have to use the (acrobat v7.SDK) to create a script and plug in to do this? or if not, in Acrobat v.9, use the SDK to create the script and plugin? I would appreciate any information.
thanks,
je112It's not possible to just add running text to a PDF using a batch process or a script. What you can do is insert a field with text and then flatten it.
This will have a result similar to adding text to the document, but it will not be an integral part of the running text (ie the text you add will not "push" the rest of the text forward). -
I've done some Acrobat scripting but mostly through VB and I'm able to write what I need but I want to have it as part of my operator's Acrobat instead of the of separate program. That said, I want to write a Java script that I can include in batch sequence.
I need to add a page to the start of a document and I want to have that page be nubered "a" without disturbing the numbering else where in the file. By simply adding the page at the start with the batch sequence it adopts the numbering of the first page. So if the first page is numbered as "i" then the new inserted page gets numbered "i" and the rest of the numbering changes, what was i becomes ii, what was ii becomes iii, and so on. I'm able to script this in VB by adding the page at the end, renumber them using the SetPageLabels from a Javascript object, then moving the page to the beginning.
Is there any documentation on using Javascript within a batch sequence?
Thanks,
KenWell, hacking along here working in the console pasting my code in.
The script adds a single page from another Acrobat file to the start of the open PDF. I need the page that goes in at the front to be numbered "a" and NOT effect numbering in the rest of the pages. Some files work fine, other files not so much, like the Javascript API reference PDF as well as other PDFs we've created here form InDesign.
The script inserts a page at the end of the PDF and numbers that page "a" then moves it to the start of the document. The problem occurs when the page is moved to the start, it changes the number of all the other pages to follow page "a" which is a bit of a silly thing to have to send my clients. I decided to compromise and if the first page (before I insert the anything) was numeric I would simply try changing things to start page 1 after my inserted page "a".
My code looks like this:
var NumPages = this.numPages
var PgLabel = this.getPageLabel(0)
this.insertPages(NumPages-1, "/F/TNTSTUFF/Disclaimers/HUP_ProofNotice.pdf")
this.setPageLabels(NumPages,["a", "", 1]);
this.movePage(NumPages, -1)
if (PgLabel.match("((-|\\+)?[0-9]+(\\.[0-9]+)?)+")) {
this.setPageLabels(1, ["1", "", 1]);
However, the setPageLabels command is causing this error:
RaiseError: The base pages object is missing or invalid.
Doc.setPageLabels:7:Console undefined:Exec
===> The base pages object is missing or invalid.
I'm not sure it is relavent, but on the files that work the numbering in Acrobat looks like this with the parentheical numbers:
Files that DON'T work look like this, with NO parenthetical:
Even if I manually renumber the pages starting with 2 to make the numbering in the 2nd file look more like the numbering in the first file, I still get the error.
Is there a way I can overcome this with Java code and what the heck is it?
Thanks again to anyone who can help.
Best,
Ken -
Can you create toolbar icons to launch batch sequence?
As per subject is it possible to create a toolbar icon in Acrobat 8 to launch a specific batch sequence?
Thanks
SteveThanks,
It seems that each time I delve into Acrobat javascript I can do part of the job in a batch sequence and the other part in folder level java but not the lot in either one!
The stumbling block was setting initial page opening options via a folder java script so all the actions would be triggered by a toolbar button (update doc info, set security options and initial view of the PDF currently open in Acrobat).
Thanks anyway at least I know I did not miss how to add the buttons in the Adobe guides.
Steve -
Printing and Page scaling issues
On a lot of my documents -- scanned from 8x11 b&w pages -- Acrobat seems to want to scale down the pages to print correctly, when this is not true.
Is there anything that I can do to solve this issue?
I realize that I can set page scaling to none, but this is NOT a solution. Every person printing the document would have to do the same thing. I want to solve this problem so that even if Acrobat is set to "Shrink to Fit", that it knows to NOT scale down the pages.In addition to the above comment, Acrobat or Adobe Reader will always try to scale a page down if it is printing on paper of the same size. If you want to make it even more fool proof (a user could override the above setting and select scale pages to fit) make the page size a bit smaller than letter, then even if they select shrink to fit it won't need to.
-
Batch convert Pages files to Doc and stay in the same folder?
Hi there,
I use iWork '09 on Mountain Lion. I recently switched to Microsoft Word and prefer it over Pages (personal preference). However, I have nearly 1000 files on my computer that are in Pages format. I have extensively searched this issue in the Apple Support Communities and it appears that there are scripts that DO EXIST that batch convert Pages files into Word files. However, it appears that many of these scripts were built for older versions of iWork and therefore I run into various errors. For example, I used the script available at http://pagesfaq.blogspot.com/2008/01/export-folder-to-word-rtf-pdf-txt-or.html and click run but nothing actually happens (the script runs for less than a second, then I can click run again). I was able to use one script successfully (pasted below), but the only reason I can't use it is because it saves ALL my converted documents in one folder on my desktop and I would like a script that can save them in the original file were the Pages document is located.
So, is there an iWork '09 compatible script that can convert my Pages documents to Word documents and save them in the same folder as the original? Oh, and for an added bonus, it'd be cool if the script also deleted my Pages version after it was done with the conversion
--[SCRIPT batch_exportPages2DOC] (* Enregistrer ce script en tant que script ou progiciel. Exécuter ce script ou déposer l'icône d'un dossier sur son icône. Il ouvre tout document Pages du dossier et l' enregistre en fichier DOC dans le dossier "was_Pages_now_DOC". Celui-ci peut être sur le bureau ou dans le dossier "~/Documents". Si le GUIscripting n'est pas activé le script demande votre mot de passe pour l'activer. Le script récupère le dossier d'exportation par défaut dans le fichier de préférences de Pages. Éviter de cliquer durant l'exécution du script sauf évidemment pour sélectionner le dossier source. ************* Save the script as script or application bundle. Run it or drag and drop a folder icon on its icon. It opens every Pages's documents stored in the folder and save it as DOC file in a folder named "was_Pages_now_DOC". This one may be on the desktop or in the "~/Documents" folder. according to the property storeOnDesktop. If GUIscripting is disabled the script ask for your password to enable it. The script extract the default export path from the Pages's preferences file. Don't click when the script is running. Except, of course, to select the source folder. ************* Yvan KOENIG (VALLAURIS, France) 2008/04/20 2009/06/17 adapté pour format .doc 2009/12/13 updated for MacOs 10.6… *) property theApp : "Pages" property theExt : "pages" property nomDuRapport : "report_Pages2DOC.txt" property nom_du_dossier : "was_Pages_now_DOC" property storeOnDesktop : true (* true = dest folder will be on Desktop false = dest folder will be in "~/Documents" *) property msg1 : "" -- globale property msg90 : "" -- globale property msg91 : "" -- globale -- property msg92 : "" -- globale property msg94 : "" -- globale property msg96 : "" -- globale property msg99 : "" -- globale property rapport : "" -- globale property dossierDeStockage : "" -- globale property dossierParDefaut : "" -- globale property localExport : "" -- globale property newExt : "" -- globale property newType : "" -- globale property isOs4 : missing value -- globale property isOs5 : missing value -- globale property theMenu : missing value -- globale property menuExport : missing value -- globale property types : {{"doc", "SLDocumentTypeMSWord", 2}, {"pdf", "SLDocumentTypePDF", 1}, {"txt", "SLDocumentTypePlainText", 4}, {"rtf", "SLDocumentTypeRichText", 3}, {"rtfd", "SLDocumentTypeRichTextBundle"}, 3} --===== (* our settings *) property typeNum : 1 (* 1 = WORD, 2 = PDF, 3 = Txt, 4 = rtf, 5 = rtfd *) property theButton : missing value (* 1 button PDF 2 button Word 3 button RTF 4 button Standard *) --===== on run (* lignes exécutées si on double clique sur l'icône du script application • lines executed if one double click the application script's icon *) tell application "System Events" to set dossier to choose folder (* dans un bloc System Events pour avoir un titre de dialogue "localisé" • in a System Events block to get a localized dialog title. *) my commun({dossier}) -- my commun({"Macintosh HD:Users:yvan_koenig:Desktop:for_see:" as alias}) end run --===== on open (sel) (* sel contient une liste d'alias des éléments qu'on a déposés sur l'icône du script (la sélection) • sel contains a list of aliases of the items dropped on the script's icon (the selection) *) my commun(sel) end open --===== on commun(elems) my nettoie() my prepareMessages() tell application "System Events" if not (UI elements enabled) then set (UI elements enabled) to true (* Active le GUI scripting • Enable GUI scripting *) set titres to title of processes end tell -- to System Events if theApp is not in titres then my activateTheApp() (* Active et ferme la fenêtre du document créé à l'ouverture • Activate and close the doc's window created at opening *) set {newExt, newType, theButton} to item typeNum of types (* item 1 = {"doc", "SLDocumentTypeMSWord",2} item 2 = {"pdf", "SLDocumentTypePDF",1} item 3 = {"txt", "SLDocumentTypePlainText",4} item 4 = {"rtf", "SLDocumentTypeRichText",3} item 5 = {"rtfd", "SLDocumentTypeRichTextBundle",3} *) set sysAtt to (system attribute "sys2") if 4 > sysAtt then if my parleAnglais() then error "This script requires MacOs X 10.4 or higher !" else error "Ce script requiert MacOs X 1.4 ou ultérieur !" end if else if 5 > sysAtt then set isOs4 to true set isOs5 to false if my getVersion() < "4" then set theMenu to 3 set menuExport to 13 else set theMenu to 10 set menuExport to 9 end if else if 6 > sysAtt then set isOs4 to false set isOs5 to true if my getVersion() < "4" then set theMenu to 3 set menuExport to 13 else set theMenu to 10 set menuExport to 8 (* was a wrong 9 *) end if else set isOs4 to false set isOs5 to false if my getVersion() < "4" then set theMenu to 3 set menuExport to 13 else set theMenu to 10 set menuExport to 8 (* was a wrong 9 *) end if end if my fermeFenetres() (* • Close existing windows *) my afficheLeMessage(msg1) (* Éviter de cliquer… • Don't click… *) tell application theApp to set localExport to localized string "Export" set dossierParDefaut to my getDefaultExport() as text set rapport to "" set dossierDeStockage to my creeDossierDeStockage(nom_du_dossier) (* Unicode text *) try repeat with elem in elems try my exploreTraite(elem as alias, "") end try end repeat if rapport = "" then set rapport to msg90 -- crée un fichier texte sur le Bureau set p2d to path to desktop set p2r to (p2d as Unicode text) & nomDuRapport tell application "System Events" if exists (file p2r) then delete (file p2r) make new file at end of p2d with properties {name:nomDuRapport} end tell set rapport to rapport as text write rapport to (p2r as alias) on error MsgErr number NroErr if NroErr is not -128 then beep 2 tell application (path to frontmost application as string) to ¬ display dialog "" & NroErr & " : " & MsgErr with icon 0 buttons {msg99} giving up after 20 end if -- NroErr is… return end try my nettoie() if my parleAnglais() then my afficheLeMessage("Export done.") else my afficheLeMessage("Traitement terminé.") end if end commun --===== on nettoie() (* pour ne pas stocker dans le fichier script • So it will not be stored in the script file *) set dossierDeStockage to "" set dossierParDefaut to "" set rapport to "" set localExport to "" set newExt to "" set newType to "" set isOs4 to missing value set isOs5 to missing value set theMenu to missing value set menuExport to missing value set theButton to missing value set msg1 to "" set msg90 to "" set msg91 to "" set msg92 to "" -- set msg94 to "" set msg96 to "" set msg99 to " " end nettoie --===== on afficheLeMessage(m) beep 1 tell application (path to frontmost application as string) activate if my parleAnglais() then display dialog m buttons {" OK "} default button 1 giving up after 10 else display dialog m buttons {" Vu "} default button 1 giving up after 10 end if end tell end afficheLeMessage --===== on creeDossierDeStockage(Nom) (* S'il n'existe pas, construit un dossier destination sur le bureau ou dans "~/Documents" • If does not exist, create a destination folder on the desktop or in "~/Documents" *) local dd, dds if storeOnDesktop is true then set dd to path to desktop as Unicode text else set dd to path to documents folder as Unicode text end if if Nom ends with ":" then set dds to dd & Nom else set dds to dd & Nom & ":" end if (* dossierDeStockage n'existe pas, on le crée • dossierDeStockage is not available, build it *) tell application "System Events" to if not (exists item dds) then make new folder at end of folder dd with properties {name:Nom} return dds as Unicode text end creeDossierDeStockage --===== on exploreTraite(elem, ptree) (* elem est un alias • elem is an alias *) local elem_, cl_, type_Id set elem_ to elem as Unicode text tell application "System Events" to tell disk item elem_ set cl_ to class if cl_ is folder then set type_Id to "" else set type_Id to type identifier end if end tell -- "System Events" set cl_ to cl_ as Unicode text if type_Id is in {"com.apple.iwork.pages.pages", "com.apple.iwork.pages.sffpages"} then (* C'est un fichier Pages. • It's a Pages document *) my TraiteUnDocument(elem_) else if cl_ is in {"file package", "«class cpkg»"} then set rapport to rapport & msg91 & elem_ & return (* "Package", Attention, un package EST un dossier "spécial". • Caution, a package IS a "special" folder. *) else if cl_ is in {"folder", "«class cfol»"} then my ExploreUnDossier(elem_, ptree) else set rapport to rapport & msg92 & elem_ & return (* "Pas un document Pages". • "Not a Pages's document" *) end if -- typeId_ is … end exploreTraite --===== on ExploreUnDossier(dossier, ptree) local nomElement, cheminElement, c repeat with nomElement in list folder dossier without invisibles set cheminElement to dossier & nomElement tell application "System Events" to set c to name of (dossier as alias) my exploreTraite(cheminElement as alias, ptree & c & ":") end repeat end ExploreUnDossier --===== on TraiteUnDocument(leCheminOriginal_UniText) my export2Doc(leCheminOriginal_UniText as alias, leCheminOriginal_UniText) end TraiteUnDocument --===== on export2Doc(p, leCheminOriginal_UniText) (* • here p is the path as alias *) local flag, nom_de_p, nouveauChemin, w, bof, x, p_xport try tell application theApp open p set flag to false repeat 300 times (* Attends que le fichier soit réellement ouvert. • Wait until the file is really open *) if my getNbWindows() > 0 then set flag to true exit repeat end if end repeat end tell -- to theApp if flag is false then error number 8888 (* Le fichier n'a pu être ouvert. • The file can't be open. *) on error MsgErr number NroErr if NroErr = 8888 then set rapport to rapport & msg94 & leCheminOriginal_UniText & return else set rapport to rapport & "### " & MsgErr & " ### " & errNbr & return end if return (* can't do the remaining tasks *) end try tell application "System Events" to tell file leCheminOriginal_UniText set nom_de_p to name end tell -- System Events if nom_de_p ends with theExt then set nom_de_p to text 1 thru -(2 + (length of theExt)) of nom_de_p set nouveauChemin to dossierParDefaut & nom_de_p & "." & newExt --log nouveauChemin tell application "System Events" to if exists (file nouveauChemin) then set name of file nouveauChemin to nom_de_p & my horoDateur(modification date of file nouveauChemin) & "." & newExt (* name stamped *) try set {w, bof} to my getFrontWindow() tell application "System Events" to tell application process theApp click menu item menuExport of menu 1 of menu bar item theMenu of menu bar 1 (* Exporter… *) repeat until exists sheet 1 of window w delay 0.1 end repeat tell sheet 1 of window w (* sheet containing the buttons PDF, Word, RTF, Standard *) -- get properties of UI elements of radio group 1 if isOs4 then click button theButton of radio group 1 else if isOs5 then click checkbox theButton of radio group 1 else click radio button theButton of radio group 1 (* I hope that they will no longer change it *) end if -- isOs4 is true (* if typeNum is 2 then delay 0.2 tell pop up button 1 click click menu item quality of menu 1 end tell delay 0.2 end if *) click button 1 (* Suivant… *) repeat until exists button localExport delay 0.1 end repeat click button localExport (* Exporter… *) end tell -- to sheet… repeat 20 times if exists sheet 1 of window w then click button 2 of sheet 1 of window w (* "Ne pas consulter " dans éventuel rapport d'anomalies • "Don't review" in sheet reporting possible export anomalies *) exit repeat end if delay 0.1 end repeat end tell -- to process … System Events if dossierDeStockage is not dossierParDefaut then (* we must move the file from folder dossierParDefaut to folder dossierDeStockage *) set p_xport to dossierDeStockage & nom_de_p & "." & newExt tell application "System Events" to if exists (file p_xport) then set name of file p_xport to nom_de_p & my horoDateur(modification date of file p_xport) & "." & newExt tell application "Finder" to duplicate file nouveauChemin to folder dossierDeStockage (* • before 10.5, System Events is unable to move *) my wait4File(p_xport) tell application "System Events" to if exists file nouveauChemin then delete file nouveauChemin end if -- dossierDeStockage is not… my ferme1fenetre() on error errMsg number errNbr set rapport to rapport & msg96 & p & return & errMsg & " ### " & errNbr & return end try end export2Doc (* ===== • Build a stamp from the modification date_time *) on horoDateur(dt) local annee, mois, jour, lHeure, lesSecondes, lesMinutes set annee to year of dt set mois to month of dt as number (* existe depuis 10.4 *) set jour to day of dt set lHeure to time of dt set lesSecondes to (lHeure mod 60) set lHeure to round (lHeure div 60) set lesMinutes to (lHeure mod 60) set lHeure to round (lHeure div 60) return "_" & annee & text -2 thru -1 of ("00" & mois) & text -2 thru -1 of ("00" & jour) & "-" & text -2 thru -1 of ("00" & lHeure) & text -2 thru -1 of ("00" & lesMinutes) & text -2 thru -1 of ("00" & lesSecondes) (* • Here, the stamp is "_YYYYMMDD-hhmmss" *) end horoDateur (* ===== • Take care, the front window may be an Inspector or a dialog one. *) on getFrontWindow() local namesOfWindows, w, flag tell application theApp to activate set flag to false tell application "System Events" to tell application process theApp set namesOfWindows to name of every window repeat with w in namesOfWindows if subrole of (get properties of window w) is "AXStandardWindow" then set flag to true exit repeat end if end repeat end tell return {w, flag} (* • w is the name of the front document's window *) end getFrontWindow (* ===== • Wait that the file is completely written on disk *) on wait4File(p) (* • p must be Unicode text *) local oldSize, nnn, newSize set oldSize to 0 tell application "System Events" to set nnn to name of file p repeat try tell application "System Events" to set newSize to physical size of file p if oldSize < newSize then set oldSize to newSize else exit repeat end if end try end repeat end wait4File --===== on activateTheApp() local bof, status tell application theApp to activate if my getStartingStatus() is false then tell application "System Events" to tell application process theApp to keystroke return repeat set {bof, status} to my getFrontWindow() if status is true then exit repeat end repeat end activateTheApp (* ===== • Close existing open windows *) on fermeFenetres() repeat while my getNbWindows() > 0 my ferme1fenetre() end repeat (* • Now there is no open window *) end fermeFenetres --===== on ferme1fenetre() tell application theApp to activate tell application "System Events" to tell application process theApp to keystroke "w" using {command down} end ferme1fenetre --===== on getPlistValue(valName, default) local thePlist, u set thePlist to (path to preferences folder as Unicode text) & "com.apple.iWork." & theApp & ".plist" tell application "System Events" if exists file thePlist then tell contents of property list file thePlist try set u to (value of property list item valName) (* Unicode Text *) on error (* On est là si Pages n'a rien enregistré avec des préférences neuves • Here if Pages never saved with the new preferences file. *) set u to default end try end tell -- to contents of… else (* On est là s'il n'y a pas de fichier de préférences • Here if there is no preferences file. *) set u to default end if end tell -- to system events return u end getPlistValue --===== on getStartingStatus() return my getPlistValue("LSDefaultsUseDefaultStartingPoint", false) end getStartingStatus --===== on getDefaultExport() local u (* son of a *****, I forgot that they don't use the same name !! *) if theApp contains "Pages" then set u to my getPlistValue("SLDocumentDefaultExportDirectory", "~/Documents") else if theApp contains "Numbers" then set u to my getPlistValue("LSDocumentDefaultExportDirectory", "~/Documents") else error "I didn't coded a Keynote version !" end if set u to (POSIX file (do shell script "echo " & u)) as text if u ends with ":" then return u else return (u & ":") end if end getDefaultExport --===== on getNbWindows() tell application "System Events" to tell application process theApp to return count of windows end getNbWindows --===== on getLocale(a, x) tell application a to return localized string x end getLocale --===== on getVersion() try tell application theApp to return version on error return "1" end try end getVersion --===== on parleAnglais() local z try tell application theApp to set z to localized string "Cancel" on error set z to "Cancel" end try return (z is not "Annuler") end parleAnglais --===== on prepareMessages() if my parleAnglais() then set msg1 to "Don’t click when the script is running." & return & "Except, of course, if it ask for." set msg90 to "No problem during the export process." set msg91 to "Package" set msg92 to "Not a " & theApp & "’s document" -- set msg94 to theApp & " can’t read it" set msg96 to "Not copied." set msg99 to "Oops" else set msg1 to "Éviter de cliquer durant l’exécution du script" & return & "sauf s’il le demande." set msg90 to "Exportation réussie sans incident." set msg91 to "Package" set msg92 to "Pas un document " & theApp -- set msg94 to theApp & " n’a pas pu le lire" set msg96 to "Pas copié." set msg99 to " Vu " end if set msg91 to "### " & msg91 & " ### " set msg92 to "### " & msg92 & " ### " -- set msg94 to "### " & msg94 & " ### " set msg96 to "### " & msg96 & " ### " end prepareMessages --===== --[/SCRIPT]Try this app: http://tyorex.com/iWorkConverter
Batch convert Pages files to doc and pdf. -
Can you set a pdf to default the page scaling to 'off'?
We have a pdf that our customers will print to measure their arm, but most printers tend to page scale and therefore the measurements will be off, is there a way to turn this option off in the pdf settings?
Document Properties > Advanced > Page Scaling = None.
-
Possible to do make Batch Sequence Searchable by date?
I want to know if it is possible to edit/create new script to Edit Batch Sequence - Searchable, recognize text Using OCR, but to only do it for a date range? How would I go about doing this.
Right now it takes multiple screens and clicks to make documents searchable, I would like to create a script that tells you the last time you did a batch searchable request, allows you to select a date range, folder would ideally be built in - so I do not have to select it everytime and then on selection of date range, it runs and completes the request. Is this possible? Where do I start?
Thanks,
haleygurl86Date of what? Do you mean the file's creation date?
If so, that's not possible. You can access the file's creation date in a script, but a script can't OCR a file.
The best way would be to create an input folder and paste into it the files you want to OCR. -
How do you change the default Page Handling/Page Scaling settings?
Hello, I use Adobe Acrobat 7.0 Standard. I work in the construction industry, so it is important drawings are printed to scale. when I go to print an A3 landscape pdf the page handling > page scaling settings automatically default to 'Fit to Printer Margins' - which then throws out the scale of the drawing content. I can manually change this setting to 'None' each time I print, but this is not fool proof as I sometimes forget.
Is there a way to change the default setting for this property? Any help is appreciated.
ThanksHi,
Answering to your questions.
I hope the below link will help you, About how to set up URL Forwarding in iWS.
For iWS6.x version.
http://docs.iplanet.com/docs/manuals/enterprise/60sp1/ag/escontnt.htm#1002112
For iWS4.x version.
http://docs.iplanet.com/docs/manuals/enterprise/41/ag/esapuir3.htm#1057412
Thanks,
Daks. -
Acrobat X Pro - Page Scaling Document Property
I have an archive of 1000's of PDF files and I want to change the Page Scaling property in each of them from "Default" to "None." I would like to automate this process, but there doesn't seem to be any way to do this with the tools provided.
Without automation this is done by choosing File > Properties > Advanced tab > Page Scaling drop-down. When the file is saved this set the default print-time page-scaling option to None. My operators are having a hard time remembering to set that option when these files are printed and since this can actually be saved with each PDF file I would like to fine a way to automate setting this option for all of my PDF files.
I am not a javascript programer, but I'm pretty clever. Does anyone have any input to offer on this option? Googling has led me nowhere.You can't set this property with JS directly. It might be possible through
a Preflight profile, but I wasn't able to find it there, either.
On Fri, Jun 27, 2014 at 6:49 PM, heartland printshop < -
Batch Sequences can't convert 10.000 pdf-files at one time
I have Acrobat Professional 7.0 and I am running on Windows XP.
To convert from PDF to EPS I am using Advanced - Batch processing - Batch Sequences.
Every week I have around 5.000 PDF-files which have to convert to EPS without any problems.
Sometimes I have more than 10.000 PDF-files. After converting to EPS I thought Acrobat Pro was finishing to convert all the PDF, but if I look at the number of EPS, it seems Acrobat Pro didn't convert them all and it didn't give any error message.
This always happened when I have more than 10.000 PDF-files.I think Batch sequences cannot convert above 10.000 files at one time.
Is this a known issue? Is there any solution?File > Export > Export Multiple Files will work as well.
You can choose your conversion settings in Edit > Preferences > General > Convert from PDF. -
Batch Sequence with JavaScript
Hi Guys,
I have a batch sequence that won't save the original files. I'm getting a message "The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder."
However, another batch sequence that runs on the same file saves it fine so I know that noone else has it open and that and I know I have rights to that folder.
The sequence that won't save the file sets the open optons and has JavaScript in it that collapses the many bookmarks.
Is there something about having JavaScript in the batch sequence that's not allowing this to save?
Many thanks,
KenYou rock!! That made it all go.
I was mistaken befeore thought, its the JavaScript Editor that's coming up on the screen when I run the sequence. I have to close it with the OK button before the sequence finishes. It comes up for each file I process. Trouble is I can't imagine what I've changed that would cause that to start happening.
The code looks like this:
//Collapses all bookmarks and shows the bookmarks panel
function BookmarksCollapse(bkm, nLevel)
var s = "";
for (var i = 0; i < nLevel; i++);
bkm.open=0;
if (bkm.children != null)
for (var i = 0; i < bkm.children.length; i++)
BookmarksCollapse(bkm.children[i], nLevel + 1);
BookmarksCollapse(this.bookmarkRoot, 0);
//app.execMenuItem("ShowHideNavigationPane");
//app.execMenuItem("ShowHideBookmarks");
this.saveAs(this.path); -
Running a batch sequence in Acrobat 11
Hi All:
I am running a batch sequence in Acrobat 11 on the Mac and as quickly and conciesly as I can, I want to outline the steps in the process:
1.) Select the batch sequence to be run.
2.) Select the files upon whic to run the batch sequence.
3.) Click Start.
4.) The text of the script appears on the screen, highlighted.
5.) Click OK to close the script editor and run the script on the first file.
6.) The text of the script appears on the screen, highlighted.
7.) Click OK to close the script editor and run the script on the first file.
8.) The text of the script appears on the screen, highlighted.
9.) Click OK to close the script editor and run the script on the first file.
<continue the last two steps for each document you process>
If the user has selected thirty documents to process in this sequence run, then she must see the script apear thirty times, and must press the OK button thirty times to actually run the script on the next Acrobat document. Ditto for sixty and ninety documents.This is cumbersome and tedious not to mentionn dangerous to the script. Im ny preactice run I accidently tapped teh spacebar and completely wiped the script!. Is there any way to tell the program to skip displaying the script at the start of each cycle and just move on to the next job?Click the commands you added to the Action and make sure that none of them has the "Prompt User" check-box underneath it ticked.
Maybe you are looking for
-
My Iphone 5 is not showing up in my devices on Itunes and there is no option to sync.
My Iphone 5 does not show up in devices when I plug into my computer. No devices show up. I was getting a small box that showed the Iphone and wanted me to open it to view the files, which basically shows how much space is left. I tried draggin a pla
-
Create a dvd from scan photos on iMac
Is it possible to create a movie on (DVD) from scan photos? And will it be compatible to play on a PC?
-
Import (Tbl Load) without LOG - Tbls read-only (error: -115 and -126)
Hi everybody, I'm very new to this things, so I'am sorry for mistakes, but I see no other way, then bothering you with what makes me crazy, so I startet in distributing this help scream a little bit more than perhaps needed. But I have a problem with
-
How to view a muse file in an email after creating.
Good day. I have created a muse file (it looks great in a browser!) I was asked to send it to an email address and be able to view it in the email itself. HELP PLEASE.
-
Purpose of BAPI's.....
anybody can send me the documentation and purpose of using BAPI's. main advantages how to create BAPI's....and send me the sample program with detail explanation... thanks in advance..... thanks, maheedhar.t