Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Concatenate Two PDF Files in VB.NET?

Posted on 2008-11-18
2
Medium Priority
?
1,099 Views
Last Modified: 2012-05-05
Hi Experts,

Not sure if this is possible, but here goes - I need to be able to join two PDF files together programatically. Operating system is XP, so I am looking to maybe create a command line app using VB.NET and pass in the two filenames as switches. This app I then need to call from a script.

Is this possible using VB.NET? I am open to suggestions, but I do need this to be done via program control, with no UI. I have googled this but I'm not getting very far.

Any ideas?
0
Comment
Question by:gcz
2 Comments
 
LVL 4

Expert Comment

by:Mitzs
ID: 22984781
I dont kow whether you are ready to user 3rd pary controls. If yes then here is one example of it with code.
http://www.aspose.com/documentation/file-format-components/aspose.pdf.kit-for-.net-and-java/concatenate-pdf-documents.html
 
iText is a library that allows you to generate PDF files on the fly and its free
http://www.lowagie.com/iText/ 
 
0
 
LVL 1

Accepted Solution

by:
gcz earned 0 total points
ID: 22985868
Thanks for the post.

I have done some further digging around and found a utility called pdftk, which is basically what I was hoping to end up with myself. It is a command line utility which can append pdfs among other things, and is going to be lot quicker than coding something myself:

http://www.accesspdf.com/pdftk/

Pass in the filenames, and the output filename and it does it for you, example:

'pdftk.exe pdf1.pdf pdf2.pdf cat output output.pdf'

This appends pdf1.pdf and pdf2.pdf and outputs them as output.pdf.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Loops Section Overview
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month20 days, 16 hours left to enroll

864 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