I have multiple layers open in GIMP. I would like to export a pdf that has each layer on a new page.
-
1We are allowed to answer our own questions. – Morgoth May 10 '17 at 13:04
-
1It's not just allowed, it's actually encouraged :) – M. Becerra May 10 '17 at 13:10
GIMP (prior to 2.10) can't do this directly.
You need to use an intermediate file format.
Prerequisites
sudo apt-get install imagemagick
Steps
- Export from GIMP as an MNG animation:
File
→Export
→document.mng
Convert to PDF on the terminal:
convert -reverse document.mng document.pdf
-
1Nice tweak for not having to reorder the layers from how they come in from a pdf in the import. – Max Williams Jun 27 '18 at 15:07
-
5
-
-reverse also needs a new version of convert; 1.3.23 does not do that. – jjmerelo Aug 29 '20 at 8:39
-
On Ubuntu, if you get "not authorized" see accepted answer here: askubuntu.com/questions/1081895/… – Dagelf Sep 3 '20 at 8:44
Gimp (2.10) does it already. No extra software or plugins needed.
- Import all images/pages as layers.
- File > Export As > filename.pdf
- Select Layers as pages and Reverse the pages order
- Click the Export button.
That's all! Enjoy.
-
2Not only does GIMP do this built in, but it's even clever enough that if you want to have multiple layers make up a page e.g. a base image and various additional text layers - you can do this using layer groups and then with the 'Layers as pages' option, GIMP will export each layer group as a separate page! – ec2011 Nov 6 '19 at 1:53
-
10The installed GIMP I have on Ubuntu 16.04 (GIMP 2.8.16) does not have this option. – user886869 Nov 21 '19 at 0:04
-
8
-
You don't need to reverse pages order if images were imported in order (last page as top layer) – qwr Apr 28 '20 at 8:18
-
There is a Gimp plugin that does this nicely.
http://registry.gimp.org/node/27987
The install path and how to change the permissions are covered in this blog post: https://www.zyxware.com/articles/4438/how-to-export-multiple-layers-from-gimp-into-a-pdf-file