theme-sticky-logo-alt

Export a multi-page pdf with GIMP

12 Comments

Sometimes we have pdf’s that we need to edit and to do so we can use apps like Inkscape (which we already saw on a previous article) or GIMP. When you edit them with Inkscape, you have the advantage that the imported content will remain as vector (except those attached images that will remain as bitmaps), however, you can also edit your pdf using GIMP.

When you open a multi-page pdf file with GIMP, each page will turn automatically into a layer (ascendant). Editing each one of those is quite simple.

Once you edit it, to make the pages stay in the right order once you export it, you must invert the layers order, setting the first layer at the bottom of the layer’s list and so on (just see the image numbers).

Once you finish editing your file, go to:

File > Export As… >

[cq_vc_hotspot image=”6158″ isdisplayall=”on” position=”4.464285714285714%|5.0476190476190474%,39.76011904761905%|30.28571428571429%,62.258333333333326%|84.38095238095238%,” iconbackground=”rgba(33,173,209,0.8)” circlecolor=”#ffffff”][hotspotitem]
File
[/hotspotitem]
[hotspotitem]
Export as…
[/hotspotitem]
[hotspotitem]
Layers
[/hotspotitem][/cq_vc_hotspot]Select .mng as output formar. If you don’t see it on the list just write it manually at the end of your filename. mng is the png animation format (similar to what gif is, but with a much better quality).

Once you press “save”, this will show you a dialog where you will be able to select the properties of the mng to export. Try to guide yourself through the image options and press export:

Once you do it, you’ll have your mng file created and ready to be converted into a multi-pages pdf.[cq_vc_hotspot image=”6160″ isdisplayall=”on” position=”9.226190476190476%|60.09523809523809%,28.450535714285714%|72%,83.68690476190476%|90.0952380952381%,” iconbackground=”rgba(33,173,209,0.8)” circlecolor=”#ffffff”][hotspotitem]
File format: mng
[/hotspotitem]
[hotspotitem]
Export options
[/hotspotitem]
[hotspotitem]
Export
[/hotspotitem][/cq_vc_hotspot]

Once you have your file exported, open a terminal, locate the folder where your document is and execute:

[tatica@anita ~]$ convert document.mng document.pdf

And that’s it. You’ll have an edited pdf, completely functional, that will have all the pages you selected as layers on GIMP. There are plugins that you can add to GIMP in order to do this task, however, I found that this was a quite simple and interesting way to do it without having to installing anything.


Help tatica and donate with paypal!

Previous Post
Are you a Fedora Women? Then Let us Know!
Next Post
La fotografía en la era de los smartphones

12 Comments

  • 28 June, 2018 at 15:48

    Seguí las instrucciones tal cual. Ordené las capas y todo bien. Exporté en formato MNG y cuando el convert de mng a pdf obtengo un archivo con un margen superior excesivo y pierdo la parte inferior de cada página. Desconozco si el error es de gimp pues no sé cómo ver el archivo MNG, asi que solo veo el pdf después de convert. No encuentro cómo ajustar margen superior. Este margen lo pone en todas las páginas del pdf. Revisé la imagen en gimp con pulgadas y la puse a 6.360 por 9 pulgadas, con 100 de resolución.
    ¿Sugerencias para arreglar mis márgenes?
    Agrdezco de antemano.

    Reply
  • 11 January, 2018 at 17:39

    Olá tatica, muito legal o seu blog! Você conhece algum caminho no GIMP que faça a invesão da ordem das páginas automaticamente? Eu editei um pdf de 70 páginas e não acredito que vou precisar reordena-los de forma manual D: SOS

    Reply
    • 29 June, 2018 at 15:52

      Automaticamente eu não sei, no entanto, se você abrir a última página do seu arquivo para exportar primeiro, e então selecionar “abrir como camadas” o resto das páginas, estas serão ordenadas ao contrário e você só tem que exportá-lo no GIMP para mng . Deixe-me saber se esse método funcionou para você (isso me ajuda a exportar minhas páginas com números, então eu sei que esse número é cada camada)

      Reply
  • 28 December, 2017 at 15:57

    ¡Genial artículo! Solo tuve un problema: Al ejecutar convert, tardó bastante, y al final me apareció el mensaje: “Terminado (killed)”. ¿Alguna idea?

    Reply
    • 29 June, 2018 at 15:53

      Quizás el archivo era muy grande? Nunca me ha sucedido. Cualquier cosa contactame a mi email

      Reply
  • 20 November, 2017 at 5:20

    Hola, Matías:
    No necesitas perderte por trabajar en Windows. Puedes entrar en la línea de comandos de windows buscando cmd en el cuadro de texto “Buscar programas y archivos” que te aparece en el Botón de Inicio.
    La utilidad “convert” forma parte del paquete de utilidades ImageMagick cuya página web se encuentra en la siguiente dirección:
    https://www.imagemagick.org/
    Cuando lo instales lee con atención los cuadros de diálogo, parece qe la utilidad convert necesita que la selecciones explícitamente.
    Espero que te ayude.

    ferne

    Reply
  • 27 October, 2017 at 20:15

    El articulo esta super interesante de leer,lo unico que no me agrada esque no soy usuario de linux .Asique al llegar a la parte de ,abrir el terminal ,me perdi :( me hubiera sido util,pero estoy aprendiendo recien y en windows 7
    igual gran blog saludos :/

    Reply
  • 26 August, 2017 at 11:11

    ¡Muchas gracias por la respuesta!

    Saludos desde México

    Thank you for you answer!

    Greetrings from México!

    Reply
  • 8 September, 2016 at 19:09
    Donathien

    Mil gracias tatica, una vez más me sacas de apuros…

    Reply
  • 10 May, 2016 at 18:16

    Gracias TATICA, lograste salvarme con tus tutos.

    Reply
  • 11 April, 2016 at 7:05

    Probado y comprobado SI FUNCIONA; muchas gracias por compartir conocimiento. 8-)

    Reply
  • 8 April, 2016 at 11:44
    gabrieltandil

    esto tiene muchisima utilidad, lastima haberme enterado tan tarde, pero buen, alguna vez lo volvere a necesitar. gracias

    Reply

Leave a Reply

15 49.0138 8.38624 1 0 4000 1 https://tatica.org/en 300 0