Function Module to determine the number of pages in a pdf file

Hi All,
Is there any standard function module to determine the number of pages in a pdf file?
Thanks,
Sai

Hi unk2,
There's no functionality in the Acrobat.com online services to do a character count. But, you could use ExportPDF to convert your PDF file to Word format, and then do your character count in Word.
Please let us know if you need additional assistance.
Best,
Sara

Similar Messages

  • How to get the number of pages in a PDF file with AcroPDF ActiveX control

    Hi,
    I am using the AcroPDF ActiveX control provided by Acrobat Reader and Professionals(version 9). I just wonder if I using LoadFile to load a PDF document, how can I know the number of pages in that PDF? I do not find any properites or methods that can do that.
    Thanks
    Alan

    Hi unk2,
    There's no functionality in the Acrobat.com online services to do a character count. But, you could use ExportPDF to convert your PDF file to Word format, and then do your character count in Word.
    Please let us know if you need additional assistance.
    Best,
    Sara

  • Function module  to determine the credit balance or if there is an open ite

    Hi All ,
    Can anyone please let me is there any function module  to determine the credit balance orr if there is an open standing request / open standing request /paid but not yet refunded security deposit .
    Requirement :
    Purpose -This report shows a list of u201Cinactiveu201D contract accounts and the amounts to be refunded (credit balance, paid security deposit) to customers.  This report also shows any open standing requests in customersu2019 contract accounts.
    Note:  SAP does not have a concept of u201Cinactiveu201D contract accounts.  All contract accounts are active in SAP.   
    We do have customers who pay several months in advance (when they are out of town and donu2019t want to have their services disconnected). 
    Logic to retrieve the u201Cinactiveu201D accounts:
    The inactive accounts can be identified by the Move-In/Out dunning procedure. If the mov-in/out dunning procedure is not empty, that means this account has moved out and the account is inactive.
    Business Logic and Flow
    For each contract account
    Go through each installation and check if it is disconnected
         If (one is active)
    move to the next contract account
    else (all is disconnected)
         check to see if there is a credit balance or if there is an open standing request
         If (credit balance)
    {Display contract account, customer number and information, and credit balance for refund}
    If (open standing request)
    {Display contract account, customer number and information, standing request number to be closed}
    If (paid but not yet refunded security deposit)
    {Display contract account, customer number and information, current balance and security deposit amount}
    Thanks in advance
    Rahul

    Hi Rahul,
    To find out the credit balance relating to security deposits you can use BAPI_ACCOUNT_GETBALANCES. On execution of this BAPI with BP and Contract Account Number, it will return the net balance with different segments like open, due, credit and likewise security deposit amount.
    To find out if there is any open standing request standing against the customer you can use BAPI_CTRACCONTRACTACCOUNT_GOI. You have to execute this BAPI by providing BP or Contract Account number in Main Selections  table and Main and Sub Transaction of Security Deposit Request transaction in Value Selection table. This BAPI will fetch all open items with the main and sub transactions specified and display.
    Thanks
    Ganesh

  • Function module to determine the date for the nth weekday of the mth month

    Hey folks,
    Is there a function module which determines the date for the mth weekday of the nth month in the pth year.
    For instance, if I input 2nd thursday of the 4th month in 2008, it should return me, 04/10/2008  (MM/DD/YYYY).
    Thanks and Best Regards,
    Puja.

    Hi Ravi,
    Hadn't been able to work on this lately...You solution was quite close, but did not work for a few scenarios....I tweaked the logic a bit to take care of them as well...
    So here goes the code:
    ================================================
      DATA first_day_of_month TYPE datum.
      DATA day TYPE p.
      CONCATENATE year month '01' INTO first_day_of_month.
      CALL FUNCTION 'DAY_IN_WEEK'
        EXPORTING
          datum = first_day_of_month
        IMPORTING
          wotnr = day.
      DATA day_number TYPE numc2.
      IF day = weekday.
        IF recur = 1.
          DATA ls_date(10) TYPE c.
          CONCATENATE month '/01/' year INTO ls_date.
          CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
            EXPORTING
              date_external                  = ls_date
           IMPORTING
             date_internal                  = date.
        ELSE.
          day_number =  ( ( recur - 1 ) * 7 )  + 1.
        ENDIF.
      ELSEIF day < weekday.
        day_number = ( ( recur - 1 ) * 7 ) + ( weekday - day ) + 1.
      ELSE.
        day_number = ( ( recur - 1 ) * 7 ) + ( 7 - day ) + weekday + 1.
      ENDIF.
      IF date IS INITIAL.
        CONCATENATE year month day_number INTO date.
      ENDIF.
    ====================================
    There still could be some loopholes in this....am not sure....but it sure did seem to work for a couple of random checks that I performed.
    Brownie points to you for giving me a direction.
    Thanks,
    Puja.

  • Functional module for determining the sales tax code

    Dear all,
    Kindly help me is there any Functional module to determine the sales tax code?
    My Requirement is Based on the Country, Sales Org and Tax code Pricing should pick up automatically.
    I tried adding the same fields in the table and inserted in the access sequence and created the condition record for the same.
    Created the order but system is not able to get  the Tax code while determining the price?
    Please help ...
    Regards,
    SK

    My Requirement is Based on the Country, Sales Org and
         Tax code Pricing should pick up automatically
    but system is not able to get the Tax code while determining the price?
    Your both the above comments are contradict to each other. In the first statement, you say pricing should pick up automatically whereas, in the next statement, you say tax code is not determining.   Please indicate the requirement clearly.
    thanks
    G. Lakshmipathi

  • Count the number of comments in a PDF file automatically?

    Hello O Experts,
    My documentation team members use Acrobat and Reader 8, and frequently need to count the number of comments in a PDF file. Is it possible to count the number of comments automatically? We can't find this functionality anywhere, and have to resort to manual counting. Since our PDFs can contain thousands of comments, this is very time-consuming. I've tried searching the Web and these forums, but the words "count" and "comments" are too frequent in other contexts to find anything useful...
    Thanks and best regards,
    --M.T.

    Hi again sypark,
    That is a great idea, and it works!
    I would actually search on a more unique phrase - for instance, "Subject:" - that definitively occurs a single time per comment. The reason is:
    There are many types of comments, not just sticky notes... you have highlights, text deletions, text insertions, replacement text, attachments, callouts, and so on. But each of them has a "Subject:" in the summary.
    It's best to avoid searching for the comment names because they differ by language (an important issue when you work with colleagues in multiple countries). For example, the name of the "Highlight" comment type in French is "Texte surligné" - so you'd have to search for the latter term to get an accurate count.
    In any case, your method is flexible and allows for easy customization of comment counts. Many thanks for your effective help!
    Cheers,
    --Michael

  • Getting the number of pages in a PDF [JavaScript in CS3]

    Hello All,
    I am an InDesign JavaScript newbie that will be posting questions in the near future. Before asking a lot of questions, I would like to contribute something to the group. Here is a function that will query a PDF and return the number of pages that it contains. This is useful for placing multi-page PDFs.
    Rick Quatro
    rick at frameexpert dot com
    function GetPdfPageCount(oFile)
    // Convert filename to a VBS-friendly format.
    var sFile = oFile.fsName.replace(/\\/g, "\\\\");
    var aFile = [sFile]; // An array of arguments.
    if(File.fs == "Windows"){
    var sGetPdfPageCount = "Dim AcroApp, AVDoc, PDDoc, iPages\r";
    sGetPdfPageCount += "Set AcroApp = CreateObject(\"AcroExch.App\")\r";
    sGetPdfPageCount += "Set PDDoc = CreateObject(\"AcroExch.PDDoc\")\r";
    sGetPdfPageCount += "If PDDoc.Open(arguments(0)) Then\r";
    sGetPdfPageCount += " iNumPages = PDDoc.GetNumPages()\r";
    sGetPdfPageCount += " Set oInDesign = CreateObject(\"InDesign.Application\")\r";
    sGetPdfPageCount += " oInDesign.ScriptArgs.SetValue \"ScriptArgumentA\", CStr(iNumPages)\r";
    sGetPdfPageCount += " PDDoc.Close()\r";
    sGetPdfPageCount += "End If\r";
    sGetPdfPageCount += "Set AcroApp = Nothing\r";
    sGetPdfPageCount += "Set PDDoc = Nothing\r";
    app.doScript(sGetPdfPageCount, ScriptLanguage.visualBasic,aFile);
    return Number(app.scriptArgs.getValue("ScriptArgumentA"));
    else
    return 0;

    Hi Peter,
    The solutions that open the PDF files with f.open and look for particular strings don't work for all of the PDF files I have. This one seems to work well for me so far. Thanks for the link.
    Rick

  • ABAP - Function module to get the number of working days between 2 days

    Hi gentlemen,
    I have been asked to produce a report that gives the number of working days between 2 days, based on a calendar.
    I didn't find anything...
    Has any of you already written a function module to get this ?
    A great thanks in advance.
    Jacques Lagrif

    Hi ,
    you can try this ,
    when you require the number of working days between D1 and D2
    Total No of Days will be
    D2 - D1
    No of holidays between D1 and D2 , use the FM HOLIDAY_GET
    Pass the From date , to date , and the factory calendar to get the of Holidays
    Total no of days - Number of Holidays will your Working days
    Regards,
    Sathya

  • How can I keep the links between pages in a PDF file after the file has been saved?

    My accounting department has just starting using Adobe Acrobat XI Standard to make our account reconciliations.  I like that we can create links between one page and the next, so that we can show our supervisor where the account balances tie to the supporting documentation.  But I have noticed the links disappear after my supervisor reviews and signs the PDF file.  Is there a way we can keep the links after it is signed?  Please note that we are not using EchoSign, just the “place signature” function in Acrobat.

    When a document is signed, the signer has the option of locking the document. The links won't be active if the document is locked, so to avoid this, instruct the signer not to lock when signing.

  • How do change the sequence of pages in a PDF file. Need to move page 3 to 12

    How do I change the page sequence in a document. eg Want to move page 3 to 12

    Hi leoniep,
    To reorder pages in a PDF, you need to use Acrobat (you can drag the page thumbnails to rearrange the pages). If you don't have Acrobat, you're welcome to try it for free for 30 days. See http://www.adobe.com/products/acrobat.html for more information.
    Best,
    Sara

  • How to get the number of pages when assemble pdf with DDX

    Hi,
         I have tried to add two bookmarks to one pdf with DDX(in java code),
         the first bookmark I shall add to the first page,and the second I shall add to the second page....
        the question is:
         If the pdf has only one page, I will not add bookmarks to the pdf. so I need to get the pages of pdf before my processing.
        but I did not found any APIs in the SDK about it .
         Can anyone help me.
         thanks.

    I have solve the problem myself
    I use the tag "DocumentInformation" in DDX and get the xml after invoking DDX,
    the xml contain the information of document
    the sample DDX as:
         <?xml version="1.0" encoding="UTF-8"?>
       <DDX xmlns="http://ns.adobe.com/DDX/1.0/">
               <DocumentInformation source="mergedPDF" result="doc_info.xml" />
       </DDX>

  • Function module to find the fiscal periods

    Hi Guys,
    Please let me know if any of you are aware a function module which determines the fiscal periods between two dates.
    (Begin and end dates.) 
    Thanks.

    Hi Sai,
    From your post, I understood that you want to find how many periods are there between two dates, right.
    I am not sure whether there is a direct function module for this.
    But you can try this.
    Use the FM DATE_TO_PERIOD_CONVERT to get the Fiscal Year and Period from a date. You have to input the date and Fiscal variant.
    Using this you can determine the Fiscal year and Period for both the dates.
    Then you can find the difference of these two Fiscal Periods.
    This thread will be helpful for you to find the Difference of two fiscal periods
    Urgent : Difference of two fiscal period
    Hope this helps,
    Regards,
    Hari.

  • Function module for displaying the location

    Hi,
          Could anyone tell  the Function module for displaying the location in our system  without a  file name while downloading, when the user press f4.
    thanks

    * read the default pathname on application server
      call function 'FILE_GET_NAME'
           exporting
    *           CLIENT                  = SY-MANDT
                logical_filename        = lc_logical_filename_ftappl
                operating_system        = sy-opsys
    *           parameter_1             = ' '
    *           PARAMETER_2             = ' '
    *           USE_PRESENTATION_SERVER = ' '
    *           WITH_FILE_EXTENSION     = ' '
    *           USE_BUFFER              = ' '
           importing
                emergency_flag          = l_emergency_flag
                file_format             = l_file_format
                file_name               = l_file_name_ftappl
           exceptions
                file_not_found          = 1
                others                  = 2.

  • Is there any way to limit the number of times that a PDF can be opened?

    I run a small publishing company and we want to provide exam copies of our books to professors.  At present our exam copies have the words EXAM COPY as a water mark on every page and we've also made the files so that they can't be printed or easily copied.  However, we'd like to also restrict these PDFs so that they can only be opened 5 times.  I've read about FileOpen but that approach seems a bit more complex than needed.  Is there any other way to restrict the number of times that a PDF file can be opened once it is downloaded?  Thanks in advance for any suggestions.

    DRM soltions like FileOpen are your best bet for PDFs. Others include Adobe's LiveCycle Rights Managment, LockLizard, Armjisoft PDF Security OwnerGuard, etc.
    They all work and are priced differently, but there's really nothing for what you want to do that is both simpler and secure.

  • How do I re-sequence pages in a pdf file, which is in booklet format?

    I have a pdf file which is an A5 booklet in duplex for-printing order, with two A5 pages printed on one A4 area.  I want to re-sequence these pages to simple ascending page number order, for reading online.  How do I do it?
    The first A4 page of my pdf file consists of A5 page 1 on left and A5 page 48 on right, followed by the second A4 page consisting of A5 page 47 on left and A5 page 2 on right, and so on.  [I can print this out OK as a booklet, except that the second A4 page, etc. is upside down.]
    Do I need to take the crude, grunt approach and cut and paste each A5 page, one at a time, into a new document?  I am using Acrobat XI Pro

    You can reorder pages by dragging them to new positions in the Pages pane on the left.

Maybe you are looking for

  • + 2 hour upgrade to Leopard from Tiger on Brand New imac 20"

    Forgive my upcoming ignorance as this is my first Apple Computer and I know very little about Apple overall but I know a LOT about PCs and Windows. I just purchased an imac, 20" Intel 2ghz Core Duo, LAST NIGHT. From out of the box, to plugging in the

  • XPRIMARY Field in TCURC Table Not being updated?

    Hello, I am trying to update the XPRIMARY field in table TCURC. The process is followed in Transfer Global Settings --> Currencies. I also tried using Transfer Exchange rates from the context menu on the corresponding source system. We have BI 7.0 in

  • Why wont my private browsing work - it did yesturday

    also I have two blue bars across the top of browser. On the left side the top one has the firefox logo, the bottom has Firefox button. And on the right side I have two minimiz-resize and close buttons, one set on top bar, one set on bottom bar. Is so

  • T60 Max Display Resolution only 1024 X768?

    I just got this T60 Model 2008-GG8 with an ATI Mobility Radeon X1300 Video Card. Can this T60 display a greater resolution than 1024 X 768?  I would like to get more desktop real estate, but this seems to be the maximum setting.  Does it need a diffe

  • Release strategy for PREQs created from PM work order

    Hi All, I have an issue with determining  release strategy for purchase requisition for external services created via PM work order (iw31 transaction). We have activated release strategy for Purchase requisition based on the following characteristics