Copy link to clipboard
Copied
Hello, I need to create drawing indexes for a set that contains over 1000 drawings. I am able to do this with BlueBeam by creating Bookmarks. But some of our subs don't use BB so I am wondering if it is possible with Acrobat to extract text from a group of regions on each page to a CSV file.
The BlueBeam workflow is as follows:
Create Bookmarks that concatinate a series of selected regions from a page
By drawing separate boxes around the Drawing No, Revision No and Dwg Title (placing a colon btwn each) I can assemble a bookmark that contains these 3 pieces of information.
The result is a list of bookmarks that has extracted the text information from those same 3 regions for the entire set of dwgs.
This list can then be exported to a CSV file
Using the excel import wizard this info can be placed into a table for easy manipulation.
So, my hope is that Acrobat/Pro can extract the text info from each pdf page and assemble it in excel in a similar fashion.
Copy link to clipboard
Copied
Yes, this is possible, using a custom-made script.
Copy link to clipboard
Copied
Ok, I assume you are refering to JavaScript? If so, that is out of my depth atm.
Or could you elaborate pls?
Copy link to clipboard
Copied
Yes, this is not a trivial task, but I've developed similar scripts in the past. If you're interested in hiring a professional to create it for you, feel free to contact me privately by clicking my user-name and then on "Send a Message".
Copy link to clipboard
Copied
Hi,
Try this script in the action wizard attached in this file:
theText="Region 1;Region 2;Region 3";
function extractBookmark(bkm,nLevel) {
if (bkm.name!="Root") theText+="\r"+bkm.name;
if (bkm.children != null) for (var i=0; i<bkm.children.length; i++) extractBookmark(bkm.children[i],nLevel+1);
}
extractBookmark(this.bookmarkRoot,0);
this.createDataObject("theData.csv", "");
var oFile=util.streamFromString(theText);
this.setDataObjectContents("theData.csv", oFile);
bookmarkRoot.remove();
event.target.viewState={overViewMode:7};
this.saveAs(this.path.replace(/.pdf$/i," & data .csv file attached.pdf"));
@+