Solved

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

Posted on 2011-09-30
4
3,959 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Power PDF (http://www.nuance.com/for-business/document-imaging-and-scanning/power-pdf-converter/index.htm) is the newest product from the Document Imaging division of Nuance Communications (http://www.nuance.com/). It is available in two editions — …
This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…

920 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

13 Experts available now in Live!

Get 1:1 Help Now