Solved

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

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

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

This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
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…

706 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

17 Experts available now in Live!

Get 1:1 Help Now