Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67057 - pdf patch for fbgs in fbi1.31
Summary: pdf patch for fbgs in fbi1.31
Status: RESOLVED DUPLICATE of bug 61850
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-11 01:54 UTC by Jia Wang
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jia Wang 2004-10-11 01:54:24 UTC
fbgs script in fbi 1.31 faile to read pdf:


$fbgs ./UnicodeBookTOC.pdf

### rendering pages, please wait ... ###

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.
Processing pages 1 through 12.
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10
Page 11
Page 12

Oops: ghostscript wrote no pages?



I made a little change to this script to enable pdf reading.

$cat ./fbi-1.31-fbgs.patch
--- ./fbgs.orig 2004-02-22 19:51:11.000000000 +0800
+++ fbgs        2004-10-11 16:25:08.160454888 +0800
@@ -57,7 +57,7 @@
 echo -ne "\\007"
 
 # sanity check
-pages=`ls $DIR/ps*.jpeg 2>/dev/null | wc -l`
+pages=`ls $DIR/ps*.tiff 2>/dev/null | wc -l`
 if test "$pages" -eq "0"; then
        echo
        echo "Oops: ghostscript wrote no pages?"



Reproducible: Always
Steps to Reproduce:
1.emerge fbi ghostscript
2.fbgs ./UnicodeBookTOC

Actual Results:  

### rendering pages, please wait ... ###

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.
Processing pages 1 through 12.
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10
Page 11
Page 12

Oops: ghostscript wrote no pages?




Expected Results:  
Open the pdf file and display it from fbconsole.

I think there are something wrong in the dealing of gs's output.
A little patch was put above.
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-10-24 17:03:17 UTC

*** This bug has been marked as a duplicate of 61850 ***