{"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\/convertir-fichero-pdf-con-imagenes-en-texto-convert-gocr\/","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\/convertir-fichero-pdf-con-imagenes-en-texto-convert-gocr\/\">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":{"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\/wp-json\/wp\/v2\/posts\/110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":0,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/posts\/110\/revisions"}],"wp:attachment":[{"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/media?parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/categories?post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/aldarias.es\/wordpress\/wp-json\/wp\/v2\/tags?post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}