How to split a PDF into several files programatically using visual basic 2013

Hello experts,
is it posible to send me an example with the source on how to Split a PDF ?
Our customer just bougth a Xerox copier that scan many pages in one attempt.
The final result one very large PDF.

The fact is our App needs separate pages in order to integrate it to diferent features.
Now employees love the fact they put the paper load once and they forget about it...

Even programming the zerox to make different pdfs is not something they remember or are willing to reconfigure since too many people use this machine with administrative powers so many reconfigure it for other stuff.

Best option receive what ever they get and be able to process it.
Thank you in advance.
RGuillermoProject ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

iTextSharo is a good library for splitting and manipulating PDF images. You can find notes and examples here:
Posting VB questions in the Java TA is not appropriate, and might make your question less likely to be answered.
Joe Winograd, Fellow&MVEDeveloperCommented:
The easiest way, imo, would be to call the PDFtk Server from your VB code. The PDF Toolkit (PDFtk) is an excellent (free!) product that has numerous features to manipulate PDFs. It comes in both command line and GUI versions. The command line version is called PDFtk Server and may be downloaded here:

Don't be misled by "Server" in the name. I don't know why they called it that, but it's just an executable (pdftk.exe, with a supporting DLL, libiconv2.dll) that runs on XP, Vista, W7, and W8 (I tested it on W10 Pro 64-bit and it worked fine, but I don't think it is officially certified yet for W10). That is, it does not have to run on a "server" OS.

The operation to split a PDF into separate pages is called burst. You may learn about it here:

> our App needs separate pages

So here's the one-line command to split your large PDF into separate pages:

pdftk in.pdf burst

By default, the separate pages will be named pg_xxxx.pdf (where xxxx is the page number, such as pg_0001, pg_0002, etc.). If you prefer to create different file names, use the output option, such as:

pdftk in.pdf burst output separate%02d.pdf

That will create files called separate01.pdf, separate02.pdf, etc.

Btw, the burst operation also creates a file called doc_data.txt that contains a lot of metadata from the source file. The content of the file is described in the dump_data operation:

Regards, Joe

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RGuillermoProject ManagerAuthor Commented:
Thanks to all Experts!
Joe Winograd, Fellow&MVEDeveloperCommented:
You're welcome! Happy to help. Regards, Joe
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.