How to get number of a character Page?

Currently I get a character by CreateOutlines Page

Dim oaPols = oChar.CreateOutlines (False)

Download oaPols (1) page of the object.

But sometimes Indesign was the crash by this code: Dim oaPols = oChar.CreateOutlines (False)

How to get number of a character Page?

Willi Adelberger wrote:

Why do you do the contours? It should NEVER be done in InDesign!

Hey Willi,

the OP is trying to find a method to get the page name of a character given somewhere on a page or on a spread and use a VB-Script scripting method.

The False parameter in the method indicates that the character will be duplicated on top of the character as an outline object.
In the user interface you select a character and press and hold the ALT key when you use the menu command for this.

Usually we take the object returned after obtaining the information of her by the script.

But obviously something bad on the side of the OP, because InDesign crashes if this method is used on one of the sample characters. Usually a geometrical object on a page will return the page object as the value of his property in parentPage (ExtendScript).

I'm not in VB-Script, so here's an excerpt from ExtendScript to get the name of the page in the text of a character block.

Select a character and run the code snippet:

// ExtendScript (JavaScript) snippet
// One single character should be selected:

var myCharacter = app.selection[0];
var result = myCharacter.parentTextFrames[0].parentPage;

if(result == null)
{
    alert("Character's text frame is considered on the pasteboard")
}
else
{
    alert("Character's text frame is considered on page: "+result.name)
};

Now, back to the createOutlines() method.

It would fail on for example all white space characters and characters that represent a fixed page element.

It would also fail if the character is in the overset text.

createOutlines() would be to raise an error, but should not crash InDesign.

Now go to the OP to the following questions:

What is the character that you try to use the method with?

Is there excess in text?

What is your exact version of InDesign?
What is the exact version of your Windows operating system?

Kind regards
Uwe

Tags: InDesign

Similar Questions

  • automatically get number (page_id) of each page and its title

    Hello
    I want to get number (page_id) of each page and its title in an application automatically.how APEX can I do? can someone help me?
    Thank you very much in advance!

    Hello

    Try:

    SELECT PAGE_TITLE FROM APEX_APPLICATION_PAGES
    WHERE APPLICATION_ID = &APP_ID.
    AND PAGE_ID = &APP_PAGE_ID.
    

    Andy

  • How to get the fixed lines per page? really Urgent!

    I am facing problem with the fixed lines per page. The footer (Subtotal) block moves upward, leaving space at the bottom when the number of items is lower.

    I have a two groups: one for the KIT and the KIT COMPONENTS. When I'm generation report for KIT only ITEMS I'm attaches footer using the

    < name of xsl: variable = "no_of_lines_per_page" select = "number (30)" / >
    <? for-each@section:Q1? >
    < xsl: variable xdofo:ctx = 'incontext' name = "inner_group" select=".//Q2"/ >
    <?-foreach: $inner_group? > <? If: (position () - 1) mod $no_of_lines_per_page = 0? >
    < name of xsl: variable = "first_rec" xdofo:ctx = 'incontext' select = 'position ()' / >

    but when I try to generate the report in combination with KIT COMPONENTS together, I am not able to set the number of lines per page. The footer is allocated to the next page. Now I Q2 and Q3 where Q2 makes Parent Kit and Q3 is child components Kit.

    How can I get it fixed lines per page for Q3 in regards to the Q2?

    I would appreciate if someone can answer me quickly.

    You have sent the updated RTF.

  • How to get the list permissions wise page name or menu-wise

    Hello

    I want to know this authorization list associated with a specific page or a menu. Please help me how to get that

    Check the following on the internet regarding the area of authorizedaction, which contains the information you need.

    http://peoplesoftwiki.blogspot.nl/2009/12/finding-barname-ItemName-and-all-about.html

    you want to hide the PeopleTools menu? If so, mke sure (s) he doesn't have the permision list that grants the permissions so that you do not want.

  • How to get the name of a page class in the apex oracle

    Hi all

    Can you get it someone please let me know how we can get the class of a page or area name in the oracle apex? I would also like to know how to get the DOM object for particular item ID.

    I appreciate any help on this.


    Concerning
    REDA

    If a category exists already, then you can find them by inspect element in firefox/chrome browser and look like to class = «MyClass...» »

    If there isn't one, then you can add via - point edit > attributes of the HTML Form element > class = "yourclass.

    See this http://www.w3schools.com/tags/att_global_class.asp

  • How to get a date on different pages?

    Hey everyone, I am working on a daily planner for the office and I have a script that automatically generates the dates but I Don t know how to get each of the dates on another page. I would appreciate if someone could help me get each date generated by the script on the next page of my 365 page document. The scrip is:

    var month = ["Jan", "Feb", "Mar", "Apr", "Peut", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "December"];

    var length = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

    var days = ["Sun", "Mon", "Tue", "Wed", "Game", "Fri", "Sam"];

    Count = 0;

    day = 0;

    months = 0;

    week = 5;

    Str = "";

    While (count < 365)

    {

    Count ++;

    "days of Str += [weekday] +", "+ (day + 1) +" "+ month [month] +"\r ";

    day ++;

    If (day > = length [month])

    {

    day = 0;

    months ++;

    If (month > 11)

    months = 0;

    }

    day of week = (day of the week + 1) % 7;

    }

    App.Selection [0] .silence = str;

    Tanks!

    Try this,

    app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;

    app.activeDocument.zeroPoint = [0,0];

    {with (App.activeDocument.viewPreferences)}

    horizontalMeasurementUnits = MeasurementUnits.points;

    verticalMeasurementUnits = MeasurementUnits.points;

    rulerOrigin = RulerOrigin.pageOrigin;

    }

    var month = ["Jan", "Feb", "Mar", "Apr", "Peut", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "December"];

    var length = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];

    var days = ["Sun", "Mon", "Tue", "Wed", "Game", "Fri", "Sam"];

    Count = 0;

    day = 0;

    months = 0;

    week = 5;

    Str = [];

    While (count<>

    {

    Count ++;

    "Str [count] = days [weekday] + ', ' + (day + 1) +" "+ month [month] +"\r ";

    str1 = str.toString ();

    day ++;

    If (day > = length [month])

    {

    day = 0;

    months ++;

    If (month > 11)

    months = 0;

    }

    day of week = (day of the week + 1) % 7;

    }

    for (i = 0; i<>

    {

    var myTextframe = document.pages [i].textFrames.add ({geometricBounds:[0,0,50,150]});})

    myTextframe.insertionPoints [0] .silence = str [i + 1];

    }

    Vandy

  • How to get number of SNA

    Hello

    How to get my current scn number?

    SQL > select current_scn from v$ database;

    CURRENT_SCN
    -----------
    1.5223E + 10


    Please tell me wat query above is my current scn number?

    Thank you
    Concerning

    Increase numLargeur

    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    -----------
     6.0114E+12
    
    SQL> set numwidth 20
    SQL> select current_scn from v$database;
    
             CURRENT_SCN
    --------------------
           6011421327782
    
  • How to get the run time on page

    Hello

    I want to display the clock running and the user that loggin.

    Pls knows me how to get the running time display and the user name which connect you.


    thakns
    Kumar

    Hello

    You can use javascript clock and substitution string APP_USER
    This place at the source of the HTML region

    &APP_USER.
    
    

    Use styles to get look like you entered and span tag

    BR, Jari

  • How to get back more than one page at a time?

    Surfing on sites like eBay, I often look through several pages of a search. When I finished. I would like to be able to 'Go Back' to the page where I started. It may be several pages back and using the button 'Go Back' is heavy, when I need to go back several pages. I hate to say it, but IE has an arrow next to the 'Go Back' and 'Moving forward' buttons which offers a drop down of the last X number of pages visited. This function allows me to 'Go Back' page I want with a single click. I really want to switch to Firefox, but this issue is a real pain for me when browsing. Is there a feature in Firefox that will allow me to do this easily?

    You can get the menu drop-down by clicking on the previous/next buttons or now the left key pressed until the list is displayed.

    If you want the drop-down arrow, you can add it with the add-on of dropmarker rear - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • [JS] [CC] how to get the last visible character in a saturated text block?

    Hello

    I am new to InDesign scripting in javascript. I would like to know if there is a way to get the position of the last character in a text frame that is busy? I need this because I want to calculate the number of characters is hidden (overflow text) via the script.

    I looked in the forums about this, but I think it is always a script to alert if there is too much text or not.

    I'd appreciate any help!

    Well, let's say myFrame is a flowing text block.

    Thus, the last character in this context would be

    myFrame.characters-[1];

    To calculate the number of characters to spill, select the

    framework text overflow and run this script:

    myFrame = app.selection [0];

    myParentStory = myFrame.parentStory;

    Alert ("number of characters to spill is

    "+ myParentStory.characters.itemByRange (myFrame.characters [-1],".

    (myParentStory.characters [-1]) .length-1);

    Ariel

  • How to get what mode of the page is striking.

    Hello

    I have a page to SIT with addition and update button on this page.
    When I click on the buttons page opens "PersonSitUpdPG".

    Please let me know how can we know if there opening the page by clicking on the button update or by clicking on the Add button.

    Hello

    SitMainPageCO:

    whenever u click the Update icon she is entered in code below:

    If ((str4! = null) & (str4.startsWith ("HrSitUpdateButton"))) {}
    localObject2 = str4.substring ("HrSitUpdateButton".length ());
    j = 1;
    -Set session value
    pageContext.putSessionValue ('Flag', "U");
    }

    SitUpdateCO:

    -extended co writing get session value b4 super and validate.

    If (PageContext.getSessionValue ('flag')! = null)
    {
    If ("U". Equals (PageContext.getSessionValue ('flag')))
    {
    -DO the validation here
    }
    }

    Note:

    Check the update and add.write a few debug messages and test.

    Concerning
    Meher Irk

  • How to get current request references and page

    Hello

    I have buttons (to print and download in PDF, CSV, XLS) on multiple pages... for now I use following code to get their work...

    http://Apex.Oracle.com/pls/Apex/f?p=31815:3: & SESSION. : PDF

    which means that on every page I need to put the reference in hard coding... is there a way to replace the page ID number and application with a reference (similar to what I did above to the session ID)... something like this


    http://Apex.Oracle.com/pls/Apex/f?p=REF_APP_ID:REF_PAGE_ID: & SESSION. : PDF

    Thank you

    Hello

    Use substitution strings. And you do not need to write any URL
    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/concept.htm#sthref156

    f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:PDF
    

    Kind regards
    Jari

  • How to get 100% of width of Page 100% screen width

    How can I get my width of page in DW, actually cover 100% of the width of the page.

    Right now whenever I put a table to 100% of page width, there are significant gaps in areas of observation on the outskirts, as well horizontally than vertically.

    How to activate it?

    w

    Have you set the margins and padding to zero on the body?

    {body

    margin: 0;

    padding: 0;

    }

    As for 100% of table height, you can try the following article - if there is no 100% table height attribute.

    A table to enlarge or shrink to take account of whatever content is inside.

    http://apptools.com/examples/tableheight.php

  • How to get user_id FND of a page of the OFA

    Hello

    I want to get the user_id DNF of the user who opened the OAF of the controller page. How can I get it. Also, how can I see all the attribute names that I use in the controller. I see that I can use paramOAPageContext.getParameter ("attribute"). Where can I get a list of all attribute names?

    Thanks for your help.

    I want to get the user_id DNF of the user who opened the OAF of the controller page

    pageContext.getUserId ();

    Thank you
    -Anil
    http://oracleanil.blogspot.com/

  • How to get back the My MSN page as my default with all of my mail, Favorites, etc. ? I have a new computer running windows 7.

    I have a Verizon Fios connection.  My old computer and hard drive are slaughtered.  However, my favorites, etc. were transferred to the good folder on my new computer.  I can't the butterfly on my desk?  The main thing I want is to come back to my mail.  It would be nice to get my homepage even without having to do it again.  I would still have my account with the same user name and password - I just can't understand how to access it.  I also have nothing to do with Windows Live.  Help, please.

    Thank you once again, but I solved the problem in the meantime.  I found myself on a verizon site which had a robot named Frank who provided the download that I needed.  I started to www.verizon.net/micro/betterway , but had to submit to certain fluctuations so that he can understand that Windows 7 has met their minimum requirements.  I now have the butterfly on my desk, and all my mail, Favorites, homepage and addresses are intact.  Anyone else with this problem should go on the verizon site, press the help button and tell Frank the robot you want a 'Verizon Broadband with download MSN for Windows 7".

Maybe you are looking for