split PDF into multiple files in C#

2020-06-14 07:01发布

We have a C# Windows service that currently processes all the PDFs by reading the 2D barcode on the PDF using a 3rd party component and then updates the database and stores the document in the Document repository.

Is there a way I can cut the files after reading the barcode and store it as another document?

For example if there is a 10 page document, it should split into 10 different files.

Thanks.

标签: c# pdf
7条回答
霸刀☆藐视天下
2楼-- · 2020-06-14 07:29

A previous question answers your partially - how to split pdf documents, if you know where the barcodes are then you can split the documents easily:

How can I split up a PDF file into pages (preferably C#)

The recommendation is a library called PDFSharp and a sample demonstrating PDF splitting.

查看更多
登录 后发表回答