[poppler] -bbox option in pdftotext

Albert Astals Cid aacid at kde.org
Fri Feb 18 12:27:55 PST 2011


Please answer the list, not me.

A Divendres, 18 de febrer de 2011, Tom Gleason va escriure:
> Not sure what you're asking...only when I use the bbox option.

I'm asking if it crashes when doing
	pdftotext -bbox thrift-20070401.pdf 
or when doing
	pdftotext -bbox anyfile.pdf 

I think it was quite obvious, sorry if it wasn't.

Albert

> 
> On Fri, Feb 18, 2011 at 3:06 PM, Albert Astals Cid <aacid at kde.org> wrote:
> > A Divendres, 18 de febrer de 2011, Tom Gleason va escriure:
> >> Hi,
> >> 
> >> The -bbox option is great, but there are two problems that I've noticed.
> >> 
> >> First, the <body> and <html> tags aren't closed, which cause a problem
> >> for parsing the xml:
> >> 
> >> --- a/utils/pdftotext.cc
> >> +++ b/utils/pdftotext.cc
> >> @@ -361,6 +361,8 @@ int main(int argc, char *argv[]) {
> >>        }
> >>        fprintf(f, "</doc>\n");
> >>      }
> >> +    fprintf(f, "</body>\n");
> >> +    fprintf(f, "</html>\n");
> >>      fclose(f);
> >>      delete textOut;
> >>    } else {
> >> 
> >> 
> >> second, though the program outputs the data fine, I get a segmentation
> >> fault. I'm not a C programmer so I'm not sure how to debug this
> >> 
> >> tom at tom:~/Desktop$ pdftotext -bbox thrift-20070401.pdf
> >> Segmentation fault
> > 
> > All files or just this one?
> > 
> > Albert
> > 
> >> Hope that helps.
> > 
> > _______________________________________________
> > poppler mailing list
> > poppler at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/poppler


More information about the poppler mailing list