Adding Page Number in PDF using VBA

Hi,
I need to add page numbers to around 8000 PDF files via excel VBA. I would need to do this every month. I am new to VBA coding but I can manage to write a decent code. It would be great if any one of you would share a VBA code that would allow me to add page numbers to PDF files. I have Adobe professional 6.0.
This is kind URGENT. All help will be welcome !!!
Thanks

Hi Vivek,
Could you please test the following solutions to resolve the issue.
Solution1:
To display the page numbers from the first according to the section details i.e based on the number of sections in a report.
example: If a report has3 sctions and first section comes in 3 pages,2nd section comes in 4 pages and 3rd section in 2 pages, then total number of pages is9. Then the display of page numbers should be [page number of section in(1,2or3)/total number of pages in all the sections]
  Insert a cell within a page and insert the formula
=Concatenation("Page"" " ,PageInSection(1)" ")
If the above doesnu2019t works then please try the following solution.
Solution2:
--Create a report with section.
--Format the Section to "Start on a new page"
--Apply Page Layout to the report
--Insert a Cell and apply function  PageInSection()
I hope this will help you.
Regards,
Deepti Bajpai

Similar Messages

  • How can we repeat specific page number of pdf file by using FDF Toolkit for Windows?

    how can we repeat specific page number of pdf file by using FDF Toolkit for Windows?

    let's say a registration form, there is only 1 full address provided in my registration pdf, but applicant could have more than 1 address, so i have to make it more flexible to extend the address page no matter how many addresses that applicant provided, i have use adobe acrobat pro to edit the form properties. but dont know how to extend/duplicate a page in felxible times.
    Please advise~ tks so much!!! George

  • Saving to PDF using VBA in Excel 2007 using security features such as password and print restriction

    Good Afternoon,
    I am wondering if there is a way to implement the security features such as password and print restriction while saving a document to PDF using VBA in Excel 2007. 
    Regards,
    Steve

    Bill,
    Thank you.  I was able to find the security setting section.  The problem I have now, however, is writing the VBA to save to PDF and incorporate the security settings.  I thought if i applied the settings to the Excel document I was working on it would carry over, but this does not seem to be the case.  Any idea's?
    Regards,
    Steve

  • Adding a link in PDF using itext

    I am adding a link in PDF using itext and opening the link from the final created pdf using app.launchURL and app.getURL
    it works fine on windows XP but does nothing on MAC OSX /IOS

    Hi Lynn
    And here I was about to suggest you review the link below.
    Silly me.
    Click
    here to read the article
    Sincerely... Rick

  • How do I extract pages from a pdf using 'Adobe PDF Pack'?

    How do I extract pages from a pdf using 'Adobe PDF Pack'?

    I think you have to buy extractor for 1.99 a month to extract PDF.  But I am having trouble activating it.  Good luck.

  • How do I print just one page of a .pdf using the android e-Print app?

    How do I print just one page of a .pdf using the android e-Print app?

    Hello,
    I see that you're having an issue with printing just one page from the E-print app. 
    Unfortunately, on an android device, you do not have the feature to select how many pages you want to print 
    Thanks!

  • I am trying to delete a page from a pdf using Acrobat X Pro but the delete option is greyed out. Why

    I am trying to delete a page from a pdf using Acrobat X Pro but the delete option is greyed out.  Does anyone know why?

    Post your question in the forum for Adobe Acrobat.

  • Adobe Acrobat XI Pro - Copy Paste PDF Page to PPT Slide using VBA

    Hi,
    Please find the requirement -
    Need to read a pdf file (pdf file may contains 10-15 pages) from powerpoint (using VBA), go to a particular pdf page, copy the entire page and paste on the ppt slide. Can anyone share the vba code for this. Thanks.
    Regards,
    Prasanta

    Can you do it without VBA? I can't see anything designed to make this work except screen shots, which are nothing to do with Acrobat specifically.

  • Get Current page number of PDF file

    Hi,,
    I am using acrobat plugin(SDK) in VB.Net while am nevigating in the
    PDF file i want get the current viewing page number of that
    PDF file and Display in Lable/Text....
    In abouve screenshot am marked the SDK display page number that i want read by VB.NET and display in my application..

    ..... perhabs in connection with this;
    http://forums.adobe.com/message/4587057#4587057
    However, full Adobe Acrobat is needed for both (not Reader only).
    HTH, Reinhard

  • Why the window setting the printing disappeared when I try to select the page number of pdf file

    When I send the pdf file to the printer and try to select the page number to be printed by entering (e.g., 4-10), the page for setting up printing work suddenly disappeared.   As a result, I could only print pdf files from page 1 to the end, if I want to print any document.   I have no problem with printing word documents.  Thus, it should not be problems related to printer, right ?
    Your help is highly appreciated !

    What is your operating system?  Reader version?
    You mean the Print panel completely disappears when you enter some page numbers?

  • How to markup a layout so each area is exported as a different page on the pdf using the crop and bleeds

    Hi, I work in the sign industry and I am looking at a way to streamline our preprint setup for artworks
    the issue is that we will get an artwork that is 6m x 2m. This is to big to do in one print so we will chop it into 2-3 pieces and then print those.
    this is currently done by laying out the full artwork in indesign then exporting it as a pdf. this pdf is then imported into illustrator where we will manually cutup the artwork using clipping masks (it has to be manual due to cuts in the artwork needing to managed so it doesn't go though text, ext).
    ideally I would like to lay it out in indesign then markup this layout with boxes which show the areas to be cut out. then we I export I'd like indesign to export each box as its own pdf(or pages in one pdf) with cut marks and bleeds.
    is this possible in indesign using say the slice tool? (the slice tool seems to be for html elements)
    any help or suggest would be most welcome
    Kind regards
    Gareth

    Hello gareth, not sure if the info' below will be of use, but I will give it a go.
    Try this…
    (I am using Indesign CS5.5)
    1. Create your desired page size.
    2. Then create 2 or 3 more pages
    3. Open the pages window (from top menu - window - pages)
    4. (fig 1) From the pages menu click top right down arrow to get the menu and uncheck ‘Allow Document Pages to Shuffle’.
    5. (fig 2) From the pages menu, drag page 2 and 3 next to page 1, see fig 3 for result.
    6. (fig 4) Place text/image across the pages you have created then save as a Pdf.

  • Reset page numbers of Pdf using acrobat dls

    I am working on a vb.net project, its a windows service. In my class library I am trying to merge two PDFs, but once merged I have to reset the page numbers. Can anyone help me on how to achive this?? Below is my code.
    Private Sub MergePdfs()
    Dim pdfFile As String = "C:\Cognizant\Merge\Letter -Sample for RRD_Pgno in Red for reference.pdf" 
    Dim insertPdf As String = "C:\Cognizant\Merge\Insert.pdf" 
    Dim pdfDoc As New Acrobat.AcroPDDoc 
    Dim insertDoc As New Acrobat.AcroPDDoc 
    Dim mergeDoc As New Acrobat.AcroPDDoc 
    Dim b As Boolean = False   
    b = mergeDoc.Open(pdfFile) 
    Dim i As Integer = mergeDoc.GetNumPages()   
    b = insertDoc.Open(insertPdf) 
    b = mergeDoc.InsertPages(1, insertDoc, 0, insertDoc.GetNumPages(), False)   
    b = mergeDoc.DeletePages(4, 5)   
    b = mergeDoc.Save(1, "C:\Cognizant\Merge\MergedFile1.pdf") 
    mergeDoc.Close()   
    pdfDoc.Close() 
    insertDoc.Close() 
    End Sub

    You can print the page number in the margin of the report, outside the frames. In the margin, create a field with source Physical Page Number. In the Page Numbering property, set the Reset At property to the frame you want.

  • Deleting pages from a PDF using Acrobat X Pro

    Hello, I need to delete some pages from a PDF.  Within the same document, I can delete some pages with no issue, but can't delete other pages.  Why not?

    Well, now it's not happening. Figures...  Thank you for responding.  If it happens again, I will write again.

  • Create and Password protect a pdf using VBA?

    Hi,
    I have a requirement to generate and password protect a pdf using a Microsoft access application (version 2007).
    I have seen plenty of code examples for generating the pdf, but is it possible to password protect the pdf programmitically?
    Thanks!

    is it possible to password protect the pdf programmitically?
    Yes, you can write a plugin for Acrobat.

  • Adding page number after topic reference

    How would I insert some type of bookmark after referencing a
    topic, that, when printed to MSWord, puts the page number for the
    topic and is updated when the topic is moved to a different page?
    Since one version of our manual is printed, I need to show the
    reader what page the referenced topic is on, for example, "Refer to
    "Navigating the Program" (pg 242) for more on this topic."
    Thanks in advance,
    dar

    Metroxing,
    That behavior would occur if you didn't put the page number into the actual footer, but in a user-created box. Or it might happen if you had a section break after page one, and checked First Page is Different in the Layout inspector > Section button.
    -Dennis

Maybe you are looking for

  • How to disable tabs in titlebar for all users?

    I want to disable tabs in title bar for all users, because looks ugly http://i57.tinypic.com/33nkm77.png I type to C:\Program Files\Mozilla Firefox\defaults\pref\local-settings.js pref("browser.tabs.drawInTitlebar", false); It doesn't work, but any o

  • Separate IDocs based on condition

    My scenario is XML file to IDoc. In my XML file I have BELNR which will change often. Whenever a new BELNR occurs a separate IDoc needs to be created. For example: If I get BELNR like following: 100100 100100 Then only 1 IDoc needs to created... 1001

  • 3.1.2 Not working???

    I have had the problem where i wont be able to recieve any calls or texts etc. and was really hoping 3.1.2 would solve this but to much dismay my phone is still experiencing the exact same problems. Everyone looks like they have had success with the

  • Filters for Buzzword

    Having Adobe product A on speaking terms with Adobe product B seems like an interesting idea to me, even if: it would probably be a lossy conversion given that B (Buzzword) isn't designed to have the feature-set we know and love in A (FrameMaker) Buz

  • What does it mean when it says "ipad has lost it's pairing"

    what does it mean when it says "ipad has lost it's pairing"