Get the frame to a text box

I'm having problems to find the exact image of a page of text box element.

The code I use is simply:

InterfacePtr < IShape > itemShape (pageItemUIDRef, UseDefaultIID());

clippingBounds = itemShape-> GetPrintedBBox (PMMatrix (), Transform::SpreadCoordinates());)

InterfacePtr<IGeometry> pageGeometry (pageUIDRef IID_IGEOMETRY);

PMRect pageBounds = (pageGeometry-> GetStrokeBoundingBox (::InnerToParentMatrix(pageGeometry)));

clippingBounds.Top (clippingBounds.Top () - pageBounds.Top (());

clippingBounds.Left (clippingBounds.Left () - pageBounds.Left (());

clippingBounds.Bottom (clippingBounds.Bottom () - pageBounds.Top (());

clippingBounds.Right (clippingBounds.Right () - pageBounds.Left (());

For the text box in the attached screenshot, it gives me back clipping limits like X:174, Y:175, W:246, H:470. However, you can see in the screenshot the text block itself is X:174, Y:190, W:246, H:454

The values I'm getting seem to correspond to the scope of the selection highlight if I have the highlighted text.

I have yet to find all values / combination of the values the text-related interfaces that will allow me to directly get (or replace) rect real framework, as illustrated by InDesign.

Anyone know how to do in this regard?

Thank you

Liz

text.jpg

Hello LizW,

do not assume that page originated at the top left of the page. If you want to have the coordinates of point page relative to the left and top of the page and then transform the bounding element of its internal contacts page to disseminate the coordinates and, except internal coordinate of the page. After that translate the outcome of the origin of the page area delimitation.

Markus

Tags: InDesign

Similar Questions

  • Basic question on the lines in a text box

    How do you get a stroke in a text box to automatically extend at the edge of the box?

    If I could control the length of the lines as below just by resizing the text box.

    2009-05-11_122901.png

    I know this is possible because I saw him in the old Pagemaker files.

    Use a right-indent tab and apply underscore tab.

  • How to get the frame number current timeline using jsx?

    How to get the frame number current timeline using jsx?

    Thanks for the link!

    Clarification: I was looking for the current image on the timeline of the video. OP he mentions that he had found how to get that so I searched a bit more and found this thread: Re: can I inpoint in read/write and out-point of the clips in a group of video with scripts? They have the following functions, I have not tried yet, but it seems like it should work.

    function getCurrentFrame() {}

    try {}

    Var ref = new ActionReference();

    ref.putProperty (charIDToTypeID ('Rprp'), stringIDToTypeID ('currentFrame'));

    ref.putClass (stringIDToTypeID ('timeline'));

    var / / desc = new ActionDescriptor();

    desc.putReference (charIDToTypeID ('null'), ref);

    var TC = executeAction (charIDToTypeID ('getd'), desc, DialogModes.NO);

    Return TC.getInteger (stringIDToTypeID ('currentFrame'));

    } catch (e) {return null ;}

    };

  • My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    My students use the filling and the signature on a package of .pdf tool I'm going to fill them, but when they record and open the next day their text boxes, that they created with the bucket fill tool and sign all went and many are overlapping.

    Hi chbradshaw,

    Instead of filling & signature, tool, use the text comment comment tool, KB doc option. using comments in the PDF, Adobe Acrobat DC files (keyword: Add a text comment).

    Kind regards

    Nicos

  • Cannot read e-mail messages Hotmail, I get the frame of page but not the text of the E-mail

    Dear anyone.

    Since May 4, I was unable to read Hotmail emails in Firefox, I had to download Google Chrome just to read emails (yuck!) Before May 4, everything was fine. Now, I get the page frame, i.e. the part that said Hotmail to the top my list of Email subfolders to the bottom of the left side and the text of Microsoft on the bottom. The central area, which must contain the text of the may E real (and graphics of course if there is) is empty. I tried clear the cache and history, clear cookies, just like that, no joy.

    What has been the change suddenly from Hotmail, which has caused this? It is NOT a change in Firefox that I have not changed my version and it worked perfectly until today, may 4.

    Your puzzledly

    ulrichburke

    Sorry to disappoint you, but I'm a man. But thank you for your comment.

    Could you please mark this issue as RESOLVED for other users can come here to get the solution?

    Thank you.

  • How to get a CC to a text box in the field email

    Java not warned (unless it's hot

    with foam) I

    have a button submit with mailto: address. How can I get the CC that come from a text field box?

    I put a sample file for your reference on the CC Email sending in a text box.

    You can download the example from the link below...

    https://Acrobat.com/#d=pFyQRZ * C1TYAlU * 8VOpV8A

    Thank you

    Srini

  • Get the value of a text field in a dialog box?

    SystemPrompt *prompt = new SystemPrompt();
    //SET ADDITIONAL PROMPT SETTINGS
    
    //LATER IN THE APP
    myTitle = prompt->inputField->?????
    

    How can I get the text that a user has entered my guest?

    I tried:

    myTitle = prompt->inputField()->defaultText();
    

    But no luck.

    It is in C++.

    Thank you

    You can use the function of Member SystemPrompt::inputFieldTextEntry()

    I've only used in QML so far, but I guess in C++, you would use:

    prompt->inputFieldTextEntry()
    
  • How can I get the data of selected text in a text box in flash 8?

    Hi all
    IM using that a text box and we are conducting a kind of embedding the swf in MFC application making all communication through the external interface and add reminders to the nth degree. Joke...
    All right, I need to copy the selected text from the text box in the Clipboard. I could able to copy the full text of the text box in the Clipboard, but how can I copy the selected text in the Clipboard? I couldn't find any textarea.selectedText or any help online for selected text manipulation.

    Can anyone here help me?

    Thanks in advance,
    Kolar

    No, I should have checked earlier.

    It is a way to make fast her... it is to do it, it should work ok, but this isn't the 'best' way to a view OBJECT-oriented programming.

    When you test using test movie, the trace command can steal the focus the first time that a trace output appears. I suggest to remove the instructions of tracing to see that it works properly.

  • How can I change the size of a text box without moving boxes?

    This is my problem:

    Regularly, I have several text boxes in a row area and need to extend the boxes to display all the text. I used the direct Selection tool to select all the boxes and then use the Middle bounding box handle to drag the boxes longer. When I do this the position of the box moves as well. If I type a number for the height of the boxes, it extends the type.

    How can I make the boxes more time to show all the text without moving the boxes?

    I use Illustrator CC2015 on Windows 7.

    Thank you.

    OK, I see now, this is happening to me also. But on a much smaller scale, so did not notice. My Y was pt 178. After scale if has 179.247

    1. With nothing selected appears hovering over the region, which I marked in red at the bottom of the pane click
    2. Hold the SHIFT key, click on the second box
    3. Click and drag on the 3rd bottom of the text pane and drag down.

    Who has taken my y-axis, let me know if it works on windows? Don't know how to get the tool to work.

  • How to get the 'Topic' and 'Message' text the default Flash of MS Outlook mail form?

    Hello

    I have the following code which works fine except that I can't get the user has typed form flash for my e-mail application (MS Outlook) data. How to change the following code?

    In the code:

    1) for-> This field is correct since this e-mail ID does not change

    2) cc-> this filed is also correct since no change will be in the identification of email

    3) topic-> which may not always be as "Feedback", users might want to change the subject

    Whant I would add more is here:

    (1)-> this text to be retrieved from 'fromText.txt' text entry box

    2) message-> this text to be retrieved from 'MessageText.txt' text entry box

    1 button event listener
    SendMail.addEventListener (MouseEvent.CLICK, SendEMail);

    2. the SendMail function open e-mail application to send e-mail.

    function SendEMail(event:MouseEvent):void {}
    var email: URLRequest = new URLRequest ("mailto:[email protected][email protected] & topic = Feedback");
    navigateToURL (email, "_blank");
    }

    Thanks in advance for any help.

    Kind regards.

    use:

    var email: URLRequest = new URLRequest ("mailto:[email protected]?") [email protected]& topic = "+ subjectText.text +" & body = from: "+ fromText.text+"\n\n"+MessageText.text);

  • get individual characters in a text box.

    Another beginner question.  I am writing a script that verifies that the number of wine (num series) of a vehicle is correct.  I need to access each of the 17 character entered in a text box.  I would like to be able to count the tank enter (right now it is limited to 17) and I need to multiply each tank by different numbers to check against the check digit of the VIN.  I think my problem is that I can not get the value of the field recognized as a string or a series of tank.  I get an error of syntax on line 5, when I add *: string * line.  If I don't then it does not recognize the *. charAt() * function in line 6.  Do I need to add a header or something?

    Also is a question, there a way to search the post before just to Acrobat Scripting debate?  When I do a search, it seems search all the forums and can't find what I want.

    var Val = 0;

    var theChar = ' ';

    Dally var = this.getField ("wine");

    var theString:string = theVin.value;

    theChar = theString.charAt (0);

    Val = value (theChar);

    Val = Val * 8;

    this.getField("checkVin").value = Val;

    This can be a little difficult, because you have to deal with the strings and numbers. JavaScript has a few traps in this regard.

    The first thing to change is the line

    var theString.string = theVin.value

    This line of code does not much sense in Acrobat JavaScript. You can, however, change it to

    var theString = theVin.valueAsString;

    This moment should ensure that you have a string in the variable.

    Having a string, you can treat it as an array, which means that you can solve each character via an index number, corresponding to his position. The result is still a string.

    Assuming you have all the numbers, you can change the strings to the number multiplying by 1 and do the calculation of your need.

    And who should do it.

    I hope this can help.

    Max Wyss.

  • The multiplication within a text box...

    Hey all!

    Currently I am developing a mini-test within a project (Action Scipt 2) I created and could use some help.

    Basically, it's a multiple-choice test/questionnaire which adds 1 point to a text box (which will be the number 0 in it to start) If a wrong answer is selected.

    Example:

    Question 1 Total: 0

    (a) answer 1

    (b) answer 2

    (c) answer 3

    (d) answer 4

    Say so the answer 3 is the right answer, when you click on it it will go to the next question/framework. But if a, b, or d is clicked, I need to show some kind of 'Wrong' meesage (which will be a text box), display the 'NEXT' button (which is not visible/clickable until an answer is selected) to go to the next question/framework and add 1 to the box 'Total', at the same time.

    There will be a total of 3 sets of 20 questions (60 questions in total) and at the end of 3 rounds, if the user ends up with say 20 in the "Total" box, 5 points will be automatically deducted leaving it with a total of 15 (5 points subtracted is sort of a bonus at the end). Thus, on frame of 60 for example (the last picture), he would says the box 'Total' to subtract 5 by the end number of code. If the total is greater than 0, it will go to a certain range, and if the total is 0, it will go to a different image.

    Who is? Any ideas? I do it too hard... is there an easier way?

    var scoreVar:Number = 0;  initial scoreVar

    scoreTF (scoreVar);  update your textfield

    answer3Btn.onRelease = function() {}

    scoreVar ++;  increment scroeVar because it is a correct answer.

    scoreTF (scoreVar);  update your textfield

    }

    function scoreTF(n:Number) {}

    yourtextfield. Text = n;  assigns the value of scoreVar to the text property of yourtextfield

    }

  • How can I activate the spell for a text box that is just a line, for example submitted by e-mail?

    In an earlier version of Firefox, I found a site somewhere that told me what to do to turn on spell checking for text boxes that are just a line. I'm used to be able to send an e-mail with a subject that was not a misspelling. Now, it does not work. Please tell me how I can activate it once again. I'm on a Mac using Firefox 6.0.2. Thank you!

    See:

    You can set the pref layout.spellcheckDefault to 2 on the topic: config page.

    To open the topic: config page, type Subject: config in the address bar (address) and press the 'Enter' key, as you type the url of a Web site to open a Web site.

    If you see a warning then you can confirm that you want to access this page.

    • Use the filter at the top bar of the on: page config to more easily spot a preference.
    • Preferences that have changed also show "BOLD" (user set).
    • Preferences you can restore the default value or change via the context menu.
  • Problems related to the film project title/text boxes.

    In the opening of my external hard drive iMovie projects, many title/text boxes throughout the film are whitewashed.  When I click it, the text appears, but when playing the movie, they come again white.  I had installed iMovie v.10, could not navigate, so returned to old iMovie 9.0.7 and reused, but found this problem with movies.

    iMovie 11 (version 9.x.x) is not compatible with El Capitan and results in errors that you see more than others. iMovie 10 also reported problems with the video in the event viewer and the chronology of white. Only iMovie 10.1.1 is fully compatible with El Capitan. I would upgrade to 10.1.1. Yes, it's a different interface, but not for difficult cases, you read up on it and watch a few tutorials.

  • Overview of the disabled scale/resize text box

    Usually, when I scale or resize a text box, it will turn into direct, giving me a glimpse of what the text will look like if I let go of the mouse, now if I resized a text box that is exactly the same until I let go of the mouse, how it move to its new position. It is very difficult to explain, and I can't really give an example image. I'm sure it's a very simple solution, I think I just need to check a box somewhere.


    Any ideas?

    Either change your preferences for Live screen drawing immediate value, or click and hold a moment before sliding the deferred value with him.

Maybe you are looking for

  • is it possible to read several accounts together as mobile phones?

    I just installed thunder bird, and set up my multiple accounts, is far from implementing the Thunder Bird or y at - it a plug-in to view all new mail simultaneously.showing the mail they are received and code to the account they received from the col

  • Re: How to turn the keyboard on a Satellite P505-S8980?

    Hi allI really need illuminate the keyboard on my laptop.I entered in the help section and utility and can't findno way to do it.Sitting in a semi lit the room and make countless typosstarting to get a little boring.Any help would be greatly apprecia

  • How does one neutralize AutoCorrect?

    While I have you here how to turn off the correct/suggestion? (ie the green words while typing, I would opt to keep the more gray, if I can't I can't).

  • Send variable vision to the NXT brick manufacturer

    Hello I have a color sorting machine controlled by a Mindstorms NXT brick. I think that Labview has a module to communicate with the Lego brick, but I was wondering if the Vision Builder (that we currently use for another application) may also commun

  • What happens when I lock my computer?

    When I stop the calculation for a few hours and choose "lock" what exactly happens? Is access to my computer off of the hacker/intrusion? Or should I unplug my modem line? Thank you