{"id":110,"date":"2011-09-27T22:43:00","date_gmt":"2011-09-27T22:43:00","guid":{"rendered":"http:\/\/aldarias.es\/wordpress\/?p=110"},"modified":"2011-09-27T22:43:00","modified_gmt":"2011-09-27T22:43:00","slug":"convertir-fichero-pdf-con-imagenes-en-texto-convert-gocr","status":"publish","type":"post","link":"http:\/\/aldarias.es\/wordpress\/?p=110","title":{"rendered":"CONVERTIR FICHERO PDF CON IMAGENES EN TEXTO: CONVERT GOCR"},"content":{"rendered":"<p>Script que coge un fichero pdf con imagenes, y las transforma en texto.<\/p>\n<p>#max=Numero de hojas del pdf<br \/>max=404<br \/>&gt; convertido.txt<br \/>for i in $(seq $max);do<br \/>echo \u00abConvirtiendo pagina: $i de $max\u00bb<br \/>if [ ! -f imagen-$i.jpg ];then<br \/>  convert -density 300 libro.pdf[$i-$i] imagen-$i.jpg<br \/>fi<br \/>gocr imagen-$i.jpg &gt;&gt; convertido.txt<br \/>done<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Script que coge un fichero pdf con imagenes, y las transforma en texto. #max=Numero de hojas del pdfmax=404&gt; convertido.txtfor i in $(seq $max);doecho \u00abConvirtiendo pagina: $i de $max\u00bbif [ ! -f imagen-$i.jpg ];then convert -density 300 libro.pdf[$i-$i] imagen-$i.jpgfigocr imagen-$i.jpg &gt;&gt; &hellip; <a href=\"http:\/\/aldarias.es\/wordpress\/?p=110\">Sigue leyendo <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"episode_type":"","audio_file":"","podmotor_file_id":"","podmotor_episode_id":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","footnotes":""},"categories":[147,148],"tags":[],"class_list":["post-110","post","type-post","status-publish","format-standard","hentry","category-convert","category-gocr"],"_links":{"self":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=110"}],"version-history":[{"count":0,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions"}],"wp:attachment":[{"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}