Solved

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

Posted on 2011-09-30
4
4,345 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

617 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