If I try to see a pdf with kghostview, nothing will be displayed. I finally 
find why. pdf2dsc seems to have problems


[will@bastard will]$ pdf2dsc --help
Error: /undefinedfilename in --file--
Operand stack:
   PDFfile   (--help)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   
%oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--   
--nostringval--   --nostringval--
Dictionary stack:
   --dict:1051/1123(ro)(G)--   --dict:0/20(G)--   --dict:68/200(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 1916
ESP Ghostscript 7.05.4: Unrecoverable error, exit code 1

+ when I launch kghostview :

Xlib:  extension "GLX" missing on display ":0.0".
fcntl: Bad file descriptor
fcntl: Bad file descriptor
kio (KDirWatch): Can't use FAM (fam daemon not running?)
kio (KDirWatch): Available methods: Stat
kghostview (kdegraphics): KGVConfigDialog::readSettings
kghostview (kdegraphics): KPSWidget::setupWidget()
kparts: MainWindow::createGUI for kgvpart
kghostview (kdegraphics): KGVRun::foundMimeType( application/pdf )
kghostview (kdegraphics): KGVPart::slotMimetype: type=application/pdf
kghostview (kdegraphics): KGVMiniWidget::openFile
kghostview (kdegraphics): Pdf2dsc: started
kghostview (kdegraphics): Pdf2dsc: process exited
kghostview (kdegraphics): KGVMiniWidget::openPDFFileContinue
kghostview (kdegraphics): KGVMiniWidget::openPSFile
kghostview (kdegraphics): KGVMiniWidget::showPage( 0 )
kghostview (kdegraphics): KGVMiniWidget::orientation( 0 )
kghostview (kdegraphics): KGVMiniWidget::computePageSize( y792x612 )
kghostview (kdegraphics): KPSWidget::setupWidget()
kghostview (kdegraphics): KPSWidget: starting interpreter
kghostview (kdegraphics): KPSWidget: sendPS
kghostview (kdegraphics): KPSWidget: gs_input
kghostview (kdegraphics): KPSWidget: sendPS
kghostview (kdegraphics): KPSWidget: sendPS
kio (KDirWatch): Added File /home/will/Documents/1305ws1_file.pdf 
[KDirWatch-1]
kio (KDirWatch): Global Poll Freq is now 500 msec
kio (KDirWatch):  Started Polling Timer, freq 500
kio (KDirWatch):  Setup Stat (freq 500) for 
/home/will/Documents/1305ws1_file.pdf
kio (KDirWatch): KDirWatch-1 stopped scanning 
/home/will/Documents/1305ws1_file.pdf (now 0 watchers)
kghostview (kdegraphics): KPSWidget: gs_input
kghostview (kdegraphics): KPSWidget: gs_input
kghostview (kdegraphics): KPSWidget: gs_input
kghostview (kdegraphics): KPSWidget: received output
kghostview (kdegraphics): KPSWidget: received output
kghostview (kdegraphics): KPSWidget: received output
kghostview (kdegraphics): KPSWidget: process exited
kghostview (kdegraphics): KGVMiniWidget::showPage( 1 )
kghostview (kdegraphics): KGVMiniWidget::orientation( 1 )
kghostview (kdegraphics): KGVMiniWidget::computePageSize( y792x612 )
kghostview (kdegraphics): KGVMiniWidget::showPage( 2 )
kghostview (kdegraphics): KGVMiniWidget::orientation( 2 )
kghostview (kdegraphics): KGVMiniWidget::computePageSize( y792x612 )
kghostview (kdegraphics): KGVMiniWidget::showPage( 0 )
kghostview (kdegraphics): KGVMiniWidget::orientation( 0 )
kghostview (kdegraphics): KGVMiniWidget::computePageSize( y792x612 )


-- 
Localise input and output in subroutines.
            - The Elements of Programming Style (Kernighan & Plaugher)


Reply via email to