Summary: | cannot print into PDF with kpresenter 1.4.0a | ||
---|---|---|---|
Product: | [Unmaintained] kdeprint | Reporter: | Giovanni Venturi <giovanni> |
Component: | general | Assignee: | Laurent Montel <montel> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | jlayt |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
the file I tryed to print into PDF
printed to pdf the new logo that I inserted and I get the same error |
Description
Giovanni Venturi
2005-06-23 12:37:42 UTC
Created attachment 11555 [details]
the file I tryed to print into PDF
Created attachment 11621 [details]
printed to pdf
Hello Giovanni,
I have no problems with printing into to pdf. See the attached pdf for your
presentation. What exactly is the problem you have during printing. Does it
looks bad or doesn't it print at all?
Thorsten
I got an KMessageBox: A print error occurred. Error message received from system: Abnormal process termination (gs -q -dSAFER -dPARANOIDSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$out{/home/slacky/KDE/aKademy2005/aKademy2005.pdf} -sPAPERSIZE=a4 -c .setpdfwrite -f '/tmp/kde-slacky/kdeprint_UaO4n6E3' ). Strange because happen just for KPresenter... I tryed to create a new Presentation from the beginning (just a page and two text box) and KPresenter prints in PDF, so I think it's some elements into the presentation that breaks the printing, or a bug relative to import the presentation from KPresenter 1.3 to KPresenter 1.4 that creates some difficult element for PDF printing... I've got gs 8.15.0 . Slackware-current. I can print on PS by KPresenter. Trying to ps2pdf the file I got a correct PDF file. I can see PS correctly with KGhostView and the ps2pdfed file with KPDF. Sorry, Giovanni, it works here for me. This more likely sounds like a local problem of your gs installation as it works here without problems. Maybe you can check with the kprinter guys to see if they have any idea. As this is not a kpresenter problem I will close the bug report for now. Created attachment 11659 [details]
the new logo that I inserted and I get the same error
You cannot close this bug as "WORKSFORME" because I made some try. I installed a slackware-current on a new machine using the KDE 3.4.1 and KOffice 1.4.0a slackware-current binary packet. I found the object into the presentation that made that error: the KDE logo in the top right of the presentation. Removing it I can print on PDF. That image was directly into the file presentation from KPresenter 1.3.x I didn't inserted the image with "Insert image..." menu. I tryed inserting the object again removing it in all the pages and it doesn't work, so I tryed to insert a digital photo take with my camera into a new presentation and it printed the PDF. I tryed to substitute the KDE icon with the file attached to this bug and I get no PDF file... We have to reopen the bug and assign it to someone else that write the part the gave this bug. I want help to solve it so ask me to try what you need. According to T Zachmann the bug is for kdeprint team. If this is not correct. Specify the correct component, please. I think it is a gs and/or a Qt postscript generator problem but I will have to investigate further. Anyways, for now, just to have the things written down, kdeprint uses the command: gs -q -dSAFER -dPARANOIDSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$out{some_out.file} -sPAPERSIZE=a4 -c .setpdfwrite -f /tmp/some_temp_file.ps This command crashes ("segmentation fault")when the KDE logo is present in the kpresenter file. The /tmp/some_temp_file.ps is generated on the fly just before the conversion. When I print the presentation to a .ps file then do the conversion to pdf by hand using the ps2pdf command, I succeed. It turns out, ps2pdf automatically adds the option "-dCompatibilityLevel=1.2" to the other options needed by gs for a ps to pdf conversion. Thus, the pdf obtained is version 1.2. If this option isn't given, gs will attempt a default conversion to pdf version 1.3 or pdf version 1.4 (dunno which). Of course, trying `ps2pdf13 presentation.ps pres.pdf` or `ps2pdf14 presentation.ps pres.pdf` gives crashes. So, I now have to find out why the ps generated by Qt isn't convertible in pdf > 1.2. I smell a gs bug. I confirm this bug on Kubuntu Dapper with Koffice 1.5 unofficial packages here. I get the following error popup : <popup> A print error occurred. Error message received from system: Abnormal process termination (gs -q -dSAFER -dPARANOIDSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$out{/home/raphink/conf/conf.pdf} -sPAPERSIZE=a4 -c .setpdfwrite -f '/tmp/kde-raphink/kdeprint_xrv96O6t' ). </popup> It fails to print using the KDE3 model (even not modifying it), but not with some other ones : the mountains, KDE and the KDE2 models work for example. Well, with KDE 3.5.5 and KPresenter 1.6.1 and Qt 3.3.7 seems fixed. Raphael, proceed as follows: * [alt]+[f2] * type "kprinter" * click "Run" * select printer "Print to file (PDF)" * Click "Properties" * Select "Driver Settings" tab * Locate the "Genera --> Compatibility Level" item * Set it to "Level 1.2" This should fix the problem. (For more background info: I dunno if this is a Qt bug generating problematic PostScript code, or a Ghostscript bug [for some older versions] which is not able to correctly process a valid PostScript statement in certain circumstances. However, the problem usually goes away when setting "-dCompatibilityLevel=1.2" for the ps2pdfwr script.) Closing old Resolved status bug. |