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.

Similar Messages

  • 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.

  • 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.

  • Error converting web page to PDF using Acrobat 8 IE 9 on Vista

    I am getting the following errow when I try converting web page to PDF using Acrobat 8 on IE 9 on Vista.  This worked previously but it appears that a recent update to Acrobat caused issues with this functionality.  This happened once before and after some troubleshooting the technician wasable to get the functionality working again.  The Adobe printer shows up with "Error" however I can still create PDFs from outlook.
    Error Has Occurred
    Line:11
    Char:3
    Error: Permission Denied
    Code: 0
    URL:res//C:\Program Files\Adobe\Acrobat 8.0\Acrobat\AcroIEFavClient.dll/AcroIECapture.html

    Is the plugig the same as an add-on because all of my Acrobat Add-ons are active?
    Name                Adobe PDF
    Publisher           Adobe Systems, Incorporated
    Status              Enabled
    Load time           0.25 s
    Name                Adobe PDF Reader Link Helper
    Publisher           Adobe Systems, Incorporated
    Status              Enabled
    Load time           0.01 s
    Navigation time     0.00 s
    Name                Adobe PDF Conversion Toolbar Helper
    Publisher           Adobe Systems, Incorporated
    Status              Enabled
    Load time           0.06 s
    Navigation time     0.00 s
    Name                Adobe PDF
    Publisher           Adobe Systems, Incorporated
    Status              Enabled
    Load time           0.00 s

  • Rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()

    I am trying to find whether each page in PDF document is color or monochrome.
    For doing this I am rendering the PDF page to Bitmap object using Acrobat SDK DrawEx() or CopyToClipboard()
    Once after rendering the PDF page, I am using GetPixel() to read each pixel value to decide about color or Monochrome.
    Problem:
    When I read the pixel to decide about the page color or monochorme, in some XP machines it is showing the PDF page as color and in some PC it is showing it as Monochrome.  Color quality in both the system is kept as 32 Bit.
    After this I tried copying the PDF page directly into clipboard and then take the clipboard image to decide about color and monochorme, but even this also behaves in the similar way.
    Question:
    Why rendering the PDF page to Bitmap object using DrawEx() or CopyToClipboard() is behaving differently in each machines.
    If required I will send my sample project.
    With regards,
    Rajeshrv.

    In SDK documentation, there is no methods are defined for getting the color of the page.  In color spaces and color values, we can set the color for drawing operations. A method AVPageViewSetColor is used for setting the color. 
    But there is no methods defined for getting the color in the page.  Please let me know , is there any alternative way.
    Thanks in advance.

  • When I print to PDF using Acrobat 11 Pro from any application the acrobat Reader does not launch automatically. Associations are correct. Thx for your help,  Bruce

    When I print to PDF using Acrobat 11 Pro from any application the acrobat Reader does not launch automatically. Associations are correct. Happens from Chrome, IE, Word, Excel, Powerpoint. Previously had deskPDF installed but uninstalled correctly. Can't find a preference setting for the auto launch. Thx for your help,  Bruce

    A simple way is to flatten the form fields, which converts the field appearances to regular page contents. You can do this with JavaScript or PDF Optimizer (Advanced > PDF Optimizer > Discard Objects > Flatten form fields). A very nice script that adds a custom menu item can be found here: http://www.uvsar.com/projects/acrobat/flattener/

  • Converting .docx to a pdf using Acrobat X, it says file type unsupported.

    Please Help! When I try to convert to convert my .docX to pdf using Acrobat Pro X, it says file type unsupported.
    When I use "save as" "pdf" in Word, it allows me to save the file as a pdf, but then the URL links in the resulting pdf will not work. They all say page not found. (The url links work in the Word document.)
    I am using a Macbook pro, 10.6.8; Microsoft Word 2008 for Mac; and Acrobat Pro X
    Any help, greatly appreciated.

    Hello, thank you for responding.
    Yes the url links start with http:
    For example when I type in
    http://canberracontemporaryartspace.wordpress.com/2013/07/06/staying-out-of-trouble/
    in the word document and click on it, the link works; but when I save it as a pdf it says "not found"
    And then when I type in
    http://www.camberwellspecialists.com.au/what-is-skin-cancer.html
    in the word document and click on it, the link works; but when I save it as a pdf it says "page not found"

  • Can't convert files to pdf using Acrobat 8 Standard or 9 Pro

    I am having a major problem. I have tried converting both Word 2003 and Excel 2003 documents to pdf using Acrobat 8 Standard (I can't recall which version because I uninstalled and installed a trial version of Acrobat 9 Pro) and Acrobat 9 Pro. I have tried to convert directly from the open document and through Acrobat using create from file. In every instance the process starts and then stops after a few moments. When I try the conversion from within Acrobat, I get the following error message: " Pdf conversion failed, please correct the error and retry." When I try the conversion directly from Word or Excel, the conversion starts, stiops suddenly and gives no error message.  I have had Acrobat 8 Standard installed for a couple of years. It worked fine on this computer until the problem started a week ago or so. There have been no software or hardware changes that woudl trigger suspicion.
    I've tried uninstalling and reinstalling the 8 Standard version. I have uninstalled the 8 Standard version and installed the 9 Pro trial version. I have run the repair module on both versions. I'm sure it is something simple but I just can't figure out what the "error" is that I need to "correct". Any suggestions?
    As an aside, I have several Adobe programs (Photoshop CS5, Contribute 3 and Acrobat), all of them expensive. Their business model of offering no unpaid support (even for this type of problem) is one reason I hate Adobe more than Microsoft... but I rant.

    When you uninstalled, you should have used the MS Installer Cleanup utility. It cleans up a lot of the junk left over in the registry. You should have also deleted the Acrobat folder. Then you would reinstall. You did not indicate your OS and it may be that you need to update the AA8 to get it to work correctly. Also, the installs and uninstalls can mess up your registration process if you are not careful. If you uninstall the AA9 trial, you will not be able to reinstall it for use. At this point, I can only suggest you do a repair of your installation and be sure you have all of the updates.

  • How do I create  a PDF using Acrobat 7.0 in Windows 8 from a Visio drawing on a 64-bit system

    I used to be able to create a PDF using Acrobat 7.0 from a Visio drawing in XP. Now I'm running a 64-bit system, no Adobe printer can be installed, and it is unsupported.  Help?

    On a 32-bit system, there is a workaround. I do not think it is possible to get AA7 to work on a 64-bit system (no one has reported success and only 1 has suggested success with AA8). You may be able to print to a PS file and then open that in Distiller. I suspect that is the only way and you will have to find a decent PS printer driver to do it. I suspect the printer driver (and associated AcroTray) will not work in a 64-bit Win8 -- Acrobat and Distiller may.

  • Can I edit anything in a pdf using Acrobat XI Pro?

    Can I edit anything in a pdf using Acrobat XI Pro?

    And the degree of effective editing may be an issue. Editing is not a recommended task in Acrobat, but instead edit in the original doc and recreate the PDF.

  • Reducing size of a PDF using Acrobat 9 Pro

    Hello, I want to reduce the file size of a large number of pdfs which will be available for download on a website I'm building. These pdfs were created a few years ago and in most cases the fonts were converted to outlines. I want to reduce the size of the pdfs using Acrobat 9 Pro. I tried one and the size went from 2.3 Mb down to 156 Kb when I saved as an Acrobat 7. Will these be able to be viewed by anyone using Acrobat Reader. The end users will only be viewing and reading the pdfs. Thanks in advance for any responses.

    mocikey wrote:
    Hello, I want to reduce the file size of a large number of pdfs which will be available for download on a website I'm building. These pdfs were created a few years ago and in most cases the fonts were converted to outlines. I want to reduce the size of the pdfs using Acrobat 9 Pro. I tried one and the size went from 2.3 Mb down to 156 Kb when I saved as an Acrobat 7. Will these be able to be viewed by anyone using Acrobat Reader. The end users will only be viewing and reading the pdfs. Thanks in advance for any responses.
    If you are familar with the PDF Optimizer and how to go to it, open PDF Optimizer.
    First images for a website should never be more than 150dpi.
    Go to images and set, for DPI  150  for color images Grayscale and Monochrome.
    Next open fonts in optimizer and look for duplicate fonts.
    example:
    Ariel
    Ariel Bold
    Ariel Bold
    Ariel Italic
    Courier New Bold
    remove the duplicate Ariel Bold.
    Many times there are 5-10 instances or more of the same Font/Font style.
    Remove all duplicates.
    Save as a new file you never want to save over your original in case what you end up with doesn't turn out.

  • How to disable 'display pdf (using Acrobat Pro X) in browser'?  Note:  The option is unavailable to un-check box.

    How to disable 'display pdf (using Acrobat Pro X) in browser'?  Note:  The option is unavailable to un-check box.

    Hi URT301,
    Please see this document: PDF Ownership when Reader X is Installed with Acrobat. You'll find several solutions to this problem in the FAQ section.
    Please let us know how it goes.
    Best,
    Sara

  • How to create a blank PDF using acrobat SDK in perl or c#

    please help me with creating blank pdf using acrobat SDK in c# or in perl

    Hi, can you please let me know which version of Adobe you used in this tutorial?
    I have the Adobe Reader XI - is there a similar tutorial for this version?
    Thank you.

  • How do I insert and delete pages from a pdf with acrobat 10X?

    How do I insert and delete pages from a pdf with acrobat 10X?

    Alternatively, be sure your page thumbnails panel is open, and click on the icon highlighted in this image, just under the heading.
    You will see a dropdown with the options you need.

  • 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.

Maybe you are looking for