Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4557
  • Last Modified:

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

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
esemmoc
Asked:
esemmoc
1 Solution
 
Kalpesh ChhatralaSoftware ConsultantCommented:
0
 
goldfigureCommented:
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
 
CodeCruiserCommented:
>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
 
esemmocAuthor Commented:
Thank you.  Just to complete it out, the Merge method requires 2 other parameters: the printer name and the timeout.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now