79630307

Date: 2025-05-20 11:12:19
Score: 2
Natty:
Report link

iTextSharp.LGPLv2.Core 1.7.5 was not good for this in my use case; neither was Spire.PDF.

However, PdfPig worked a treat: https://www.nuget.org/packages/PdfPig

var text = "";
var doc = UglyToad.PdfPig.PdfDocument.Open(bytes);
foreach (var page in doc.GetPages())
{
    text += page.Text;
}

via https://stackoverflow.com/a/60501282

Reasons:
  • Blacklisted phrase (1): worked a treat
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: user326608