[poppler] commit? bounding box html in pdftotext

Kenneth Berland ken at hero.com
Wed May 26 12:18:18 PDT 2010


I get a compiler warning without it.

pdftotext.cc: In function ‘int main(int, char**)’:
pdftotext.cc:164: warning: ‘f’ may be used uninitialized in this function


-KB


On Wed, 26 May 2010, Albert Astals Cid wrote:

> A Diumenge, 9 de maig de 2010, Kenneth Berland va escriure:
>> List,
>>
>> I've attached a small addition to pdftotext that outputs bounding box
>> information to html like this:
>>
>> <doc>
>>    <page width="612.000000" height="792.000000"/>
>>      <word xMin="56.800000" yMin="57.208000" xMax="75.412000"
>> yMax="70.492000">The</word> </page>
>> </doc>
>>
>> I had a need, maybe others will too.
>>
>> -KB
>
> Why is this change necessary?
>
> -  FILE *f;
> +  FILE *f = stdout;
>
> Albert
>


More information about the poppler mailing list