Hi All:<br>&nbsp; I want to <span style="color: rgb(255, 0, 0);">transfer one pdf page to text file and png file</span> at the same function.<br>So I use the pdftotext.cc to implement my function , but I always encounter the segmentation fault problem.<br>
The text part and poppler_page_render part is running ok individually.<br>But when I put text part and render part together , the program always dead at<span style="color: rgb(255, 0, 0);"> poppler_page_render</span> function.<br>
I hope someone can help me to figure out this situation.<br><br>I attach the source code and binary file<br>Here is the log file<br>--------------------------------------------------------------<br>./pdftotext -f 1 -l 1 -raw /home/andy/pdf/English.pdf eng1.txt<br>
start to load pdf file<br>png pdf 3<br>png pdf 4<br>png pdf 5<br>***** MediaBox = ll:0,0 ur:612,792<br>***** CropBox = ll:0,0 ur:612,792<br>***** Rotate = 0<br>Segmentation fault<br>------------------------------------------------------<br>
<br><br><br>
Thank you very much.<br>Best regards<br>Andy<br><br>