[poppler] Segmentation fault happens with poppler_page_render in pdftotext

andy huang jchuang1977 at gmail.com
Sun Oct 26 20:39:51 PDT 2008


Hi All:
  I want to transfer one pdf page to text file and png file at the same
function.
So I use the pdftotext.cc to implement my function , but I always encounter
the segmentation fault problem.
The text part and poppler_page_render part is running ok individually.
But when I put text part and render part together , the program always dead
at poppler_page_render function.
I hope someone can help me to figure out this situation.

I attach the source code and binary file
Here is the log file
--------------------------------------------------------------
./pdftotext -f 1 -l 1 -raw /home/andy/pdf/English.pdf eng1.txt
start to load pdf file
png pdf 3
png pdf 4
png pdf 5
***** MediaBox = ll:0,0 ur:612,792
***** CropBox = ll:0,0 ur:612,792
***** Rotate = 0
Segmentation fault
------------------------------------------------------



Thank you very much.
Best regards
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/poppler/attachments/20081027/cfa9208f/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdftotext
Type: application/octet-stream
Size: 53767 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081027/cfa9208f/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdftotext.cc
Type: application/octet-stream
Size: 10461 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20081027/cfa9208f/attachment-0003.obj 


More information about the poppler mailing list