Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2013
    Location
    Manchester UK
    Posts
    4

    Post Create a single PDF from multiple Hyperlinked PDF's in consecutive records

    Hi, I am looking for Access VBA code which will create a PDF file and then append a series of hyperlinked PDF files to that file.




    The storyline is; My product database has a hyperlink in each record to a PDF Spec Sheet – typically 1 to 3 pages. When I have prepared a quote or confirmed an order I want an order-specific catalog as a PDF with the spec sheets of all products included in the order. Must be a useful enough scenario for someone to have figured it out.

    Any help would be most appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    Review:

    https://www.accessforums.net/access/...pdf-25574.html

    https://www.accessforums.net/import-...ges-25042.html

    Extract the file path from hyperlink using HyperlinkPart:

    http://msdn.microsoft.com/en-us/libr...ffice.12).aspx

    Just in case you need more info on how hyperlinks are structured:

    http://www.allenbrowne.com/casu-09.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Join Date
    Dec 2013
    Location
    Manchester UK
    Posts
    4
    Many thanks. I have had a quick look at the links. Exporting multiple re[ports to a single pdf will be very useful in its own right. I have yet to find out if I am clever enough to piece the rest together. Unlike exporting a report the hyperlinks already exist and are all in the same folder. I can use HyperlinkPart to get the full path, which is great. Now, somehow, I want to loop through records to merge the files, not loop through files in a folder.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    So you need to loop through records to extract the file path and use the file path to locate the PDFs that need to be merged? The code will use the path to open the PDF files as objects to be manipulated. Take this one step at a time. First get the opening and looping through a recordset working. Then inside the loop, extract file path from hyperlink. Then incorporate the Adobe code to manipulate the PDF objects. Test and debug each stage and don't move forward until each works.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Join Date
    Dec 2013
    Location
    Manchester UK
    Posts
    4
    Thanks again. I'm leaving this open and will let you know how it goes. Then, with luck, I'll mark it solved

  6. #6
    Join Date
    Dec 2013
    Location
    Manchester UK
    Posts
    4
    OK, fallen at the first hurdle, looking into this I guess I have to have a full version of Adobe for the library reference to work. Can it be done in Word??

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,921
    I expect the issue will be the same as far as programmatically manipulating PDF files. If Adobe Pro is required to be installed, doesn't matter where the VBA is.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 07-29-2012, 05:52 PM
  2. Replies: 3
    Last Post: 11-16-2011, 11:53 AM
  3. Replies: 11
    Last Post: 09-27-2011, 07:19 AM
  4. Create Multiple Records from Single Form
    By mcktigger in forum Forms
    Replies: 17
    Last Post: 09-15-2011, 11:07 AM
  5. multiple records with consecutive dates
    By sotssax in forum Forms
    Replies: 2
    Last Post: 07-26-2011, 04:23 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums