public async Task Test() { var client = new GovInfoClient(new SecretHelper()); var pdf = await client.DownloadPDF("https://www.govinfo.gov/content/pkg/USCOURTS-cand-4_17-cv-04405/pdf/USCOURTS-cand-4_17-cv-04405-9.pdf"); var x = PdfReader.Open(pdf); var fullBillText = ""; foreach (var page in x.Pages) { var contents = ExtractText(page); foreach (var content in contents) { fullBillText += content + Environment.NewLine; } } }
public DetailsModel(GovInfoClient client) { _Client = client; }
public GovInfoClientTests() { SUT = new GovInfoClient(new SecretHelper()); }