PowerShell Script: Merge PDF Files

Several of my friends that do not consider themselves to be programmers have asked if I know of an easy way to merge multiple PDF files into one file. Of course, I instantly thought of using LEADTOOLS in PowerShell.

To get started, you need the LEADTOOLS assemblies and a license file. If you have not already purchased LEADTOOLS, you can download and request a 60-day evaluation license from our website. From there, all you need is a text editor to create your PS1 script file.

I have attached the complete PowerShell script to merge multiple PDF files into single file as well as launch.json file for VSCode. Below are some snippets so you can get an idea of how easy this is.

Continue reading
Posted in PDF | Tagged , | Leave a comment

PowerShell Script: Extract Pages from PDF

Admittedly, I am late to the party, but I have just started digging into PowerShell. The more I dig, the more I find that there is not much you cannot do in PowerShell.

Recently, I was browsing the forums and came across a post asking if it is possible to use LEADTOOLS in PowerShell to split multi-page PDF files into multiple single page PDF files. The answer is absolutely!

Continue reading
Posted in PDF | Tagged , , | Leave a comment

Convert HTML to PDF in C#, VB, and Java

You might have heard about how LEAD has a world-class Document Converter. Our Document Converter can easily transform HTML to PDF. The portability of a PDF allows you to access content from webpages across multiple devices both on- and off-line.

Below are a few code snippets to convert HTML to PDF.

Continue reading
Posted in Document Converter | Tagged , , , , , | Leave a comment

Secure PDF Files With a Password in C#, VB, and Java

In the “Merge PDF Files – C#, VB, and Java Code” article, we described how to use the PDFFile class from the PDF SDK to merge multiple PDF files into one with just a couple lines of code. Using the PDFFile class also makes PDF encryption, decryption, and password protection just as easy! The PDFFile class is available for .NET FX, .NET Core, and Java.

There are two types of PDF password protection:

Continue reading
Posted in PDF | Tagged , | Leave a comment

Append Multiple Images to a PDF in C/C++

Recently we posted about how to convert PDF to JPEG and converting multi-page TIFF to PDF. A customer recently asked how one might add multiple images to a PDF. Luckily, LEADTOOLS supports more than 150 raster, vector, and document file formats including SVG, JPEG, PNG and more. So let’s dive in and show you how simple it is!

Continue reading
Posted in Document Imaging | Tagged , , , , , | Leave a comment