Chat LIVE With Programming Experts! There Are 23 Online Right Now...

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 244,305 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 776 people online right now. Registration is fast and FREE... Join Now!




Merge pdf without using external tools

 
Reply to this topicStart new topic

Merge pdf without using external tools

shakthisk
13 Nov, 2008 - 10:56 PM
Post #1

New D.I.C Head
*

Joined: 12 Nov, 2008
Posts: 7

Hi i need to merge more than one pdf files. i have tried with pdfBox external tool. But i want to acieve witout using any external tools. Is it possible? if so can u help me?

CODE


Private Function MergePdfFiles(ByVal pdfFileList As List(Of String), ByVal outputFileFullName As String)
        Dim result As Boolean = False
        Dim fileCount As Integer = 2
        If fileCount > 1 Then
            Try
                'Instantiate an instance of Pdf Merger Utility
                Dim pdfMerger As New PDFMergerUtility
                With pdfMerger
                    .setDestinationFileName(outputFileFullName)
                    For i As Integer = 0 To fileCount - 1 Step 1
                        .addSource(pdfFileList(i))
                    Next i
                    .mergeDocuments() 'Here am getting that error
                   result = True
                End With
            Catch ex As Exception
            End Try
        End If
        Return result
    End Function


User is offlineProfile CardPM
+Quote Post


modi123_1
RE: Merge Pdf Without Using External Tools
14 Nov, 2008 - 08:09 AM
Post #2

Suiter #2
Group Icon

Joined: 12 Jun, 2008
Posts: 1,216



Thanked: 49 times
Dream Kudos: 150
My Contributions
Fast answer - no it is not possible.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 7/4/09 06:14PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month