Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible to get pdf page count?
#2
1. Go to NuGet and search for pdf.

2. Click for example PDFsharp and copy the PM text. Also look at Frameworks (must support .NET 6), License (MIT means it's free), Source repository (isn't it abandoned etc).

3. In LA open the NuGet tool, paste, click Install. Wait, click Add /*/. Close the tool.

4. Now you can use the library in current script. Press Ctrl+Space and you'll find PdfSharp.

If need examples and other info, in the NuGet page click link "Project website" or "Source repository". Also google.
 
Code:
Copy      Help
// script ""
/*/ nuget -\PDFsharp; /*/
using PdfSharp.Pdf.IO;

var doc = PdfReader.Open(@"C:\Downloads\p.pdf");
print.it(doc.PageCount, doc.Info.CreationDate);


Messages In This Thread
Possible to get pdf page count? - by birdywen - 11-02-2023, 01:51 PM
RE: Possible to get pdf page count? - by Gintaras - 11-02-2023, 02:27 PM
RE: Possible to get pdf page count? - by birdywen - 11-02-2023, 02:54 PM
RE: Possible to get pdf page count? - by birdywen - 11-04-2023, 01:46 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)