printing borken in head ?
Helge Deller
deller at gmx.de
Tue Aug 12 18:36:54 BST 2003
On Tuesday 12 August 2003 11:15, Waldo Bastian wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tuesday 12 August 2003 08:38, Helge Deller wrote:
> > On Monday 11 August 2003 14:45, Sven Lüppken wrote:
> > > > I can print to a postscript file without problems from khtml.
> > >
> > > Yes, indeed. I have the same problem. Printing to a postscript file out
> > > of KDE (Konqueror, KMail etc.) works, printing from the applications to
> > > a real printer does not. Strange enough that printing that poscript
> > > file then works without problems...printing from Mozilla with
> > > "kprinter" as printer works too.
> > >
> > > That happens for weeks now, don't know what could be the reason though.
> >
> > I did some more testing:
> >
> > - printing from any KDE application to a PDF or Postscript file works ok.
> > - watching the PDF or PS file with gv or xpdf shows no problems
> > - watching the PDF with kghostview seems ok
> > - watching the PS file with kghostview gives the same error message
> > as I mentioned in my original mail:
> >
> > ESP Ghostscript 7.05.3: Unrecoverable error, exit code 1
> > Error: /invalidfileaccess in --.libfile--
> > Operand stack:
> > Helvetica-Uni-00 --nostringval-- --nostringval-- Helvetica
> > Helvetica Font Helvetica 514249 Helvetica --nostringval--
> > Helvetica NimbusSanL-Regu (/usr/X11R6/lib/X11/fonts/URW/n019003l.pfb)
>
> Ghostscripts security settings do not allow you to read /usr/X11R6/lib/X11/
> fonts/URW/n019003l.pfb
>
> I find that somewhat strange since that font seems to be accessed from .
> libfile (?) and I would expect that ghostscript takes the necassery actions
> to be able to read its own font files.
Thanks for the hint Waldo !
I looked into the kghostview sources and the attached patch fixes all
my kghostscript and print preview problems.
Maybe someone with enough expierience with gv might want to comment
and commit the right patch to CVS ?
Helge
-------------- next part --------------
Index: kgvdocument.cpp
===================================================================
RCS file: /home/kde/kdegraphics/kghostview/kgvdocument.cpp,v
retrieving revision 1.17
diff -u -p -r1.17 kgvdocument.cpp
--- kgvdocument.cpp 7 Aug 2003 11:53:15 -0000 1.17
+++ kgvdocument.cpp 12 Aug 2003 17:35:32 -0000
@@ -800,8 +800,7 @@ void Pdf2dsc::run( const QString& pdfNam
<< "-dQUIET"
<< QString( "-sPDFname=%1" ).arg( pdfName )
<< QString( "-sDSCname=%1" ).arg( dscName )
- << "-c"
- << "<< /PermitFileReading [ PDFname ] /PermitFileWriting [ DSCname ] /PermitFileControl [] >> setuserparams .locksafe"
+// << "-c" << "<< /PermitFileReading [ PDFname ] /PermitFileWriting [ DSCname ] /PermitFileControl [] >> setuserparams .locksafe"
<< "-f"
<< "pdf2dsc.ps"
<< "-c"
Index: kpswidget.cpp
===================================================================
RCS file: /home/kde/kdegraphics/kghostview/kpswidget.cpp,v
retrieving revision 1.123
diff -u -p -r1.123 kpswidget.cpp
--- kpswidget.cpp 7 Aug 2003 11:40:42 -0000 1.123
+++ kpswidget.cpp 12 Aug 2003 17:35:32 -0000
@@ -348,8 +348,8 @@ bool KPSWidget::startInterpreter()
if( _usePipe )
*_process <<
// The following two lines are their to ensure that we are allowed to read _fileName
- "-dDELAYSAFER" << "-sInputFile="+_fileName << "-c" <<
- "<< /PermitFileReading [ InputFile ] /PermitFileWriting [] /PermitFileControl [] >> setuserparams .locksafe" <<
+ "-dDELAYSAFER" << "-sInputFile="+_fileName <<
+// "-c" << "<< /PermitFileReading [ InputFile ] /PermitFileWriting [] /PermitFileControl [] >> setuserparams .locksafe" <<
"-";
else
*_process << _fileName << "-c" << "quit";
More information about the kde-core-devel
mailing list