It is currently Tue Jul 02, 2024 1:50 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Exporting problem
PostPosted: Mon Jun 17, 2019 12:50 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Oct 07, 2010
Posts: 439
Location: home/Nixnine/.gimp-2.0/scripts/nixnine.scm
GIMP Version: 2.10.10
Operating System: Linux
OS Version: UbuntuStudio 18.04
GIMP Experience: Experienced User

List any relevant plug-ins or scripts:
Export Layers to PDF

List any ERROR messages you received:
AttributeError: 'NoneType' object has no attribute 'rfind'



I am trying to export layers of a multi page doc to a PDF and get this error. Any idea on what this is and how to resolve it?

Thanks

_________________
I refuse to be confused, but am often confused at this refusal.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Exporting problem
PostPosted: Mon Jun 17, 2019 3:03 am  (#2) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2437
If you search for that error AttributeError: 'NoneType' object has no attribute 'rfind' lots of hits, most of them concerning python.

Are you using a separate Gimp plugin to create the PDF?

No consolation but, using (k)ubuntu 18.04 and Gimp 2.10.10 from the PPA, a multi-layer image exports to a multi-page PDF without issue, using the regular Gimp export menu.

Are you using a 'flatpak' or 'appimage' GIMP ? AFAIK, either work but I am not using these types at the smoment. Can you run gimp --verbose from a terminal, see if you get more descriptive error messages.


Edit: OK, I know the plugin you are using, It uses ImageMagick (IM) It was originally made for Gimp 2.6 then updated to Gimp 2.8 Just tried that last version and I get errors as well. I can see it writing png's to /tmp but for some reason IM is not saving the PDF. It could be a problem with the 'buntu IM

A quick check with command line IM and that fails as well. Needs some investigation.

It is superseded in Gimp 2.10 by the export PDF dialogue which now has the option to export multi-page

Attachment:
multi-pdf.jpg
multi-pdf.jpg [ 38.77 KiB | Viewed 2734 times ]


Edit again:
Just remembered. I have come across this before (I keep a 'static' IM7 for some things) In Ubuntu 18 IM 'bans' some file types PDF is one of them. These are kept in the file /etc/ImageMagick-6/policy.xml
You can comment out like this:

Attachment:
comment-out.jpg
comment-out.jpg [ 27.55 KiB | Viewed 2727 times ]


or easier, disable the whole file
sudo mv /etc/ImageMagick-6/policy.xml /etc/ImageMagick-6/policy.xmlout


Just tried the export-layers-to-pdf.py and it is back to working. Still advise using the Gimp function as above.

_________________
Image


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Exporting as PSD from Python?

2

No new posts Trouble exporting to .psd

2

No new posts Filled path not exporting with fill

4

No new posts Attachment(s) exporting 256-color indexed png & gif missing transparency

9

No new posts Performance of adjusting layers and exporting with Python Fu

5



* Login  



Powered by phpBB3 © phpBB Group