[ 
https://issues.apache.org/jira/browse/PDFBOX-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alberto Sampayo updated PDFBOX-2061:
------------------------------------

    Description: 
Hi, when trying to extract text from a PDF with encoding indentiti-h

Map<String,PDFont> pageFonts = null;
List<PDPage> pages = pdDoc.getDocumentCatalog().getAllPages();
for(PDPage page : pages) {
       pageFonts=page.getResources().getFonts();
}
pdfStripper.setFonts(pageFonts);

  was:
Hi, when trying to extract text from a PDF with encoding indentiti-h

Map<String,PDFont> pageFonts = null;
List<PDPage> pages = pdDoc.getDocumentCatalog().getAllPages();
for(PDPage page : pages){
       pageFonts=page.getResources().getFonts();
}
pdfStripper.setFonts(pageFonts);


> java.util.EmptyStackException in PDFTextStripper setFonts
> ---------------------------------------------------------
>
>                 Key: PDFBOX-2061
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2061
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.0
>            Reporter: Alberto Sampayo
>
> Hi, when trying to extract text from a PDF with encoding indentiti-h
> Map<String,PDFont> pageFonts = null;
> List<PDPage> pages = pdDoc.getDocumentCatalog().getAllPages();
> for(PDPage page : pages) {
>        pageFonts=page.getResources().getFonts();
> }
> pdfStripper.setFonts(pageFonts);



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to