+ Reply to Thread
Results 1 to 8 of 8

Extract Pages from Adobe PDF based on Page Numbers

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Extract Pages from Adobe PDF based on Page Numbers

    I have Excel 2010 and Adobe Acrobat 10 Professional. I am using the VBA code below to extract pages from a PDF based on keywords that are present on the page (if keyword present, then page is extracted).

    However, I am looking for a simpler approach of extracting pages based on page number (page numbers will be listed in column A). Any ideas on how to modify the script below to accomplish this? Thanks.



    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Extract Pages from Adobe PDF based on Page Numbers

    I wrote somethign similar a while back, it looked at generated reports from Hyperion in PDF format, and stitched the relevant pages together in 1 report. It was an absolute nightmare, i did it with the Adobe Class in C#, there is a way to reference a page, i'll take a look and checK.

    From what i can see, you'll need to loop through a and modify your code

    somthing like

    Please Login or Register  to view this content.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Extract Pages from Adobe PDF based on Page Numbers

    hi Brawnystaff, please check attachment, press "Start" button, the code is in Module 2
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: Extract Pages from Adobe PDF based on Page Numbers

    Thanks Watersev..worked perfectly!!

  5. #5
    Registered User
    Join Date
    07-22-2014
    Location
    phoenix,az
    MS-Off Ver
    2010
    Posts
    3

    Re: Extract Pages from Adobe PDF based on Page Numbers

    That is sweet code! I was looking for this for at least a week. Im trying to input comments or highlight certain text strings in the output pages. Do you have any idea how to do that?
    Thanks!
    Jaime

  6. #6
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Extract Pages from Adobe PDF based on Page Numbers

    hi Jaime, as per Forum Rules:

    2. Don't post a question in the thread of another member -- start your own...

  7. #7
    Registered User
    Join Date
    12-22-2020
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    1

    Re: Extract Pages from Adobe PDF based on Page Numbers

    hi watersev, this is great. thank you! may i check with you, is it possible to do it in multiple pdf file at the same time? given that the extracted pages are all same.? hoping for your immediate response. thank you

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Extract Pages from Adobe PDF based on Page Numbers

    Quote Originally Posted by kontessacm View Post
    hi watersev, this is great. thank you! may i check with you, is it possible to do it in multiple pdf file at the same time? given that the extracted pages are all same.? hoping for your immediate response. thank you
    Perhaps you missed waterserv's comment in post 6?

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. printing random pages with page numbers still in sequence
    By steve111 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2014, 02:10 PM
  2. Page Numbers - how to set to specific pages?
    By ogiebear in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-21-2013, 11:47 AM
  3. Get total pages per sheet and set page numbers in page footer by formula
    By Snoopy2003 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2013, 04:00 PM
  4. Can only print ~3 pages from Excel to Adobe PDF
    By Timbo in forum Excel General
    Replies: 2
    Last Post: 06-02-2006, 08:25 PM
  5. Can only print ~3 pages from Excel to Adobe pdf
    By Timbo in forum Excel General
    Replies: 0
    Last Post: 06-01-2006, 06:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1