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

前端 未结 4 1140
再見小時候
再見小時候 2020-12-28 18:27

My client has a multi-page PDF file. They need it split by page. Does anyone know of a way to do this - preferably in C#.

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-28 19:13

    I did this using ITextSharp -- there are commercial options that may have a good API but this is open source and free, and not hard to use.

    Check out this code, it's one of their code samples -- it's pretty good. It splits a PDF file into two files at the passed-in page number. You can modify it to loop and split page by page.

提交回复
热议问题