gimp-export-layers icon indicating copy to clipboard operation
gimp-export-layers copied to clipboard

Special option for PDF: Export layers to a single multi-page PDF

Open khalim19 opened this issue 8 years ago • 2 comments

While GIMP has a built-in procedure named file-pdf-save-multi, it doesn't work in the non-interactive run mode and is probably deprecated by now.

There are scripts that do provide multi-page PDF export (utilizing ImageMagick):

  • http://registry.gimp.org/node/25677
  • http://registry.gimp.org/node/27987

To promote reuse, we could wrap one of the above scripts (not including it in the plug-in, but linking to it so that users can download it) combined with this plug-in's features to improve the multi-page PDF export.

If it turns out we can't use the above script(s), we'll need to make our own solution, using one of available Python PDF tools/libraries, such as PyPDF2.

This setting should be off by default and should only appear when the user types/chooses the "pdf" file extension.

khalim19 avatar May 14 '16 15:05 khalim19

GIMP 2.10.x ships with this feature. I guess you can close this feature request :)

prokoudine avatar May 24 '18 16:05 prokoudine

Great! It's definitely a huge relief not to have to deal with workarounds mentioned in the OP.

On a second thought, though, we could still make the plug-in apply additional operations like background layers, include layers within groups as individual pages , etc. - simply leveraging all the plug-in settings. Thus, I'll leave this open for now, although this would require introducing non-trivial changes to the code since now each layer is processed and saved separately, while a multi-page PDF would require saving to be performed only once.

khalim19 avatar May 24 '18 21:05 khalim19

Multi-layer export, including multi-page PDF, is now supported in 4.0. While multi-page PDF export is already possible in GIMP, this plug-in also allows applying procedures before the export (e.g. background insertion on each page).

kamilburda avatar Aug 06 '23 12:08 kamilburda