Get quads for word

I would like to know how to get the coordinates for a word and found the following code example:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
var nPage = 75;
var nWord = 26;
// get quads for word
var qQuad = this.getPageNthWordQuads(nPage,nWord);
// convert quads to string
var sQuad = aQuad.toString();
console.println("Quad as sting: " + sQuad + "\n");
// convertsQuad string to an array
var aQuad = sQuad.split(",");
console.println("Elements in quad array: " + aQuad.length);
for (i = 0; i < aQuad.length; i++) console.println("element: " + i + " value: " + aQuad[i]);
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I tried to run the code in my Console, I got "undefined"
Can you tell me what I am doing wrong?
Thanks
Linda

Gilad,
Yes, I selected the entire code when I ran it.
Also, my file has 224 pages.
I found the problem with the code, however.
The following code should be:
var sQuad = qQuad.toString();
instead of:
var sQuad = aQuad.toString();
So the correct code is this:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
var nPage = 75;
var nWord = 26;
// get quads for word
var qQuad = this.getPageNthWordQuads(nPage,nWord);
// convert quads to string
var sQuad = qQuad.toString();
console.println("Quad as sting: " + sQuad + "\n");
// convertsQuad string to an array
var aQuad = sQuad.split(",");
console.println("Elements in quad array: " + aQuad.length);
for (i = 0; i < aQuad.length; i++);
console.println("element: " + i + " value: " + aQuad[i]);
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
When I run the code I get this:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Quad as sting: 646.343994140625,558.6859741210938,663.0668334960938,558.6859741210938,646.343994140625,5 50.3560791015625,663.0668334960938,550.3560791015625
Elements in quad array: 8
element: 0 value: 646.343994140625
element: 1 value: 558.6859741210938
element: 2 value: 663.0668334960938
element: 3 value: 558.6859741210938
element: 4 value: 646.343994140625
element: 5 value: 550.3560791015625
element: 6 value: 663.0668334960938
element: 7 value: 550.3560791015625
true
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Now I would like to know why there are eight values.  Shouldn't there be only four? 
For instance, when I run, this code, I only get four numbers:
this.getField("Button1").rect;
Like this:
643.9056396484375,561.2030029296875,666.0845947265625,551.1866455078125
Which of the eight numbers would coordinate with the four numbers in the result of this.getField("Button1").rect; ?
Thanks
Linda

Similar Messages

  • How can I get the template( word rtf )  for PO – Printed Purchase Order ?

    I want to convert the “PO - Printed Purchase Order” report from Oracle rdf format to BI Publisher. I am looking for the template but could not find in UNIX.
    As per the Oracle blog, the template is available. Please see the URL : https://blogs.oracle.com/xmlpublisher/resource/121BIPReports.pdf
    The template code is POXPRPOL_XML.rtf
    when I look at the $PO_TOP/patch/115/publisher/templates/US directory, I cannot find POXPRPOL_XML.rtf
    How can I get the template( word rtf ) for PO – Printed Purchase Order ?
    Thank you,
    Biju Varghese.

    How can I get the template( word rtf ) for PO – Printed Purchase Order ? XML Publisher Administrator -> Templates
    find by code or name
    open it and you can downloadtemplate by "download" button

  • I would like to combine my word files to a pdf and i get errors for pdfmaker

    i would like to combine my word files to a pdf and i get errors for pdfmaker

    is it 32 bit or 64 bit. you can check it by following the steps mentioned below
    In the program in which you want to verify the version, click the Microsoft Office Button, and then click Program_Name Options.
    Click Resources, and then click About.
    To locate the About Microsoft Program_Name dialog box in programs that do not use the Ribbon user interface,  click About on the Help menu.
    Thanks,
    Vikrantt Singh

  • I have canceled my account same day and joining because the convert PDF to word did not convert correctly how to get credit for cancelled membership

    I have canceled my account same day and joining because the convert PDF to word did not convert correctly how to get credit for cancelled membership

    You need to contact Adobe Customer Support :
    They will check and assist you. (Live Chat)
    Contact Customer Care

  • I have lost the icons for Word, Excel, etc. from the bottom of my screen - how do I get them back?

    I have lost the icons for Word, Excel, iTunes, etc. from the bottom of my desktop - how do I get them back?

    Easy-these are just aliases. Do a cloverleaf+F/command+F (Find) and they should appear. Either create an alias and drag it to the dock-or there's an "add to Dock" command in the Finder. so click on whichever app you'd like to add to the Dock,  then add to Dock and it should appear there. If something isn't in the Dock that doesn't mean it's gone for good. It's just an alias
    well, hope that helped
    John B

  • How to get Client ID and Client Secret for Office App for Word which accessing SharePoint Online

    we currently implementing an Office App for MS Word which access SharePoint list and get data from lists. Our aim is any user can get this app from Office App store and enter their SharePoint URL and browse their own SharePoint lists and use those. When
    I was checking mechanisms which you used to access SharePoint, in some of them have used ClientId and Client Secret to authenticate with SharePoint. I have following questions.
    1.If I want to sell my app using Office app store where can I get those clientId and client secret which is used to  get the access tokens.
    2.Is it possible to create SharePoint app and publish it to SharePoint app store and get clientId and client secret and use it when accessing through office. So users first download our SharePoint app install it to their SharePoint environment then get out
    Office App from Office app store and add it to word. Will this work?

    Hi,
    >> We are planning to develop an Office app to access SharePoint Online and SharePoint on Premise from Microsoft word.
    I’m not very familiar with SharePoint development, so please correct me if I have any misunderstandings about your requirement.
    The basic components of an app for Office are an XML manifest file and the default webpage of your app (server side).
    >> If I'm publishing my Office App for Word in to the Microsoft office app store, how do I get the ClientId and ClientSecret which I need to pass to authenticate with SharePoint online?
    As far as I know, when register your web app to SharePoint Online, you will get the ClientId and ClientSecret from the Azure Active Directory. And you need to store the Client ID and Client
    Secret on the app server side.
    For details, you could reference the article
    Building an Office 365 ASP.NET MVC app.
    >> If ClientId and ClientSecret not providing when we publishing Word Office App to the app store how what the ways which we can use to authenticate with SharePoint using Word Office app?
    You don’t need to provide the ClientId and ClientSecret when publishing your App to App Store. They are stored on your app server side.
    By the way, if you have the question about how to access the SharePoint resource in a Web Application, I will suggest you posting the questions to
    SharePoint Development Forum. For this forum, we mainly discuss the questions about using the Office JavaScript API to develop Apps for Office.
    Regards,
    Jeffrey
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Where I can get and how to install BI Publisher template for word?

    I'm totaly new in BI Publisher. I read that the easiest way to create RTF templete is BI Publisher template for word. But I don't know where can I get it, and how to implement it MS Word. Does somebody can tell me the answer.
    Thanks, Best Regards.

    Hi Kostya,
    Only two steps:
    Download XML publisher desktop from oracle site and install on your machine.
    Once setup finish then you will able to see one new toolbar in MS word (Template Builder).
    Using that toolbar you can develop and test your report.
    Thanks
    Ravi
    [email protected]

  • How to use "Mail Merge for Word" to include only Account fields?

    We're attempting to use the Mail Merge for Word template to create a document containing several fields from the Account object. We do not need any fields from the Contact object, and there are many contacts linked to each account.
    When choosing "Get On Demand Data > Accounts", removing all the [Contacts] fields, selecting the necessary [Accounts] fields, then clicking "OK", a "List Download in Progress" window appears, followed by one that says "Microsoft Word - Subscript out of range". None of the [Accounts] fields are available in the downloaded data.
    Can anyone tell me how to include the appropriate Account fields without any Contact fields (which pulls a separate Merge record for every Contact linked with the selected Account)?
    Thanks.

    Thanks for trying to help with this.
    So far, we've been unable to pull even a SINGLE account record. So the problem is not related to data volume limitations. The tool seems to require that Contacts are selected, but for this application we only want a single merge document per Account.
    If anyone else has had success using the Mail Merge for Word tool to pull only Account data, please give us your guidance. Thanks.

  • How to add a Captivate 5 Project into RH for Word?

    I have to add a captivate simulation project into my Help project, and was wondering if anyone knows if it is possible. I searched Captivate's help, and they say you can with RH HTML, but I am currently using:
    1. RH for Word Build 8.0.0.203
    2. Captivate 5.0.0.596
    The Help project is a Single Source Layout with WinHelp 2000 primary layout. Any ideas?
    eangel

    Hi Rick,
    I did test the url from my browser's address bar, and it worked fine. I cannot get this to work from the help project.
    Hope someone can help.
    Thanks,
    eangel

  • This is a bit of information for folks that use Robohelp for Word.

    I know this is all a day late and a follar short but for those folks that still use Robohelp for Word:
    If your company is going to Windows 7, X5 will not work.  You need to bump it up to at least RH8.
    Even after you upgrade, if you use the tripane (winhelp_2000) view in RH for Word, it will not work on Windows 7 even with the microsoft patch.  With the patch it will look like an older version of RH in winhelp_4.  At least I have not been able to get it to display.
    What will work is if you compile it in Webhelp.  You will loose some links.  I know I should be moving to Robhelp Html and I tried, but when I did that I got a lot of garbage at the top of all my topics, I lost all my external links and I would have to retrain my partner...
    Now about links.  My only complaint about Robohelp for Word was it's limited external linking capacity.  If you use RH for Word you know you can only brouse to the net or to an htm or html document.  It doesn't mean you can't link to a PDF or an excel spread sheet.  You just can't brouse to it.  You can manually enter the path.  I just changed 740+ htm links to pdf links (pdf in same file as htm and the names were the same except for extension) and it worked.  If you intend to try this back up.
    Anyway, if this helps anyone great..if not thanks for letting me babble.  I like my Robohelp for Word in Webhelp format.
    Peggy Theo.

    Thanks for posting this Peggy.
    It is worth adding that there is another way of continuing to work with Word - using Linked Documents in RoboHelp HTML. You create Word documents entirely independent of RoboHelp and then create topics by linking those documents in a RoboHelp HTML project.
    You cannot create WinHelp that way but WinHelp is on life support and requires users to download a viewer, you cannot distribute it. It really is time to move on from WinHelp.
    RoboHelp for Word is not getting much development and does not get the new features being added to RoboHelp HTML.
    Linking is covered on my site.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • My itunes library was on my PC.  About two years ago I switched it to my Seagate server/hardrive. (itunes-preferences-advanced-change library). Last summer (2012) I bought a macbook, which seems to access the seagate server hard drive fine for word docs,

    My itunes library was on my PC.  About two years ago I switched it to my Seagate server/hardrive. (itunes-preferences-advanced-change library). Last summer (2012) I bought a macbook, which seems to access the seagate server hard drive fine for word docs, excel spreadsheets,etc. It also seems to have started its own library which is not complete. My PC died this summer (I still have it though).
    Now when syncing any of the multiple devices (ipods,ipads, iphones) that we have with my mac book, itunes states that "an error occurred" or the "app cannot be found".  Itunes wants me to erase the device and sync with my macbook. The message "The iPhone “Renee’s iPhone” is synced with another iTunes library on “Renee PC”. Do you want to erase this iPhone and sync with this iTunes library? An iPhone can be synced with only one iTunes library at a time. Erasing and syncing replaces the contents of this iPhone with the contents of this iTunes library."appears.
    Any assistance would be greatly appreciated.
    Renee

    u can give try to using external enclosre and backup ur files. I hope u will get files back. or using external enclosre with ur hdd boot into Linux and try to mount ur harddisk.
    there are multiple no of tutorial to mount apple partion in Linux.

  • I got my MBP on june 16 so how can i get lion for free?

    i got my macbook pro for birthday and i read that if you purchased it after june 6th you can get lion for free but how do i do that?

    The wording on this page seems convoluted to me:
    "Users must request their Up-to-Date upgrade within 30 days of purchase of their Mac computer. Customers who purchase a qualifying Mac between June 6, 2011 and the date when Lion is available in the Mac App Store will have 30 days from Lion’s official release date to make a request."
    If I purchased my shiny new Macbook Pro on June 11, according to the first part of the statement, I must request my Up-to-Date upgrade by July 11, yet the second part of the statement states I will have 30 days from Lion's official release date to make my request.
    I am hoping the second statement is the correct one. It would be helpful if Apple fixed this inconsistency...

  • Detecting file type in vba for word

    I have directories full of files on a Mac.  Most of these files are Doc files, some Txt files and some other types. Unfortunately the files don't have file extensions (not hidden but actually no file extensions).  On a PC in a macro I need to open
    these  doc files (from the Mac) and do some manipulations on the files and then save them.  I have a macro which works as long as all the files are Doc files so if I can detect the file type in my macro I can skip the non-Doc files and process only
    the Doc files.
    Is there a way in a vba for word macro to detect a file type other than by the file extension?  Or if that can't be done can I put error trapping on my Open statement that will catch an attempt to Open a non-Doc type file?
    Thanks
    Harry Spier

    If your code is running on Windows and you are in a position to install software on it, you
    may be able to get reasonably reliable detection using dsofile.dll, which you can get here:
    I really do not know whether it will work with files stored or create on Mac (and in any case, if these are old Mac .doc files, you may find that Windows Word cannot open them anyway.
    You need to
     - register the dll via regsvr32
     - in VBE, use Tools->References... to make a reference to"DSO OLE Document Properties Reader 2.1"
     - use code such as the sample below. 
    Option Explicit
    Function IsWordDoc(FullName As String) As Boolean
    ' FullName is the full path name of the file you want to check
    Dim objDocumentProperties As DSOFile.OleDocumentProperties
    IsWordDoc = False
    Set objDocumentProperties = New DSOFile.OleDocumentProperties
    ' or you can add dsoOptionOnlyOpenOLEFiles to the options and
    ' use error trapping to detect -2147217148
    objDocumentProperties.Open sFileName:=FullName, ReadOnly:=True, Options:=dsoOptionDontAutoCreate
    If objDocumentProperties.IsOleFile Then
    If objDocumentProperties.OleDocumentFormat = "MSWordDoc" Then
    IsWordDoc = True
    End If
    End If
    objDocumentProperties.Close savebeforeclose:=False
    Set objDocumentProperties = Nothing
    End Function
    Sub testIsWordDoc()
    Debug.Print IsWordDoc("c:\a\test.doc")
    Debug.Print IsWordDoc("c:\a\test.xls")
    End Sub
    You may also find that the value of the property I am checking varies and that you need to look at other things, such as 
    objDocumentProperties.SummaryProperties.ApplicationName
    but that value definitely varies according to the version of Word used to create the .doc, so you would need to discover what values it can have in a valid .doc.
    Peter Jamieson

  • Acrobat 9 PDFMAKER for Word - Relative Hyperlink problem

    In the past I have successfully use Acrobat Standard 6 PDFMAKER with Word 2003 to preate PDF files with relative hyperlinks. I have a large massively hyperlinked PDF document collection which I distribute on DVD and hence need relative hyperlinks because people's DVD drives have different drive letters. The PDF links produced by Acrobat 6 PDFMAKER have only a single "F" entry in the CosDict and that entry is the desired relative path. The PDF files I make are PDF 1.4. These work with Adobe reader.
    Acrobat 9's PDFMAKER for Word 2007 appears to be unable to produce PDF 1.4 files with relative hyperlinks that work in Adobe Reader. I get PDF files with Annot entries containing a correct "F" entry with a relative path, BUT there is also a UF entry with an absolute path. I have reported this as a bug because it appears to me that the PDF spec says the UF field is a PDF 1.7 feature. I'm speculating that the presence of this undesired absolute path in the UF field of the Annot object is why Adobe Reader (and Foxit Reader) won't follow the hyperlinks as relative paths. Foxit complains about not finding the absolute path.
    Is there a way to coerce Acrobat 9's PDFMAKER to produce truly relative hyperlinks from Word 2007? Am I wrong is diagnosing the problem? I am using Acrobat 9.4.2. Is there a newer version that has fix this problem?
    Any suggestions for how to produce PDF files with functional relative hyperlinks from Word 2007 would be appreciated. Since my document collection is very large (1000,'s of files in a directory tree) I'd like to be able to automate this. I have successfully written VB script code to automate running PDFMAKER but the relative vs absolute hyperlink problem persists whether I make the files one at a time from Word or in a batch from VB.

    I don't believe Word 2000 is supported by Acrobat 9
    Mike

  • Unable to search for words in a pdf document

    I am using Adobe Reader Ver 10.1.1 (All updates)
    I have a pdf document in which I am unable to search for words. No words in the document are found even though they do exist. If I copy a word from within the document and paste it into the search criteria then instead of getting the word that I copied, I get substitute characters and it can in fact find these characters as the word being searched.
    The document is a catalog and can be downloaded from the following URL.
    http://www.carbatec.com.au/getcatalogue?zenid=d1cuvbat0ois0g37r0r33vnah1
    I will appreciate any help as to why I cannot search for words in the document.

    Thank you Dave Merchant and try67 for your responses. As per my previous post, I contacted the company re the catalogue and they have responded favourably. I'll include their response because it gives the reason for the search failure as document compression which you might find interesting. I'll await their new catalogue and see if they have fixed the problem.
    Company response:
    Thank you very much for your input.  And yes, you are correct, the compression we used for the current catalogue's PDF format does strip out text included in the catalogue.  We used the compression settings we did with the intention of minimising download time, however I take your point about including text for search purposes (which I also utilise when I'm scanning through PDFs).
    We will actually be posting out our new catalogue next week and we'll release the new PDF version on the website at the same time.  I've asked our graphic designer to ensure that the PDF we use for the new catalogue includes searchable text.

Maybe you are looking for

  • How to check if a user has clicked on a digital control and changed its value?

    Greetings !!! I am looking for a simple way (without using Windows messages)of knowing if an user has clicked on a digital control and changed its value. I have tried the key focus property; but I have to click twice to make it work. If somebody know

  • 5th generation IPOD not being recognized by my Macbook

    I recently purchased an Ipod Touch and it works fine. Now my 5th gen video Ipod is not being recognized by my macbook. I've tried it all restart, disk mode, checked the cable, switchd the port but nothing seems to help. It just does not appear on my

  • How do I save as with Numbers 2.1 Lion version

    ok so I've been a user for about 6 months. Moved to Lion OS X and now the "Save as" option is missing. So if I have a spreadsheet that I want to keep but modify and call something else aka using the "save as" how do I now do this?

  • Java/java and java/c++ connection

    Hello, I'm new in distributed programming. Now I have to make a java application which can communicate with an other java and a c++ application. All of the 3 applications have to be made by me so I can controll all of the codes. All applications will

  • How do I keep iPhoto '09 active on the dock

    How do I keep iPhoto '09 active on the dock, similar to itunes when the window is closed... It's so annoying when I close the window... and then when I open it later on, it has to load all the pictures again! Is it possible to keep it active, even if