iTextSharp Read Text From Single Layer of PDF
问题 Currently I am using a custom LocationTextExtractionStrategy to extract text from a PDF that returns a TextRenderInfo[]. I would like to be able to determine if a TextRenderInfo object (or PDFString, child of TextRenderInfo) appears in a specific layer. I am not sure if this is possible. To get the layers in a PDF, I am using: Dictionary<string,PdfLayer> layers; using (var pdfReader = new PdfReader(src)) { var newSrc = Path.Combine(["new file location"]); using (var stream = new FileStream