Can you help add a split page operation to my batch script?
Below is my batch script to create a bookmark on each page of a pdf. It takes all the text from the current page and adds it to a variable then checks the variable for the string "SASID:" It then takes the 10 digits following the "SASID:" string and creates a book mark with the 10 digits as the name. I am looking to use the extract page method to extract each page to a new file. Each new file should have the name of the string on that page. So. I think I need to add something like this.extractPages({nStart: i,cPath : filename + i + ".pdf"}) Either directly before or after this line root.createChild(PageText,"this.pageNum=" + i, i); and the filename should be the variable that holds the 10 digit string. I do beleive "newWord" contains the 10 digit number. Thank you!
var root = this.bookmarkRoot;
var RegularExpression = new RegExp(/\n|\r|\t|\s/);
for (var i = 0; i < this.numPages; i++)
numWords = this.getPageNumWords(i);
var PageText = "";
var FoundSASID = 0;
for (var j = 0; j < numWords; j++) {
var word = this.getPageNthWord(i,j,false);
PageText += word;
var strMatches = PageText.match('SASID:');
if (strMatches != null) {
// Found text SASID: So reset the PageText to nothing and set the FOundSASID to 1
FoundSASID = 1;
PageText = "";
var newWord = PageText.match(RegularExpression);
var foundSpace = PageText.match(' ');
if (newWord != null || foundSpace != null) {
if (FoundSASID==1) {
root.createChild(PageText,"this.pageNum=" + i, i);
FoundSASID = 0;
if (FoundSASID==0) {
PageText = "";
Guess no one wanted to help.
I found a solution. I added this before the root.createChild line.
this.extractPages({nStart:i, cPath: PageText + ".pdf"});
Similar Messages
-
I have made several photo books but this time when i press "buy book" it stops processing. My book is 72 pgs. Is this too long? I have never had this problem. Can you help?
No, 72 pages isn't too long. See if you can crate a pdf file of the book by Control-clicking just outside the book and selecting Save Book as PDF from the menu options.
Click to view full size
That will tell us if the problem lies in creating a pdf version or something else.
OT -
I can not download Adobe reader. I am getting error message 1936. Can you help?
I can not download Adobe reader. I am getting error 1936. Can you help?
What is your operating system? Is there anything else beside the number 1936?
-
Hello
I need to add more pages to my photo book but its only letting me do 78 pages, can you help me please?You posted in the Photoshop forum by mistake - and people there aren't going to be able to help you with Elements issues.
I've moved your post to the Elements forum where you are more likely to get help with Elements questions. -
My interface -- buttons (back, forward, reload), firefox tab, groups, etc. -- does not look like the sample on your "firefox features" page. ("Groups" seems not to function at all.) I'm running the current firefox 4 download on Windows XP. Can you help?
cor-el
Thank you for your swift reply. I don't know that this has helped me, as I've reached my level of tolerance for fooling with this annoying little problem - for today anyway. It has been going on since I "up" graded to Firefox 4. My wife is running 3.6.x on her laptop with none of this foolishness. As BLASPHEMOUS as it may sound, I've gone back to IE for the time being even though I don't like it 1000th as much as I do Firefox.
Not just to rant here, I would say that I found a way to put some buttons on the right side of the toolbar that immediately gave me permission to "back, forward, and reload", but upon closing the browser and going out for dinner with the wife, I find on return that not only are those buttons NOT still on the toolbar, but I can't find them anymore. I think they were in "add-ons" found under I believe Add-On Manager.
I did also manage to achieve back/forward functionality running Firefox in SAFE mode, but this meant no No-Script, among other things, and I've grown too fond of that particular little script to give it up.
I've rebooted, restored, and reinstalled, can't get this formerly completely reliable program to work like it always has. Before looking around on here, I was beginning to think it was my PC.
THANK YOU FOR YOUR HELP, cor-el. I'm going to see if I can get on live chat on Monday.
bossman344 -
I will type in google let say tree the search will click on to one of the searches and instead of tree web page showing up a ad page will come up this happens with very thing can you help.
You (or your kids) inadvertently installed adware. You do not need to download or install anything to fix it.
Any tips on how to stop it from happening?
Yes. To learn how to avoid it in the future read How to install adware.
If you require them, Apple's removal instructions are linked in the Recovery Procedure near the end of that document. Read and follow them carefully. Pay particular attention to the easily overlooked passages directing you to restart your Mac when required. -
I want to install a printer hp laser pro cp1525nw on my macbook air with mountain lion 10.8.2 . I download the drivers from the apple site and install them . I resart the macbook . I just can not add a new printer . the computer dos not start a research
Can you help me?hi . I had the simalar problems of my HP b209a-m printer not being seen on my wireless network> I could not add the printer and could not get the printer to join my network, I found this post at HP discussion and it worked!
Each printer has different options/settings but it seems like the general idea should work ok if you can reset printer back to factory settings and find Printer IP Adress.
This is for HP printers
1. On the printer navigate to the Wireless or Network menu.
2. Select Restore Defaults.
3. On your computer look for a wireless network named 'hpsetup' and connect to it.
4. Print a Wireless Network Test from the front of the printer to see its IP address. (on my b209a-m Printer the IP info was found by pressing the Wireless Icon)
5. Type the IP address into the address bar of a web browser to see the printer's internal settings.
6. Click on the Network tab and look for the Wireless Setup Wizard and run it.
7. The Passphrase is the password you use on your wireless connection.
8. Now change the network name on your computer back to your wireless network.
The printer will now be connected to your network. With your the computer backyour wireless network network, you can re-add the printer from System Preferences.
Hope this works--- it did for me.
Jim -
I cannot open pages. The message says, can't open pages while being updated. I did not knowingly update anything.
The program is stuck in this mode. can you help?Your copy of Pages may have gotten stuck when downloading. This article explains how to fix a stuck Mavericks download; the same procedure should help with any application:
How to fix broken Mac OS X Mavericks download issues | Digital Trends
http://www.digitaltrends.com/computing/how-to-fix-a-broken-os-x-mavericks-downlo ad/ -
Hi, I would like to synchronize the calendar's items of my iPad Mini with my MacBook Pro. At today I can only do the reverse operation (from MacBook Pro to iPad Mini). Can you help me maybe with a little tutorial or something? Many Thanks.
Hello there Tonynos.
The following Knowledge Base article should help with guiding you on how to synchronize information from your iOS device to your computer:
iOS: How to transfer or sync content to your computer
http://support.apple.com/kb/HT1296
Thanks for reaching Apple Support Communities.
Cheers,
Pedro D. -
I browse the Mail icon of my Iphone 4 and want to get emails but suddenly the screen bounced back to the front page and cannot entered to the screen I usually to get emails. Tried many times and rebooted the Iphone have the same result. Can you help ?
Did you already set the phone up "as new iphone" without using the latest backup, in case this contains corrupt data? How to back up your data and set up as a new device
-
Question
Hi, Over a week now, my Firefox browser has been aligning the info on the page to the right of the page. This makes it difficult to see the rest of the contents on the page. Can you help?
Regards
Femworth65my money is on a hardware issue
-
I have the lengthy code for a PayPal button. I tried to past it in an iWeb welcome page and all I get is the code. No button. Can you help me?
OT
-
I use the operating system Mac os x 10.10.2 and would like me like to purchase Adobe Photoshop Elements 13 am with but not sure because is specified in the system requirement only os x 10.9. Can you help me?
Yes, it works. Download the trial and see for yourself. Adobe never updates the system requirements after any version is released, so that is what was available last Sept. when PSE 13 was released.
-
I've tried most things but on 2 Mac computers I cannot 'Select' a Table. I need to resize it. Can you help?
Which Pages, Which OSX, Which Template?
Have you imported this table from another format?
Otherwise we are just guessing.
Peter -
After i installed ios 7 in my iPhone 4s and I got problem to login into my icloud account.
There is a message appear and said "the operation couldn't be completed (com.apple.appleaccount error 403)"
can you help me ? how can i fix this problem ?
iPhone 4, iOS 7
iPhone 4S, iOS 7, (com.apple.appleaccount error 403)"Error: com.apple.appleaccount error 403
Recreate Error: On a Iphone/Ipad device that has "already" created the maximum of 3 per device Apple limit of ICloud account creation attempt to create or login to ICloud service tab in Settings. You will be presented with "com.apple.appleaccount error 403" which does not tell the laymen anything useful.
Cause: IOS 7 reports a "best guess" error instead of detailed error explanation.
How To Resolve Error: Find a device that has not been used to create an ICloud account the maximum 3 times and use it to create the ICloud account by logging into the Settings/ICloud tab with the Apple ID you want a ICloud account created for.
Keep in mind this will use up one of the three lifetime allowed ICloud account creations allowed by Apple on that device.
Also per support: If an existing account is logged into the ICloud service. A. Backup phone using iTunes on a mac/pc. B. At bottome of Settings/ICloud Delete the account "AND" all the user date from the phone. It will offer the Delete all data option. The reason for Deletion(and is why we backed up on a pc vs. the cloud) is when you create the new ICloud account it will backup all of the Device owners information to the wrong persons account.
Once you have created the new ICloud account log into that account on device that was presenting error: "com.apple.appleaccount error 403" it should allow the ICloud login.
Once you have verified the "device with error" is ICloud functional delete the ICloud account from the device used to seed the ICloud account and delete again all user data from cloud. Restore the recently created mac/pc Itunes locally created backup to the phone and then go to Settings/ICloud and login with the device owners Apple ID and password and verify your backup to the ICloud settings and Eureka! your done.
It took less time to do that for me to type this lol.
Maybe you are looking for
-
Iphone 4 is no longer recognized by my computer
My iphone 4 isn't recognized by my computer. When plugging it in, a message on PC states that my phone can't be used due to software not being installed. It then prompts for a reinstallation of itunes to correct. However, this doesn't resolve the
-
Blinking Nva pad what is it all about?
The Nav pad would blink for no apparent reason and keeps on blinking. How do I stop it from blinking. I've got no new message whatsoever . . . And how do you delete multiple text messaging? Like deleting the whole inbox? Salvation entails eternal pow
-
What is the use of MiniApps Tab In PFCG?
Hi Friends, can any one tell me what is the use of miniapps tab in PFCG. thankx in advance.... regards, kanthi reddy
-
SMSY t.code in Solution Manager 3.2
I want the steps for using SMSY t.code. In detail i want to configure the SLD using SMSY. URGENT Satinder Lamba
-
I'm having trouble with my Shuffle.. this started happening a few weeks ago. iTunes can't detect it. when i try opening it in My Computer, it freezes, and i can't get the latest iPod updater to work for it. it says "iPod Service Error" or something l