Linux Reality - podcasts for new linux users

Home  

 


  Create an account

Search


[x]  
 
 [x]
Categories Menu
· All Categories
· Commands
· Distro News
· General
· Link of the Week
· Linux Jobs
· Security
· Software
· Tips

 
Navigation
 
User Info
Welcome, Anonymous

Username:
Password:

(Register)

Membership:
Latest: hiobgiou
New Today: 0
New Yesterday: 0
Overall: 225

People Online:
Visitors: 3
Members: 0
Total: 3

 
hacker Beware
You have been warned!
We have caught 1459 shameful hackers.

NukeSentinel(tm) 2.5.14

 
Hot Downloads
 
  
Maysville Linux Users Group (MLUG) - Linux Users Helping Linux Users: Forums

MLUG :: View topic - fix for konqueror fontmap error when printing to pdf
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


fix for konqueror fontmap error when printing to pdf

 
Post new topic   Reply to topic    MLUG Forum Index -> Tips & Tricks
View previous topic :: View next topic  
Author Message
ewiget
Site Admin
Site Admin


Joined: Aug 13, 2004
Posts: 335
Location: Maysville, KY

PostPosted: Sun Feb 05, 2006 4:57 am    Post subject: fix for konqueror fontmap error when printing to pdf Reply with quote

When trying to print to pdf today from konqueror web browser, I was receiving an error about - Fontmap entry for ends prematurely! Giving up.

Taking a closer look at this, it indicates that the ghostscript Fontmap file is in some way damage, or a font is damaged.

You can get a little more detail about the error by manually starting ghostscript with the -DDEBUG option:
Code:
laptop ~ # gs -DDEBUG
START 0 1414672 116428 1421640 132248 true 469 3 <0>
ESP Ghostscript 7.07 (2003-07-12)
Copyright 2003 artofcode LLC and Easy Software Products, all rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
END PROCS 0 1414672 128585 1421640 133616 true 581 3 <0>
gs_std_e.ps 0 1454864 141922 1421640 134992 true 589 3 <0>
gs_il1_e.ps 0 1454864 144646 1421640 134992 true 590 3 <0>
END FONTDIR/ENCS 10 1454864 144798 1421640 134992 true 592 3 <0>
END DEVS 10 1456544 162664 1421640 134992 true 596 3 <0>
END STATD 10 1476640 173066 1421640 136604 true 600 3 <0>
END GS_FONTS 10 1496736 194175 1421640 136604 true 643 3 <0>
gs_type1.ps 10 1496736 197730 1421640 136604 true 659 3 <0>
gs_dps1.ps 10 1496736 199582 1421640 136604 true 661 3 <0>
gs_lev2.ps 20 1536928 221670 1517296 232656 true 668 3 <0>
BEGIN RESOURCES 20 1536928 223816 1517296 232656 true 668 4 <1>
END CATEGORY 20 1536928 225286 1517296 232812 true 669 5 <1>
END GENERIC 20 1536928 228484 1517296 232812 true 669 4 <1>
END FIXED 20 1536928 233815 1517296 232812 true 669 4 <1>
END MISC 20 1536928 238225 1517296 232812 true 669 4 <1>
END ENCODING 20 1557024 243405 1517296 232812 true 669 4 <1>
gs_res.ps 20 1557024 243551 1517296 232812 true 673 3 <0>
gs_typ42.ps 20 1557024 243870 1517296 232812 true 676 3 <0>
./CIDFnmap 30 1557024 251772 1517296 232812 true 835 4 <3>
/usr/share/ghostscript/7.07/lib/CIDFnmap 30 1557024 251821 1517296 232812 true 835 4 <3>
/usr/share/fonts/default/ghostscript/CIDFnmap 30 1557024 251874 1517296 232812 true 835 4 <3>
/usr/share/fonts/CIDFnmap 30 1557024 251908 1517296 232812 true 835 4 <3>
/usr/share/fonts/ttf/zh_TW/CIDFnmap 30 1557024 251952 1517296 232812 true 835 4 <3>
/usr/share/fonts/ttf/zh_CN/CIDFnmap 30 1557024 251996 1517296 232812 true 835 4 <3>
/usr/share/fonts/arphicfonts/CIDFnmap 30 1557024 252042 1517296 232812 true 835 4 <3>
/usr/share/fonts/ttf/korean/baekmuk/CIDFnmap 30 1557024 252095 1517296 232812 true 835 4 <3>
/usr/share/fonts/baekmuk-fonts/CIDFnmap 30 1557024 252143 1517296 232812 true 835 4 <3>
/usr/X11R6/lib/X11/fonts/truetype/CIDFnmap 30 1557024 252194 1517296 232812 true 835 4 <3>
/usr/share/fonts/kochi-substitute/CIDFnmap 30 1557024 252245 1517296 232812 true 835 4 <3>
gs_cidfn.ps 30 1557024 252162 1517296 232812 true 701 3 <0>
gs_cidcm.ps 30 1577120 261351 1517296 232812 true 701 3 <0>
gs_cmap.ps 30 1577120 270522 1517296 232812 true 705 3 <0>
gs_btokn.ps 30 1577120 273493 1517296 232812 true 706 3 <0>
gs_dps2.ps 30 1577120 275936 1517296 232812 true 707 3 <0>
gs_setpd.ps 30 1577120 283328 1517296 232812 true 707 3 <0>
gs_typ32.ps 30 1597216 287753 1517296 232812 true 705 3 <0>
gs_frsd.ps 40 1597216 288446 1517296 232812 true 705 3 <0>
gs_ll3.ps 70 1597216 299839 1602852 319126 true 706 3 <0>
gs_mex_e.ps 70 1597216 305195 1602852 319126 true 706 3 <0>
gs_mro_e.ps 70 1597216 305856 1602852 319126 true 706 3 <0>
gs_pdf_e.ps 70 1597216 306525 1602852 319126 true 706 3 <0>
gs_wan_e.ps 70 1597216 307167 1602852 319126 true 706 3 <0>
pdf_ops.ps 70 1637408 321312 1602852 319126 true 706 3 <0>
gs_l2img.ps 80 1637408 323045 1602852 319126 true 709 3 <0>
pdf_base.ps 80 1637408 333624 1602852 319126 true 908 4 <0>
pdf_draw.ps 80 1657504 353903 1602852 319126 true 908 4 <0>
pdf_font.ps 80 1677600 375201 1602852 319126 true 908 4 <0>
pdf_main.ps 80 1717792 401799 1602852 319126 true 910 4 <0>
pdf_sec.ps 90 1717792 404653 1602852 319126 true 910 4 <0>
gs_css_e.ps 90 1717792 405526 1602852 319126 true 910 4 <0>
gs_cff.ps 90 1737888 422034 1602852 319126 true 912 4 <0>
gs_mgl_e.ps 90 1737888 422784 1602852 319126 true 912 4 <0>
gs_agl.ps 100 1754412 454313 1602852 319126 true 913 4 <0>
gs_ttf.ps 100 1831224 513132 1602852 319126 true 964 4 <0>
gs_icc.ps 100 1831224 514014 1602852 320688 true 964 4 <0>
gs_dps.ps 100 1831224 515392 1602852 320688 true 977 4 <0>
gs_dpnxt.ps 100 1831224 519202 1602852 320688 true 993 4 <0>
gs_epsf.ps 100 1831224 519696 1602852 320688 true 995 4 <0>
gs_pdfwr.ps 100 1877616 562680 1602852 320688 true 1019 4 <0>
gs_lgo_e.ps 100 1877616 563412 1602852 320688 true 1019 4 <0>
gs_lgx_e.ps 100 1877616 563695 1602852 320688 true 1019 4 <0>
dmp_init.ps 110 1912208 590709 1622948 334454 true 1019 4 <0>
END INITFILES 110 1912208 594068 1622948 334454 true 1046 4 <0>
./Fontmap 110 1912208 595575 1622948 335248 true 1047 4 <1>
/usr/share/ghostscript/7.07/lib/Fontmap 110 1912208 595622 1622948 335248 true 1047 4 <1>
Fontmap entry for  ends prematurely!  Giving up.


If you notice, it gives the location of the Fontmap file near the end:
/usr/share/ghostscript/7.07/lib/Fontmap

You can open the above file in a text editor, I used vi:

Code:
^@^@^A^@%!
% See Fontmap.GS for the syntax of real Fontmap files.
(/etc/fonts/Fontmap) .runlibfile
(Fontmap.X11-auto) .runlibfile
(Fontmap.GS) .runlibfile
(Fontmap.kanji) .runlibfile
(Fontmap.rus) .runlibfile
(Fontmap.CID) .runlibfile
(Fontmap.greek) .runlibfile
^@
~


You can manually comment out each line by adding a % to the beginning of it. If you look at the code above, the second line is a comment in the same fashion as using a # in a bash script.

To fix the problem, start by commenting out the first line and restarting ghostscript with the debug option.

Here is the modified file when I commented out the first line:
Code:
%^@^@^A^@%!
% See Fontmap.GS for the syntax of real Fontmap files.
(/etc/fonts/Fontmap) .runlibfile
(Fontmap.X11-auto) .runlibfile
(Fontmap.GS) .runlibfile
(Fontmap.kanji) .runlibfile
(Fontmap.rus) .runlibfile
(Fontmap.CID) .runlibfile
(Fontmap.greek) .runlibfile
^@
~


Then I restart ghostscript with the debug option again:
Code:
laptop ~ # gs -DDEBUG
START 0 1414672 116428 1421640 132248 true 469 3 <0>
ESP Ghostscript 7.07 (2003-07-12)
Copyright 2003 artofcode LLC and Easy Software Products, all rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
END PROCS 0 1414672 128585 1421640 133616 true 581 3 <0>
gs_std_e.ps 0 1454864 141922 1421640 134992 true 589 3 <0>
gs_il1_e.ps 0 1454864 144646 1421640 134992 true 590 3 <0>
END FONTDIR/ENCS 0 1454864 144798 1421640 134992 true 592 3 <0>
END DEVS 10 1456544 162664 1421640 134992 true 596 3 <0>
END STATD 10 1476640 173066 1421640 136604 true 600 3 <0>
END GS_FONTS 10 1496736 194175 1421640 136604 true 643 3 <0>
gs_type1.ps 10 1496736 197730 1421640 136604 true 659 3 <0>
gs_dps1.ps 10 1496736 199582 1421640 136604 true 661 3 <0>
gs_lev2.ps 20 1536928 221670 1517296 232656 true 668 3 <0>
BEGIN RESOURCES 20 1536928 223816 1517296 232656 true 668 4 <1>
END CATEGORY 20 1536928 225286 1517296 232812 true 669 5 <1>
END GENERIC 20 1536928 228484 1517296 232812 true 669 4 <1>
END FIXED 30 1536928 233815 1517296 232812 true 669 4 <1>
END MISC 30 1536928 238225 1517296 232812 true 669 4 <1>
END ENCODING 30 1557024 243405 1517296 232812 true 669 4 <1>
gs_res.ps 40 1557024 243551 1517296 232812 true 673 3 <0>
gs_typ42.ps 40 1557024 243870 1517296 232812 true 676 3 <0>
./CIDFnmap 40 1557024 251772 1517296 232812 true 835 4 <3>
/usr/share/ghostscript/7.07/lib/CIDFnmap 40 1557024 251821 1517296 232812 true 835 4 <3>
/usr/share/fonts/default/ghostscript/CIDFnmap 40 1557024 251874 1517296 232812 true 835 4 <3>
/usr/share/fonts/CIDFnmap 40 1557024 251908 1517296 232812 true 835 4 <3>
/usr/share/fonts/ttf/zh_TW/CIDFnmap 40 1557024 251952 1517296 232812 true 835 4 <3>
/usr/share/fonts/ttf/zh_CN/CIDFnmap 40 1557024 251996 1517296 232812 true 835 4 <3>
/usr/share/fonts/arphicfonts/CIDFnmap 40 1557024 252042 1517296 232812 true 835 4 <3>
/usr/share/fonts/ttf/korean/baekmuk/CIDFnmap 50 1557024 252095 1517296 232812 true 835 4 <3>
/usr/share/fonts/baekmuk-fonts/CIDFnmap 50 1557024 252143 1517296 232812 true 835 4 <3>
/usr/X11R6/lib/X11/fonts/truetype/CIDFnmap 50 1557024 252194 1517296 232812 true 835 4 <3>
/usr/share/fonts/kochi-substitute/CIDFnmap 50 1557024 252245 1517296 232812 true 835 4 <3>
gs_cidfn.ps 50 1557024 252162 1517296 232812 true 701 3 <0>
gs_cidcm.ps 50 1577120 261351 1517296 232812 true 701 3 <0>
gs_cmap.ps 60 1577120 270522 1517296 232812 true 705 3 <0>
gs_btokn.ps 60 1577120 273493 1517296 232812 true 706 3 <0>
gs_dps2.ps 60 1577120 275936 1517296 232812 true 707 3 <0>
gs_setpd.ps 60 1577120 283328 1517296 232812 true 707 3 <0>
gs_typ32.ps 60 1597216 287753 1517296 232812 true 705 3 <0>
gs_frsd.ps 60 1597216 288446 1517296 232812 true 705 3 <0>
gs_ll3.ps 80 1597216 299839 1602852 319126 true 706 3 <0>
gs_mex_e.ps 80 1597216 305195 1602852 319126 true 706 3 <0>
gs_mro_e.ps 80 1597216 305856 1602852 319126 true 706 3 <0>
gs_pdf_e.ps 80 1597216 306525 1602852 319126 true 706 3 <0>
gs_wan_e.ps 80 1597216 307167 1602852 319126 true 706 3 <0>
pdf_ops.ps 80 1637408 321312 1602852 319126 true 706 3 <0>
gs_l2img.ps 90 1637408 323045 1602852 319126 true 709 3 <0>
pdf_base.ps 90 1637408 333624 1602852 319126 true 908 4 <0>
pdf_draw.ps 90 1657504 353903 1602852 319126 true 908 4 <0>
pdf_font.ps 100 1677600 375201 1602852 319126 true 908 4 <0>
pdf_main.ps 100 1717792 401799 1602852 319126 true 910 4 <0>
pdf_sec.ps 100 1717792 404653 1602852 319126 true 910 4 <0>
gs_css_e.ps 100 1717792 405526 1602852 319126 true 910 4 <0>
gs_cff.ps 110 1737888 422034 1602852 319126 true 912 4 <0>
gs_mgl_e.ps 110 1737888 422784 1602852 319126 true 912 4 <0>
gs_agl.ps 120 1754412 454313 1602852 319126 true 913 4 <0>
gs_ttf.ps 120 1831224 513132 1602852 319126 true 964 4 <0>
gs_icc.ps 120 1831224 514014 1602852 320688 true 964 4 <0>
gs_dps.ps 120 1831224 515392 1602852 320688 true 977 4 <0>
gs_dpnxt.ps 120 1831224 519202 1602852 320688 true 993 4 <0>
gs_epsf.ps 120 1831224 519696 1602852 320688 true 995 4 <0>
gs_pdfwr.ps 120 1877616 562680 1602852 320688 true 1019 4 <0>
gs_lgo_e.ps 120 1877616 563412 1602852 320688 true 1019 4 <0>
gs_lgx_e.ps 120 1877616 563695 1602852 320688 true 1019 4 <0>
dmp_init.ps 120 1912208 590709 1622948 334454 true 1019 4 <0>
END INITFILES 120 1912208 594068 1622948 334454 true 1046 4 <0>
./Fontmap 120 1912208 595575 1622948 335248 true 1047 4 <1>
/usr/share/ghostscript/7.07/lib/Fontmap 120 1912208 595622 1622948 335248 true 1047 4 <1>
/usr/share/fonts/default/ghostscript/Fontmap 130 2089640 691670 1622948 335248 true 1047 4 <1>
/usr/share/fonts/Fontmap 130 2089640 691702 1622948 335248 true 1047 4 <1>
/usr/share/fonts/ttf/zh_TW/Fontmap 130 2089640 691744 1622948 335248 true 1047 4 <1>
/usr/share/fonts/ttf/zh_CN/Fontmap 130 2089640 691786 1622948 335248 true 1047 4 <1>
/usr/share/fonts/arphicfonts/Fontmap 130 2089640 691830 1622948 335248 true 1047 4 <1>
/usr/share/fonts/ttf/korean/baekmuk/Fontmap 130 2089640 691881 1622948 335248 true 1047 4 <1>
/usr/share/fonts/baekmuk-fonts/Fontmap 130 2089640 691927 1622948 335248 true 1047 4 <1>
/usr/X11R6/lib/X11/fonts/truetype/Fontmap 130 2089640 691976 1622948 335248 true 1047 4 <1>
/usr/share/fonts/kochi-substitute/Fontmap 130 2089640 692025 1622948 335248 true 1047 4 <1>
END FONTS 140 2089640 692066 1622948 335248 true 1047 4 <0>
END DEVICE 140 2109736 705089 1622424 334724 true 1047 4 <0>
END CONFIG 140 2109736 705199 1622424 334724 true 1047 4 <0>
END INIT 140 2109736 712877 1622424 336976 true 1060 4 <0>
END GLOBAL 140 2129832 719689 1622424 337382 false 1059 4 <0>
END GC 150 2113168 684858 1622424 326318 false 1048 3 <0>
GS>


Problem was solved and now printing to a pdf file in konqueror also works fine now.
_________________
Ed Wiget
RHP Studios
Keeping Your Data Safe!
606-759-1175
http://www.rhpstudios.com
http://www.xtremewebhosts.com
http://www.edwiget.name
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=162711
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    MLUG Forum Index -> Tips & Tricks All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group
Forums ©

 
All content Copyright 2000 - 2008, Maysville Linux Users Group unless otherwise credited.
All Rights Reserved!
The opinions expressed by visitors to this web site are their own and not necessarily the opinions of the MLUG!


Web site powered by PHP-Nuke Web site powered by PHP-Nuke-NIP-76.0

You can syndicate our news using the file backend.php or ultramode.txt