コード例 #1
0
ファイル: PDFTests.cs プロジェクト: JessieArr/CitationPlease
        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;
                }
            }
        }
コード例 #2
0
 public DetailsModel(GovInfoClient client)
 {
     _Client = client;
 }
コード例 #3
0
 public GovInfoClientTests()
 {
     SUT = new GovInfoClient(new SecretHelper());
 }