Skip to content

Instantly share code, notes, and snippets.

@eniolopes
Created November 5, 2011 01:04
Show Gist options
  • Save eniolopes/1340915 to your computer and use it in GitHub Desktop.
Save eniolopes/1340915 to your computer and use it in GitHub Desktop.
.NET port of PDFBOX
using org.apache.pdfbox.pdmodel;
using org.apache.pdfbox.util;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
var doc = PDDocument.load("C:\\Program Files\\Reader\\PUBLICAÇÕES JUDICIAIS I - TRF\\de_judITRF_2011_10_13_a.pdf");
var stripper = new PDFTextStripper();
stripper.setStartPage(3);
stripper.setEndPage(3);
var fonts = stripper.getFonts(); // throws EmptyStackException was unhandled
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment