Solved

How do you merge multiple PDF's using Bullzip from VB.NET?

Posted on 2011-09-30
4
4,006 Views
Last Modified: 2012-08-13
I've created a pdf file from a word document using the bullzip library:

oWord.ActivePrinter = "Bullzip PDF Printer"
Dim pdfSettings As New PdfSettings

pdfSettings.PrinterName = "Bullzip PDF Printer"
pdfSettings.SetValue("Output", String.Format("c:\temp\" & FileName & ".pdf")) pdfSettings.SetValue("ShowPDF", "no")
pdfSettings.SetValue("ShowSettings", "never")
pdfSettings.SetValue("ShowSaveAS", "never")
pdfSettings.SetValue("ShowProgress", "no")
pdfSettings.SetValue("ShowProgressFinished", "no")
pdfSettings.SetValue("ConfirmOverwrite", "no")
pdfSettings.WriteSettings(PdfSettingsFileType.RunOnce)

oDoc.PrintOut(False)

I now need to append an already created PDF file to this new pdf file just created.  I see a method Bullzip.PdfWriter.PdfUtil.Merge but need help in supplying the arguments...particularly the first (inputfilenames).
 
Thanks,
Elliot
0
Comment
Question by:esemmoc
4 Comments
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 36895685
0
 
LVL 1

Expert Comment

by:goldfigure
ID: 36895966
I completely agree with kalpesh2804, you are trying to use a hammer to turn a screw. My first choice would be PdfSharp (mentioned in the link above) where you are just opening two files and merging them.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 350 total points
ID: 36902449
>particularly the first (inputfilenames).
What is the type of this parameter? If string array, you can pass it like below

Dim files as new list(of string)
files.add("C:\pdffile1.pdf")
files.add("C:\pdffiles2.pdf")
...

Bullzip.PdfWriter.PdfUtil.Merge(files.toarray())
0
 

Author Closing Comment

by:esemmoc
ID: 36903587
Thank you.  Just to complete it out, the Merge method requires 2 other parameters: the printer name and the timeout.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

776 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