[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 77847] Wish: Add 'PDF Format' to 'Save As' and 'Export' menu of
From: David Faure <faure () kde ! org>
Date: 2005-11-30 20:28:18
Message-ID: 20051130202818.17409.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=77847
faure kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tibirna kde org
------- Additional Comments From faure kde org 2005-11-30 21:28 -------
OK I tried to create a koffice filter for exporting to PDF. Almost works \
except that kdeprint doesn't notice that I'm asking for a pseudo-printer, \
it asks cups for the printer "Print to File (PDF)" (!).
We know already the output filename, in the filter, so I can't use \
autoConfigure(). Instead the code looks like:
KPrinter printer( false );
printer.setDocName( title.isEmpty() ? in : title );
printer.setDocFileName( out );
printer.setDocDirectory( document->url().directory() );
printer.setPrinterName( i18n( "Print to File (PDF)" ) );
view->setupPrinter( printer );
view->print( printer );
where out is the path to the output file.
I get:
cupsdoprint -P 'Print to File (PDF)' -J '' -H 'localhost:631' -U 'dfaure' \
-o ' orientation-requested=3' '/tmp/kde-dfaure/kdeprint_hCJGuREw' : \
execution failed with message: client-error-not-found
Michael/Cristian, can kdeprint be fixed to recognize pseudo printers in \
setPrinterName? Or do you see a better solution?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic