How to get number of pages in word document

I am developing an OCR application where I need to get number of pages of word documents. I am currently assuming that each page consists of 46 lines but some how, I am not getting convinced with this logic. Is there any simplest way to get this information?
Let me tell you that in the OCR system I am converting tiff iamges to .txt file and again reading txt file and counting number of pages based on number of lines.
regards,
Ranjan

The number of pages depends on the font size, length of each line and any page break in between.
You could just say, one page per 46 lines, it depends on how accurate you must be.
Why not count the number of pages you scanned?

Similar Messages

  • Pages 5.2 how to view number of pages in a document

    Is there a simple way to view the number of pages in the document I am working on? In 4.3 I can see this at the bottom of the page e.g. "page 37 of 215". I would like to see both the page I am currently on and the total number of pages in the document. Having to insert page numbers when I don't need them, and keep going to the final page of a long document to see what the number right now is, is really annoying. So if there is a better way, please share.

    On Pages v5(.2), you visit the view menu and enable Show Word Count. A floating panel appears at the bottom of your document, probably defaulting to character count. When you roll your mouse pointer over this floating panel, up/down arrows appear on the right side of it. Click, and the bottom item of the resulting panel tells you the page count.  Click on the page item, and it becomes the default reporting category in the floating panel. You can reposition the floating panel by pressing the command key and dragging to the preferred location.

  • How to insert a new page to word document

    Does anybody knows how i can insert  a new page to the opened word document ?
    I am searching for the documentation for the activex word functions and i have no idea where i can find it ?
    I am using LabWindows CVI 8.5.

    Hello Boris!
    You can use the WordRpt_NewPage function to add a new page into an opened word document.
    Here is some documentation about this function: http://zone.ni.com/reference/en-XX/help/370051Y-01​/toolslib/functionreference/cviwordrpt_newpage/
    You'll also find useful hints on how to use it in the sample program that ships with CVI: <samples>\activex\word\wordrpt.prj.
    Best regards!
    - Johannes

  • How to get number of pages uisng cl_gui_alv_grid

    Dear all,
    my requirement is iam creating PO based on vendor and material grade,suppose if my vendor has 100 line items i should display all those line items into 5 pages.iam using set table for first display method to display Itab.iam using Module pool programming.i have designed screen using call screen 1000.iam using line count and end of page.but it is not triggering.where should i declare top of page i.e after pbo in pai.iam using class cl_gui_alv_grid.i have searched for classes also but iam not found the correct one
    please helpme.
    Regards
    Shiv
    Edited by: raj shiv on Feb 10, 2012 5:19 AM

    Hi Raj
    Generally we Call Set Table for First Display in the PBo part. So that there itself you need to trigger Top of page envent.
    Please check the flow below. This is a good standard we adapted from SAP Standard.
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'S_100'.
      SET TITLEBAR 'T_100'.
    Exclude the Unwanted Tool bar functions in the ALV
      Perform EXCLUDE_TOOL_BAR_FUNCTIONS Changing PT_EXCLUDE.
    Fill The Field Catalog for ALV View
      Perform FILL_FLDCATALOG Changing TB_FCAT.
    Fill the Top Of Page Event
      Perform TOP_OF_PAGE_ALV.
    Form to Fill the Color / Highlight the Line
      Perform FILL_COLOR.
    Display Data
      Perform DISPLAY_ALV.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Hope this helps

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • HT2490 does anyone know how to get my 'google' page back when I click on safari- it was always there and now comes a panel of panes with my 'top sites'- it is so aggravating...

    does anyone know how to get my google page back when I open safari??.... it is gone and I get a full page of 'top sites' instead... it is so frustrating! appreciate the help if anyone knows!

    Safari preferences / General tab

  • How to get number of rows return in SELECT query

    i'm very new in java, i have a question:
    - How to get number of rows return in SELECT query?
    (i use SQL Server 2000 Driver for JDBC and everything are done, i only want to know problems above)
    Thanks.

    make the result set scroll insensitve, do rs.last(), get the row num, and call rs.beforeFirst(), then you can process the result set like you currently do.
             String sql = "select * from testing";
             PreparedStatement ps =
              con.prepareStatement(sql,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
             ResultSet rs = ps.executeQuery();
             rs.last();
             System.out.println("Row count = " + rs.getRow());
             rs.beforeFirst();~Tim
    NOTE: Ugly, but does the trick.

  • So, I made my account a while ago before I had an iPhone so I can get music. The result of that I can't remember my security questions, and it tells me to send a rescue email an alert, but it doesn't show you how to get to that page. Can someone help me?

    So, I made my account a while ago before I had an iPhone so I can get music. The result of that I can't remember my security questions, and it tells me to send a rescue email an alert, but it doesn't show you how to get to that page. I am getting quite annoyed because apples hours arent the best fitted to my scedule since I have school and work, so I cant call and ask how to get fixed. Please help me all I want to do is buy some music...

    Click here and fill out the form.
    (90729)

  • How to get a second page in a form letter report after create it by Wizard

    How to get a second page in a form letter report after create it by Wizard
    i've built a report by wizard with a sql-Query
    the sql give me back for example 3 dataset
    and the report prints 3 pages
    dataset 1 - page 1
    dataset 2 - page 1
    dataset 3 - page 1
    thats ok,
    but now I need a second page per dataset ( with only a text )
    so that the report should print 2 pages per dataset
    dataset 1 - page 1 ,page 2
    dataset 2 - page 1 ,page 2
    dataset 3 - page 1 ,page 2
    It's not really clear for me, what to do, to create the second page
    any help ?

    .... found answer in other forum

  • How to get number of digits in given amount

    Hi Experts,
    How to get number of digits in given amount.
    Regards
    Mohit

    Check this :
    data: v_data1 type p decimals 3 value '12.860',
          v_char1 type char20,
          v_char2 type char20,
          v_char3 type char20,
          len type i.
    write v_data1 to v_char1.
    split v_char1 at '.' into v_char2 v_char3.
    len = strlen( v_char3 ).
    write:/ v_char2,
          / v_char3, " this holds the digit value
          / len.     " number digits

  • How to get the current page URL

    HI All
    I am working in oracle apps 4.0
    I have one page called history in that i have one page item called Application url. My application id is 122 but its a copy of application 106
    How to get the current page url for the page item.
    Any steps should be help ful
    Thanks & Regards
    Srikkanth.M

    I'm not 100% clear on what the requirement is from the description, however it does sound like you are making things unnecessarily complicated.
    If you want permanent/ID-independent links then use application and page aliases.
    so here we used to display the url like this: <tt>{noformat}http://81.131.254.171:8080/apex/f?p=122{noformat}</tt>
    Do you mean that the URL is displayed like that? If so that doesn't seem particularly helpful. How is anyone supposed to know what it is?
    There are many ways to provide links in APEX&mdash;including lists and nav bars.
    Where the link is to another resource located on the same server (such as another page in the same app, or a different app in the workspace), relative addressing can be used, making it unecessary to include scheme, domain and port information in the URL. For example, if the page to be linked to has a page alias <tt>ABOUT</tt> in an application with alias <tt>UNITY</tt>, and the apps share an authentication scheme/cookie to permit shared sessions, then the link URL is simply
    f?p=UNITY:ABOUT:&APP_SESSION.

  • How to get the total pages in ALV report?

    Hi guys,
    Since I used page breaks can somebody please help me on how to get the total pages in ALV report?sincerely please...thanks guys.

    automatic display total page.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    r

  • How do I download a Adobe PDF file and get it converted to a Word document?

    How do I download a Adobe PDF file and get it converted to a Word document?

    Download: you just download it as you would any other document.
    Convert to Word: either using the ExportPDF online service, or Acrobat.

  • How to get the Empty page in Webi report

    Hi,
    I have to insert the charts in the report but i don't have the space to insert the charts in same page so i need one more page how to get the blank page in report
    thanks,

    turn your report from Page Layout to Draft Mode. Than you will be able to insert chart in it.
    You can view Web Intelligence reports in different modes depending on how you want to work with data and how you want the data to appear.
    1. In Web Intelligence Interactive, select the report tab of the report you want to view.
    2. Click the arrow next to the View button on the main toolbar above the report.
    3. Select the viewing mode.
    4. In the Java Report Panel or Web Intelligence Rich Client, use Switch Page/Quick Display on the Reporting toolbar to alternate between Page mode and Quick Display mode.
    Edited by: srrachna on Apr 22, 2011 2:25 PM

  • How to get the jsp page name in jsp?

    how to get the jsp page name in jsp? how the jsp get the jsp page name dynamic.
    thanks in advance.

    Try request.getServletPath()

Maybe you are looking for