How to retrieve page number of a page

Hi
I need to retrieve page numbers that have been placed on InDesign pages. However these page numbers are autogenerated based on markers (formula) created using a master page. (Insert special characters -> markers).
When i try to retrieve page items on a page, I am not able to get the page number item. If I try to get the pageitem corresponding to the page number from the master page, I get back the marker but not the page number that exists on my page.
I am wondering if there is any way I can retrieve the page number on a given page using the SDK
many thanks
Sam

Hi
Thanks a lot for the quick reply.. For my usecase i now realize i have a different sort of problem.
I am trying to take snapshot of pageitems on a page (using snapshotUtils sample). Now since the page number marker comes from the master page, when i take the snapshot of the page number item on my page,  this page item exists on the master page. On the master page, this pagenumber does not contain the actual page number but the marker text in it. So mysnapshot gives me the image of the marker text rather than the page number. I am wondering what I can do to basically get a snapshot of a page item which comes from a marker on the master page
Thus on my master page i have a text box with Pagenumber: "Marker A" for page number
on my page, I want to take snapshot of  Pagenumber:10 which is what gets displayed on my page
However when i take snapshot, since i am taking snapshot of master page item, i get Pagenumber: Marker A as my snapshot
thanks
Sam
Here is my code snippet for what I am doing
InterfacePtr<IMasterPage>   masterPage(currentDocumentDataBase, pageUID, UseDefaultIID());
  if(masterPage  !=  nil)
      UID masterSpreadUID = masterPage->GetMasterPageUID();
        uint16 masterPageIndex = masterPage->GetMasterIndex();
       //get the  master  spread
        InterfacePtr<ISpread>   masterSpread( currentDocumentDataBase, masterSpreadUID, UseDefaultIID()  );
       if(masterSpread   != nil)
                UIDList masterPageItems( currentDocumentDataBase );
                   masterSpread->GetItemsOnPage(masterPageIndex,   &masterPageItems, kFalse, kFalse);
The problem is  that  SnapShotUtilsEx captures the item as it appears on the master page, not  on  the current page.  So thing like page markers are wrong.
thanks

Similar Messages

  • On Yosemite how do I get Pages to print the page number on every page, not just on alternate ones?

    I  only changed from Windows to an iMac earlier this year (now on Yosemite), but cannot get Pages to print the page number on every page;  it seems only to do it on alternate pages.

    Jeff,
    I do NOT understand your positive attitude. If someone has a problem with Numbers in Yosemite, you tell them to resurrect a pre-Yosemite version of Numbers.
    The VIEW LAYOUT command is basic and critical to Numbers; how could Apple over-look such an important function in Yosemite ... ???
    Joe

  • How to insert page number on each page for Cross-Tab report?

    Hi,
    I have created a Cross-Tab in the section Report Header via Crystal Reports 11.
    Now, I want to created more Cross-Tabs, and each page has one Cross-Tab.
    So, I insert Report Headers to contain Cross-Tabs. But, the report only shows the page number at the last page.
    How to insert page number on each page?
    Thanks in advance.

    Hi,
    Well, the easiest solution is to place the Cross-tab in the Report Footer, Of course, ONLY if the report contains this single object which I'm assuming is not the case.
    If you do not wish to place the cros-tab in the Report Footer, here's what you need to do:
    1) Create a formula;
    whilereadingrecords;
    2) Create a group on this formula. If the report already contains groups, move this formula to the top of the grouping list. It won't affect the other groups or records in any way.
    3) Move the Cross-tab from the Report Header to the Group Header1 and suppress Group Footer1
    4) Add the Page Number field to the Page Footer
    Let me know how this goes!
    -Abhilash

  • Different page number eve/odd pages pages 5.2

    i am writing a thesis for my university and by formatting rules i need the pages number on even pages to be on the to(header) left and odd pages on the top(header) right. now this was super easy to do in pages 09 and before. i haven't needed that feature ever since but now i do and in pages 5.2 it seems to be impossible. as this is also a feature essential to publishing, due to the binding of the pages which makes it necessary to print them either "inside" or "outside" i cannot believe that apple has removed this feature as it would make writing documents intended for publishing in pages pointless. please help. thank you

    thanks for your reply but it's the most recent version there is, or at least i assume so because there are no updates available. i wish now i would still own my old notebook because on this machine MBP late 2013 i never had and still don't have a copy of the old iWork's 08/09.
    i take it from your answer that my efforts in finding a solution are futile because the formatting option i'm asking for has been removed from the code?
    the only way pages lets me have different formats for even and odd pages is by either manually inserting a section break every time i reach the end of a page(as opposed to just writing in the flow) or manually numbering the pages after i have completed my work, both don't really turn me on so much as the document will end up in at least 200pages(required by my university) probably more given my research.
    last option appears to be to install MS-word, which i really really really want to avoid because i am a convinced apple user for over a decade now......or maybe would you know where i can procure a copy of the old iWorks, the internet seems to only offer me questionably legal downloads.
    nikolaus

  • Displaying Page number in all pages of sap script output

    Hi All,
    I have a issues in displaying page number in all pages of sap script output.
    I have created a seperate window just above main window to display page number.
    I have given &PAGE& in the layout editor.
    Now in the sap script output i am getting page number as 1 in all the pages page number is not changing for pages-2,3, etc..
    Can anybody tell me the reason for the same!
    In some other objects same syntax is working fine. For this object it is not working!
    Is there any setting changes!
    Thanks i
    Thanks,
    Deep.

    Hi,
    Just check the Page Counter of the Next or Second Page which you defined.
    First page
    Mode                     START
    Numbering Type           ARABIC
    Second Page
    Mode                     INC
    Numbering Type           ARABIC
    Regards
    Bala Krishna
    Edited by: Bala Krishna on Oct 17, 2008 11:23 AM

  • How to retrieve resource name in JSP page

    Hello,
    I have the following scenario:
    User wants a new resource to be provisioned to himself, he makes standard steps; chooses one resource from the list of available resources and sends a request. After that a summary page is displayed - my goal is to create an url to external application on that summary page (i.e. tjspRequestSubmitTiles.jsp) that should be displayed depending on the name of the resource, e.g. if user requests for a ResourceA - link appears, but when he requests for a ResourceB - link does not appear.
    So far I have created a link with a sample if statement - it works.
    My problem is how to make a real condition - retrieve the resource name that request deals with. Anybody know how to do that, which API to use etc.?
    Regards,
    Maciej.

    After adding the code to tjspProvideDataShowInfoTiles.jsp file, nothing has been improved, I am still facing the same result (on the console):
    RO: null
    It seems that file (tjspProvideDataShowInfoTiles.jsp) does not take part in the process.
    I have tried to pass some sample session attribute in tjspRequestVerificationTiles.jsp and this works, but I do not know how to retrieve resourceName in this file.
    I was trying to make some code retrieving resourceName in tjspRequestSubmitTiles.jsp, e.g.
    tcRequestWizardForm tcReqWizForm = (tcRequestWizardForm)session.getAttribute(requestWizardForm);
    String requestID = tcreqWizForm.getRequestID();
    ...and what to do now to retrieve resourceName?

  • How to insert company logo and page number on every page except the first page?

    Hi, I am creating a newspaper and I've inserted the page number and company name on every page using the master page (you know the basic method).
    Problem is I don't want the page number or the logo to appear on the first page, how can I do this?
    Or will I have to copy and paste it on each page instead...? I'd rather not.
    I'd appreciate any help I can get.
    P.S. I'm using CS5 and obviously I'm talking about InDesign.

    Make another master and apply it to the first page.
    Take care, Mike

  • How to you reference the current page number and total pages in a script?

    I'm trying write a small script to make field invisible when the current page equals the total number of pages, but with no luck.
    Can anyone advise how to do this?
    I've tried various ways to reference my fields, this being the most basic:
    if(pageNumber == totalPages) {
    continuedBase.presence = "invisible";
    // pageNumber has a run time property as "Current Page Number"
    // totalPages has a run time property as "Number of Pages"
    // continuedBase is a text field within the same subform as pageNumber and totalPages
    Thanks for any help offered.
    Russell

    If you are asking how to get the current page and total pages you acn use these commands:
    current page ----- xfa.layout.page(this)
    total pages ------ xfa.layout.pageCount()
    so your code woudl look like this:
    app.alert("The curent page is: " + xfa.layout.page(this));
    app.aler("The total number of pages is: " + xfa.layout.pageCount());
    if(xfa.layout.page(this) == xfa.layout.pageCount()) {
    continuedBase.presence = "invisible";

  • How do I remove the page number from first page?

    I'm new at Ai so this may be basic.  I can't figure out how to eliminate the page number from the first page.  Any help would be appreciated.

    Normally I would have a different master page for the first page, then have no page number on that master page.
    Apply this master to the first page.
    Or you can manually override the frame by holding CTRL SHIFT and clicking on the frame, then delete it.

  • Page number prefixes in pages panel?

    Is it possible to add a prefix to the page that appears in the pages panel (and not just on the page itself)? For example, in quark I can add 'C' before the first page so that the page layout panel shows the first page as C1 for cover 1. I can't find anything that seems to do this, but I'm probably missing something. CS3 if it matters. Thanks for any help.

    If you use Different Master Pages.
    You can then right click the master page in the pages panel and change the Prefix to whatever you want.
    It appears at the top of the page in the pages panel, not at the bottom in page number.
    I usually prefix my table of contents master pages with TOC, which appears at the top of the page and is a great visual reference to what page I'm clicking on.

  • How to retrieve IMSI number of SIM card through MIDP application

    Hello
    Plz. help
    How can I get IMSI number of SIM card?
    I got javax.telephony.mobile.MobileAddress interface which specify method getSubscriptionId().
    How can i use this interface to retrieve IMSI number?
    Thanks

    hi,
    i'm also in need of these details....
    How to retrieve a IMSI number?
    How to intergrate the JTAPI / any new pack with Netbeans / WTK?
    please if any knows reply me soon...
    Thanx in advance....

  • How to retrieve palette number for a shipment

    hi everybody
    does anybody know how to retrieve the palette number of a shipment?i have to display it in a smartform

    Hi,
    As i know there is no possibility if alphanumeric number range in sap.You check with any exit before updating the no in database.check this and post .
    Regards,
    Madhu.

  • How to retrieve the number of "free" rows in a table?

    Hi,
    if in a client only environment (no sync to mobile server) rows are inserted and deleted into a table,
    is there a way to retrieve the number of "free" rows in a table? Number of "Free" rows stands for
    number of rows that can be inserted again, before the table extents in size.
    Is there a way in OLite 10.3.0.2.0 to retrieve the size of tables and indexes? ALL_TABLES is not
    a place that really works.
    Best regards and many thanks,
    Gerd

    Hi Gary,
    many thanks, the partner uses a Lite client db without sync. The db runs inside an laboratory device and collects measures. There must be a way to estimate the the number of "measures" rows, that stil can be stored in the db.
    Than we need to make the deleted space available for new rows. The partner tested defrag.exe and found that it
    needs very long time to run, especially if the db is bigger than 2GB. ... and that this run sometimes fails.
    Is there any recommendation the partner can follow on?
    Thanks,
    Gerd

  • How can Retrieve phone number on Blackeberry CDMA device?

    HI All,
    I am tring to retrieve phone number on Blackeberry CDMA device using Blackberry APIs Phone.getDevicePhoneNumber(false); but is is not working it is returning null string value.
    Also I can't send SMS using BB API (for CDMA Device)
    Can you please tell me what i do for retrieving phone number using my application.
    Thanks in Advance.

    Hi,
    Thanks for reply, I am trying my application on T-mobile 8820. Your solution is good and it is working, But this solution requires manually enter phone number in Options -> Advanced Options -> Sim-Card -> Scroll Down -> MenuButton -> Edit SIM-Phonenumber.
    Actully we don't want that user do these thing.
    I tried to get phone number via sending sms to short code that returns phone number, But for CDMA there is problem for sending sms by using BB API (invoke method), Because this API restart the application.
    Is there any other way to get phone number?
    Please reply.
    Thanks in Advance.

  • How to retrieve total number of pages in a report of Instance - RAS SDK ?

    Hello All,
    Hope all is well. I am using BOXI R2 Enterprise and was wondering how to get total # of pages of an Crystal Report Instance using RAS SDK.
    Thanks in advance,
    Sam

    How do i retrieve the total number of pages in a report-- via RAS SDK
    Sincerely,
    Ted Ueda

Maybe you are looking for