Results 1 to 3 of 3

Thread: Print specific pages in pdf using vb6

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Neenah, WI USA
    Posts
    95

    Print specific pages in pdf using vb6

    I have a pdf file, typically 200-250 pages long. It was created using Crystal Reports 9.0, pulling data from a sql2005 database. The document was printed to 'cutepdf'. It contains statements for about 100 agencies. Each agency's statement is between 1 and 15 pages long.

    Our finance department wants me to automagically split this 1 file into 100 individual files, one file for each agency, so they can email them out monthly.

    Each page has a page counter in the footer: Page 1 of 1, or Page 1 of 2, etc...

    Is there a way to loop thru the pdf file, search for each instance of 'Page 1', start a new document/print job (which would be directed to the pdf writer) supplying it a name also derived from the pdf document (i.e. agency name).

    Anyhelp is greatly appreciated.

    Steve

  2. #2
    Frenzied Member
    Join Date
    Mar 2008
    Posts
    1,210

    Re: Print specific pages in pdf using vb6

    I suspect what you require may be possible if Adobe Acrobat is installed on the host computer, it has a COM interface which I believe is maintained for use by third party developers.

    If Adobe Acrobat is not installed then Adobe Acrobat Reader may be, it also has a COM/ Active.exe Control interface but it is more limited, a simple example of use at http://www.vb-helper.com/howto_open_pdf_reader.html. I am not sure if this COM interface is maintained for use by third party developers.

  3. #3
    Frenzied Member
    Join Date
    Mar 2008
    Posts
    1,210

    Re: Print specific pages in pdf using vb6

    Ok a little research suggests that the "Adobe Acrobat 7.0 browser control type library 1.0" Control (add via Components in VB6) IS a supported developer interface. Details for it were quite difficult to find but appear to be at http://partners.adobe.com/public/dev...CReference.pdf begining at page 239.

Posting Permissions

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



Click Here to Expand Forum to Full Width