how do you append to a .pdf file in vb6

Posted on 2007-10-08
Last Modified: 2010-04-30
I am trying to open a .pdf file if it already exists. If so I want to give the user a few options. Either overwrite the file with a new file. Append to the file with another file or just delete the file. I can do the over write and delete but I am not sure on how to do the append.
Question by:samiam41
    LVL 8

    Accepted Solution

    The following Visual Basic example shows how to append the PDF document named "c:\appendfile.pdf" to a new PDF document named "c:\test.pdf".  

        'specify the existing PDF file that will be appended to the new PDF document
        SaveSetting "Let us do some work Systems", "Win2PDF", "PDFAppendFile", "c:\appendfile.pdf"
        'set the file name for the new PDF document
        SaveSetting "Let us do some work Systems", "Win2PDF", "PDFFileName", "c:\TEST.PDF"

        'output some text
        Printer.Print "hello world!"

        'save the new PDF document and append to the existing PDF file
    LVL 9

    Author Comment

    Thanks b_haynes but I don't know  what you mean by "Let us do some work Systems" what should go there. I tried putting in the name of my program but it didn't work. I didn't get any error just did not create the append to file.
    LVL 8

    Expert Comment

    by:Bradley Haynes
    My bad, the code I sent you works in win2pdf.

    Check out:
     Adobe FDF toolkit,  

    OR even better:
    You might try browsing this site,  The community over there will know much more about what you are trying to accomplish, and they probably can help you out more than I could.  I wouldn't lose hope yet!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Access 2016 VB code 9 71
    countAbc challenge 9 35
    MS Access Search and Replace Using VBA 6 29
    Put text in a picture ASP.NET C# 2 27
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    A short article about a problem I had getting the GPS LocationListener working.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    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 …

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now