{"id":1757,"date":"2015-03-31T02:35:00","date_gmt":"2015-03-31T08:35:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/unir-imagenes-para-crear-un-archivo-pdf\/"},"modified":"2015-03-31T02:35:00","modified_gmt":"2015-03-31T08:35:00","slug":"unir-imagenes-para-crear-un-archivo-pdf","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/unir-imagenes-para-crear-un-archivo-pdf\/","title":{"rendered":"Unir im\u00e1genes para crear un archivo PDF"},"content":{"rendered":"<div style=\"text-align: justify;\">\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/4.bp.blogspot.com\/-y6ytT2NatwQ\/VR9z9t6yt5I\/AAAAAAAAAqw\/BPDC0oR1wog\/s1600\/pdf.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/4.bp.blogspot.com\/-y6ytT2NatwQ\/VR9z9t6yt5I\/AAAAAAAAAqw\/BPDC0oR1wog\/s1600\/pdf.png\" height=\"320\" width=\"320\" \/><\/a><\/div>\n<p>Hace poco descargu\u00e9 un libro de IHC, hasta ah\u00ed todo iba bien, resulta que al descomprimirlo me llevo la sorpresa que estaba en im\u00e1genes png, todo el libro. As\u00ed es, 580 p\u00e1ginas en im\u00e1genes, simplemente ni siquiera me tom\u00e9 la molestia de leer imagen por imagen.<\/p><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Busque en la red c\u00f3mo unir im\u00e1genes y crear un pdf a partir de dichas im\u00e1genes, el proceso es relativamente sencillo.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">El primer paso es ubicarse en la ruta de las im\u00e1genes, supongamos que se tienen las imagenes en la carptea libro-en-png y esa carpeta est\u00e1 en descargas.<\/div>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: whitesmoke; font-family: 'Droid Sans Mono', Consolas, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-align: start; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">cd ~\/Descargas<\/pre>\n<div style=\"text-align: justify;\">Una vez estando en la ruta, se puede elegir convertir unas cuantas im\u00e1genes o seleccionar todas:<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Para convertir se usa el comando <span style=\"color: #660000;\"><b>convert<\/b><\/span>&nbsp; que ya vienen incluido en la mayor\u00eda de las distros basadas en linux.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">De preferencia las rutas y nombres de archivos no contengan espacios en blanco, si tuvieran m\u00e1s de 50 im\u00e1genes, es mejor convertirlas por lotes de 30 en 30 y luego usar pdfmod para unir los pdf&#8217;s ya que si lo hacen de a golpe por ejemplo con 500 im\u00e1genes puede que su m\u00e1quina se bloquee, pero si tienen un i7 entonces no hay problema.<\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Convertir solo unas cuantas im\u00e1genes:<\/div>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: whitesmoke; font-family: 'Droid Sans Mono', Consolas, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-align: start; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">convert img1.png img2.png img4.png img15.png nombreArchivoSalida.pdf<\/pre>\n<div style=\"text-align: justify;\">Convertir todas la im\u00e1genes que haya en la ruta:<\/div>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); color: whitesmoke; font-family: 'Droid Sans Mono', Consolas, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-align: start; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">convert *.png nombreArchivoSalida.pdf<\/pre>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\">Y con eso solucion\u00e9 el problema.<\/p>\n<p>Fuente:<a href=\"http:\/\/www.pc-freak.net\/blog\/create-pdf-file-from-jpg-pictures-in-linux\/\">http:\/\/www.pc-freak.net\/blog\/create-pdf-file-from-jpg-pictures-in-linux\/<\/a> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hace poco descargu\u00e9 un libro de IHC, hasta ah\u00ed todo iba bien, resulta que al descomprimirlo me llevo la sorpresa que estaba en im\u00e1genes png, todo el libro. As\u00ed es, 580 p\u00e1ginas en im\u00e1genes, simplemente ni siquiera me tom\u00e9 la molestia de leer imagen por imagen. Busque en la red c\u00f3mo unir im\u00e1genes y crear [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1282,1279,1280,1278,7,87,215,4,322,216,1281,1277],"tags":[],"class_list":["post-1757","post","type-post","status-publish","format-standard","hentry","category-convert","category-crear-pdf","category-crear-pdf-a-partir-de-png","category-create-pdf-form-png-files","category-fedora","category-gnome","category-jpg","category-linux","category-pdf","category-png","category-unir-en-pdf","category-unir-imagenes"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1757"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1757\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}