After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677637 - (kmgoelker) PDF export plug-in does not work
(kmgoelker)
PDF export plug-in does not work
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.8.0
Other Windows
: Normal normal
: 2.8
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2012-06-07 17:10 UTC by Klaus Goelker
Modified: 2013-12-08 13:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (1.96 KB, patch)
2012-06-08 10:24 UTC, Massimo
none Details | Review

Description Klaus Goelker 2012-06-07 17:10:08 UTC
When I am going to export an image file as pdf, I do get two error messages in one message window: 
Portable-Document-Format-Meldung
Ein Fehler trat beim Erstellen der PDF-Datei auf:
error while writing to output stream
Stellen Sie sicher, dass der Dateiname gültig ist und für den gewählten Ort Schreibrechte vorhanden sind!

Translated: 
Portable-Document-Format-Message
an error occurred during export of the pdf file:
error while writing to output stream
Make shure the file name is valid and the chosen location for export is not write-protected

I´ve checked both, file name and write-protection of the destination folder, it´s ok

Second error message:

Gimp-Meldung
»C:\Users\Klaus Gölker\Desktop\pdf-error.pdf« konnte nicht gespeichert werden:
Das Plugin Portable-Document-Format konnte das Bild nicht speichern

Translated:
Gimp-Message
<path/file> could not be saved.
the plug-in Portable-Document-Format was not able to save the image

I´ve tried several times, always with the same result.

In one of the developer releases 2.7.X there was an entry in menu File > Create > Create multipage pdf. This entry is missing, whereas I did a full installation of Gimp 2.8 (custom - all checked)

My system: Computer:
OS                 Windows 7 Ultimate Media Center Edition
OS Service Pack    Service Pack 1
DirectX            4.09.00.0904 (DirectX 9.0c)
Motherboard:
CPU Typ            AMD Athlon FX X2, 2x2700 MHz
Motherboard Name   Asus M2V      
RAM                3072 MB
BIOS Typ           AMI (09/07/06)    
Display:
Grafics adapter    GeForce 210 PCi e

Regards

Klaus Goelker
Comment 1 Massimo 2012-06-07 19:23:50 UTC
(In reply to comment #0)
> When I am going to export an image file as pdf, I do get two error messages in
> one message window: 
> Gimp-Meldung
> »C:\Users\Klaus Gölker\Desktop\pdf-error.pdf« konnte nicht gespeichert werden:

For the time being you could try to save in a folder
whose name contains only ascii characters.
Comment 2 Chris Mohler 2012-06-07 19:56:16 UTC
Probably a duplicate of Bug 659509.

*** This bug has been marked as a duplicate of bug 659509 ***
Comment 3 Klaus Goelker 2012-06-07 20:31:28 UTC
(In reply to comment #2)
> Probably a duplicate of Bug 659509.
> 
> *** This bug has been marked as a duplicate of bug 659509 ***

It is not the same problem as about the non-ascii characters. As I explained, I had this checked out, using only ascii-characters for filename and foldername. The problem/bug persists even then.
Comment 4 Chris Mohler 2012-06-07 20:49:05 UTC
Please post the error message from exporting into a folder with ascii-only characters.

From your report, this:
»C:\Users\Klaus Gölker\Desktop\pdf-error.pdf

...suggests that your profile directory is hitting Bug 659509.
Comment 5 Klaus Goelker 2012-06-08 06:14:33 UTC
Now I see, the non-ascii-character is still in the path.
I have tried to export to a destination without special characters - and this works. Thank you Chris and all. So the Bug is as you told according to Bug 659509.
I have got one question left: The menu item to save multipage pdf (File>Create>Create multipage pdf) did not make it up to final Gimp 2.8 - it was available in the developer version 2.7.3 and 4 - is that correct?
Thanks again!

Klaus
Comment 6 Massimo 2012-06-08 10:24:13 UTC
Created attachment 215925 [details] [review]
proposed patch

This is not a duplicate of the other bug, it is
a bug in file-pdf-save, that for the small testing I did
on Windows and linux is fixed with the attached patch.

Yes saving multi-page pdf was disabled before the final release.
But I don't know the details
Comment 7 Klaus Goelker 2012-06-08 10:38:26 UTC
Hello,

for me the problem was solved with the hint by Chris, but I am glad, my issue could help to improve the GIMP a bit, following Massimos explanation.
Thanks to you all!

Klaus
Comment 8 Klaus Goelker 2012-06-08 10:41:45 UTC
Massimo, your batch lies beyond my capabilities as a Windows user. Anyways - thank you. For me the problem/bug is resolved.
Comment 9 Massimo 2012-06-09 13:55:26 UTC
fixed in master and gimp-2-8:

commit 03f0a1ab57b440f40c9bc685fed778d5b4eea376
Author: Massimo Valentini <mvalentini@src.gnome.org>
Date:   Sat Jun 9 15:36:35 2012 +0200

    Bug 677637: PDF export plug-in does not work
    
    use g_fopen and cairo_pdf_surface_create_for_stream
    to avoid file name encoding issues on Windows.