views:

38

answers:

3

I'd like to do the following tasks on pdf files from classic asp

  1. get page count
  2. split pages
  3. save splitted pdf

Is there a nice and easy library available?

-Vivek

A: 

Try searching for "ActiveX PDF". In Classic ASP you can create any ActiveX object like so:

Set o = Server.CreateObject("PDF.ClassName")
o.DoSomething

So if you find a control that is an ActiveX control, you'll be able to use it.

Michael Pryor
A: 

I've used ABCpdf with great success.

thomask
+1  A: 

If you have no problems to use a commandline tool with server.CreateObject ("WScript.Shell") then I would recommend PDFTK - The PDF Toolkit. I used it in a project with PDFs up to 500 MB without any problems.

This is what PDFTK can do for you:

  • Merge PDF Documents
  • Split PDF Pages into a New Document
  • Rotate PDF Pages or Documents
  • Decrypt Input as Necessary (Password Required)
  • Encrypt Output as Desired
  • Fill PDF Forms with FDF Data or XFDF Data and/or Flatten Forms
  • Apply a Background Watermark or a Foreground Stamp
  • Report on PDF Metrics such as Metadata, Bookmarks, and Page Labels
  • Update PDF Metadata
  • Attach Files to PDF Pages or the PDF Document
  • Unpack PDF Attachments
  • Burst a PDF Document into Single Pages
  • Uncompress and Re-Compress Page Streams
  • Repair Corrupted PDF (Where Possible)
Yots