Created
November 5, 2011 01:04
-
-
Save eniolopes/1340915 to your computer and use it in GitHub Desktop.
.NET port of PDFBOX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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