Pragmatically add Page Numbers to PDF Document

Posted on 2010-04-05
Medium Priority
Last Modified: 2012-06-27
Hi to all,

I am using Visual Studio 2008, VB.Net, Adobe 9 SDK
I am merging a lot of PDF files into one big file with no issue using the Adobe PDF SDK. I need to be able to add page numbers to the final document, but I can't find any samples using the Adobe SDK. Does anybody know how to do this using the Adobe SDK?

If not the Adobe SDK is there another way of doing this?

I am at a loss and any help would be appreciated.

Question by:ALawrence007
  • 3
  • 2
LVL 38

Expert Comment

ID: 29920371

Author Comment

ID: 30014835
Thanks for the reply, but it seems like this will be a button in the PDF file that the user needs to click in order to get the page numbers. I need to do this programmatically with no interaction by the user. Would that be possible?
LVL 38

Accepted Solution

puppydogbuddy earned 2000 total points
ID: 30024261
say the pocedure is named >>>btnPageNum_Click()    
I beleve you should be able to hide the button from the users and call the button procedure as needed from a logical place in your code:
                   Call btnPageNum_Click


Author Comment

ID: 30025261
Ohhh, I understand. I will test and then let you know if I need more.

Author Closing Comment

ID: 31711027
It took me a while, but I got it in the end.

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses
Course of the Month4 days, 15 hours left to enroll

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question