Page count - how do you get it?

I'm using the Java API. How do I get the page count of a pdf?  There is a method on the "FormsResult" object called getPagecount() but it does not work - always returns 1!! (BTW, I am using formsClient.renderPDFForm() - which returns the FormsResult)

Thanks Paul,
That's what I suspected but did not pursue it as I wasn't sure it would help but now that you have validated my thinking I'll give it a shot.
One problem is that setting RenderAtClient = NO throws errors on the server (java.lang.NoClassDefFoundError: com/adobe/printSubmitter/service/OutputServiceImpl$4
at com.adobe.printSubmitter.service.OutputServiceImpl.transformPDFWithSMT( 
OutputServiceImpl.java:477)  
That's why I never had it set to "NO".

Similar Messages

  • How do you get word count to print at the end of a document in Pages?

    How do you get word count to print at the end of a document in Pages?

    Pages v5 does not provide a user assignable word count variable. With some AppleScript, and a paste operation from the clipboard, you can have locale punctuated word count in this format: 7,803 — anywhere in your document. The following AppleScript works with Pages '09 v4.3 through Pages v5.5.2 on Yosemite.
    I would suggest that you copy paste the following AppleScript into your [Apple] Script Editor and save it (suggestion) wordcnt.applescript. Then, follow this with an option+Save As… and this time set the File format to Script Bundle, or Application with hidden extension — saved to your Desktop. Provided you have a Pages document open, you are then a double-click from the ability to paste your current word count into Pages.
    Note: If you have Pages word count display enabled, it will automatically count your pasted value as another word which initially may deceive on true word count at the time the script was run.
    AppleScript
    --- copy below this line ---
    property locale : "en_US.UTF-8" -- In Terminal, use the locale command to see yours
    if not ApplicationIsRunning("Pages") then
         display dialog "Pages must be running to use this utility."
         return quit
    end if
    tell application "Pages"
        tell body text of front document
            set wordCnt to count words
            -- Don't want punctuated numbers? Remove the single quote from printf format
            set the clipboard to (do shell script "export LC_ALL=" & locale & "; printf \"%'d\" " & wordCnt)
        end tell
    end tell
    on ApplicationIsRunning(appName)
         tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
         return appNameIsRunning
    end ApplicationIsRunning

  • How do you get the page count on an old hp 1012 laserjet printer?

    How do you get the page count on an old hp 1012 laserjet printer?

    You should find this information on the configuration page. To print a configuration page, press and hold the green GO button until all of the lights cycle, approximately five seconds, then release the button. The Configuration Page will print.
    You can find more information in this document: Identifying Page Count.
    I am an employee of Hewlett Packard.
    - - Please mark Accept As Solution if it solves your problem so others can more easily find the answer - -
    - - Please click the Kudos star if you would like to say thanks - -

  • How do you get a word and character count of a document in Pages for Mavericks

    How do you get a word and character count of a document in Pages for Mavericks?

    Hi jonathan,
    I struggled with this one as well, as i'm finishing up a PhD thesis and word counts are incredibly important. Through trial and error i found out that words like 'e.g.' and 'i.e.' count as two words and an ampersand (&) doesn't count at all. That being said, i didn't like the fact that the word count always included footnotes and i was dismayed that i couldn't get an accurate count of words in the main body of my text. That all disappeared yesterday when, by chance, while i was copying a completed chapter and pasting it into my main document, i discovered that Pages can indeed give you an accurate word count excluding the footnotes!  Here's all you need to do:
    1. In pages 5.2, make sure that the Word Count function is first enabled by selecting View --> Show Word Count from the Pages Menu Bar. (If it's already enabled, it will read View --> Hide Word Count, so if that's what it says, then no need to do anything.)
    2. Once enabled, check the Word count that's currently showing at the bottom of the page. That's the word count including your footnotes.
    2. Now, place your cursor anywhere within the current document, then hit command+A (for Select All).
    3. Viola! Your word count now shows the actual number of words within the body of the text only, excluding footnotes!
    Hope that helps!

  • When I move my curser over certain things I get this Message in a window that pops up and says "We noticed you may have signed in or signed out in another window click ok to reload your page." How do I get this to stop.

    When I move my curser over certain things I get this Message in a window that pops up and says "We noticed you may have signed in or signed out in another window click ok to reload your page." How do I get this to stop.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    You may have to create an Allow cookie exception for that server.
    * Tools > Page Info > Permissions

  • How do you get rid of white space when you are printing multiple pages to one sheet of paper?

    How do you get rid of extra white space when you are printing multiple pages to one sheet of paper?  When printing multiple pages to one sheet of paper Acrobat won't let you select the "zoom" for printing.
    Thanks

    Take a look at Quite Imposing.

  • I just bought the iPad Air and wanted to download an app and when I dismissed the page that came up that was offering free apps for the Air I pressed not now, how do you get that back?

    I just bought the Apple iPad Air yesterday and I wanted to download a certain app from the app store.  When it first opened it had a page come up over the apps with free apps that you could download to the iPad. I clicked on the not now button, thinking it would reappear after closing and re-opening the app store, but it did not. How do you get this back so that I can have the opportunity of checking the apps out?
    Thank you for any assistance that there may be for this.

    After activating your iPad, go to the App Store and search for your free apps:
    1. Pages
    2. Numbers
    3. Keynote
    4. iPhoto
    5. iMovie
    6. GarageBand
    If apps are still showing the price: sign out>reboot>and sign in again
    Settings>iTunes and App Store>Apple ID

  • You have created a link to another part of your book but how do you get the reader back to the original page?

    Using iBooks Author to make a book you have created a link to another part of your book but how do you get the reader back to the original page?

    Asking me to be verbore is a dangerous thing  :-)
    When you eneter information into iTunes Producer for uploading, the info must match what is in the internal metadata. In this case, the book is called Mississippi, but in  iTunes Producer it is spelled Misssissippi. There is an extra "s". This will cause an error.
    - Fabe

  • With the new io5 on safari how do you get back to top of the page quickly

    With the new io5 on safari how do you get back to top of the page quickly?

    Same way as before - click on the top. But the area to click seems to be slightly lower ... aim for the touch of the grey and black instead of the black.

  • How do you stop the welcome to firefox 4 screen from coming up every time I open firefox? I get two tabs, one the welcome window, then my home page. How do you stop the bloody welcome screen?

    How do you stop the welcome to firefox 4 screen from coming up every time I open firefox? I get two tabs, one the welcome window, then my home page. How do you stop the bloody welcome screen?

    Its not my home page, Like I said, I hae my home page also come up in a different tab (google) I also get the welcome to FF4 on a seperate tab. My home page is set to google. But I dont want the welcome screen to pop up

  • How do you get  the count of number of  checkbox selected?

    hi,
    plz tell me how do you get the count of number of checkbox selected?

    Not sure what you are doing so I will attempt to answer your question. If have one question which can have multiple answers you have will recieve an array so you have to do getParameterValues("name") and move it into an array.
    If you have multiple questions and only value will be selected do a getParameter("name") on each form element.
    HTH, if not provide more detail.
    J.Clancey

  • How can you get get two master pages to repeat in a document with one of them having numbering.

    How can you get two master pages in Indesign to repeat when one of them has a numbering section and the back side is a common back. For example, Master A has numbering 001-500 and Master B is the common back for all 500 pages.

    My guess is you either want to use a numbered list for the numbering, rather than a page number marker, or you want to make two files and print a single page file with the static text 500 times, then flip the stack and print the 500 page file.
    What are you trying to do?

  • How do you get you`re back ground to show on the hole page?

    how do you get you`re back ground to to show the hole pict. not just the top part of it?

    If you are referring to a persona then a persona only covers the use interface part with the toolbars and not the browser part that shows the web pages.
    * https://support.mozilla.com/kb/Using+themes+with+Firefox
    Add extra empty toolbars if you want to see more of the persona.<br />
    You can create extra toolbars to get extra space via View > Toolbars > Customize<br />
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.<br />
    See http://kb.mozillazine.org/Toolbar_customization

  • How do you get iWeb not to reload my entire page?

    How do you get iWeb not to reload my entire page content when clocking on internal links? Sometimes I just want to change one picture from one page to the next and want the remaining aspects of the site to stay as is so that your web browser essentially only loads one image and keeps the other stuff. I have seen this on basically all pro websites. THANKS!
    Joel

    What version of iWeb are you using? Also what system?  What are you using to upload the site files to the server?
    OT

  • When you have a list or blog within a box on a page, how do you get it to scroll within the box.

    When you have a list or blog within a box on a page, how do you get it to scroll within the box?

    Thanks so much!  Whatever I was trying only worked randomly. You made my day!

Maybe you are looking for

  • Sender JDBC channel stop send messages

    Hi, We have  a sender JDBC scenario which is working correctly time ago. However, sometimes this channel   stop sending messages although the Adapter Monitor shows that they regularly execute the polling interval. We have confirmed that there isn't a

  • How to bind a Set in TupleBinding

    If I have a record: class Record{ long o long a Set<Integer> v }o,a are part of the primary key and Set<Integer> v is the data portion. When I create a primaryIndex, I need to provide an entity class (in this case Record) and entity binding ( that wi

  • Publisher Margins OK - Output Totally Different on 1518 LaserJet

    I have a 1518ni COlor LaserJet. Excellent print quality, but many frustrations with this unit including VERY SLOW output. Have created an envelope template in Publisher. Print Preview is perfect. Output on 1518 seems to operate with phantom margins -

  • 6350 unable to search Names

    I um unable to search Names in Address Book for letters other than the first one on each key.  e.g.. To find 'Sanders' I push 7, and get search line with 'P'. When I push a second, third and fourth time to change to ''q', 'r', then 's'. I get 'pqrs'

  • HP Pavillion 17 e049wm Notebook PC- Cannot Turn on

    Product name: Hp Pavillion Notebook PC model: 17 e049wm Product number: E0J75UA Operating System: Windows 8.1 Hello, my Hp laptop is not turning on. Last night I left it on and off the charger all night, though I believe it eventually went in "sleep