Unix Technical Forum

PDF creation in Unix

This is a discussion on PDF creation in Unix within the Sco Unix forums, part of the Unix Operating Systems category; --> pablo hernandez typed (on Thu, Apr 07, 2005 at 03:14:04PM -0700): | "willjay" <willjay@excite.com> wrote in message news:<qMb5e.31515$vL3.2465@bignews4.bellsouth.net> ... ...


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #21 (permalink)  
Old 02-15-2008, 04:53 PM
Jean-Pierre Radley
 
Posts: n/a
Default Re: PDF creation in Unix

pablo hernandez typed (on Thu, Apr 07, 2005 at 03:14:04PM -0700):
| "willjay" <willjay@excite.com> wrote in message news:<qMb5e.31515$vL3.2465@bignews4.bellsouth.net> ...
| > "Michel Donais" <donais@gsig-net.qc.ca> wrote in message
| > news:rom3e.55$5u4.499@nnrp1.uunet.ca...
| > > > > > I am interested in any PDF creation software for Unix.
| > > > > > I have OS5.0.7.
| > > I do it for Hylafax with Sco 5.0.4
| > >
| > > The output is from a PCL printer or read a file
| > > cat outfile$ | /tmp/fax3 $PHONE $SERVER $SENDER 2>/dev/null
| > >
| > > My script: fax3
| > > ---------------------------cut here ---------------------
| > > #!/bin/sh
| > > PHONE=$1
| > > SERVER=$2
| > > SENDER=$3
| > > cat $4 > /tmp/temp.$$
| > > # /usr/local/bin/pcl2ps /tmp/temp2.$$ /tmp/temp3.$$
| > > /usr/local/bin/pcl2pdf /tmp/temp2.$$ /tmp/temp3.$$
| > >
| > > # sent to fax
| > > /usr/local/bin/sendfax -m -n -d $PHONE -h $SERVER -D $SENDER /tmp/temp3.$$
| > > 1>/dev/null
| > >
| > > rm -f /tmp/temp.$$
| > > rm -f /tmp/temp2.$$
| > > rm -f /tmp/temp3.$$
| > > exit 0
| > > ------------------------------------end cut ---------------------------
| > >
| > > I do it using ghostscript found at
| > > ftp://ftp2.sco.com/pub/skunkware/osr...-6.51-VOLS.tar
| > >
| > > and ghostpcl already build under SCO 5.0.7 by Brian K. White
| > > http://www.aljex.com/bkw/sco/ghostpcl.tar.bz2
| > >
| > > Michel
| > >
| > >
| >
| > I am getting the following error using the ghostpcl program.
| >
| > Anyone have a clue?
| >
| >
| > # pcl2pdf 1a.pcl 1a.pdf
| > dynamic linker : pcl6 : error opening /usr/lib/libm.so.1
| > Killed
| > # l /usr/lib/libm.so.1
| > l: /usr/lib/libm.so.1 not found: No such file or directory (error 2)
|
| some sources of ghostscript creates this and other files in /usr/local/lib

Nonsense! No version of ghostscript creates a shared math libarary.

| try to found if it is here , and copy to /usr/lib
|
| if not execute : "find / -name libm.so.1"
| and you 'll know where this file is , the copy a set permissions
|
| hope it helps

--
JP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 02-15-2008, 04:53 PM
willjay
 
Posts: n/a
Default Re: PDF creation in Unix


"Jean-Pierre Radley" <jpr@jpr.com> wrote in message
news:20050407191627.GI10462@jpradley.jpr.com...
> willjay typed (on Thu, Apr 07, 2005 at 10:50:49AM -0400):
> |
> | "Michel Donais" <donais@gsig-net.qc.ca> wrote in message
> | news:rom3e.55$5u4.499@nnrp1.uunet.ca...
> | > > > > I am interested in any PDF creation software for Unix.
> | > > > > I have OS5.0.7.
> | > I do it for Hylafax with Sco 5.0.4
> | >
> | > The output is from a PCL printer or read a file
> | > cat outfile$ | /tmp/fax3 $PHONE $SERVER $SENDER 2>/dev/null
> | >
> | > My script: fax3
> | > ---------------------------cut here ---------------------
> | > #!/bin/sh
> | > PHONE=$1
> | > SERVER=$2
> | > SENDER=$3
> | > cat $4 > /tmp/temp.$$
> | > # /usr/local/bin/pcl2ps /tmp/temp2.$$ /tmp/temp3.$$
> | > /usr/local/bin/pcl2pdf /tmp/temp2.$$ /tmp/temp3.$$
> | >
> | > # sent to fax
> | > /usr/local/bin/sendfax -m -n -d $PHONE -h $SERVER -D $SENDER

/tmp/temp3.$$
> | > 1>/dev/null
> | >
> | > rm -f /tmp/temp.$$
> | > rm -f /tmp/temp2.$$
> | > rm -f /tmp/temp3.$$
> | > exit 0
> | > ------------------------------------end

cut ---------------------------
> | >
> | > I do it using ghostscript found at
> | > ftp://ftp2.sco.com/pub/skunkware/osr...-6.51-VOLS.tar
> | >
> | > and ghostpcl already build under SCO 5.0.7 by Brian K. White
> | > http://www.aljex.com/bkw/sco/ghostpcl.tar.bz2
> | >
> | > Michel
> | >
> | >
> |
> | I am getting the following error using the ghostpcl program.
> |
> | Anyone have a clue?
> |
> |
> | # pcl2pdf 1a.pcl 1a.pdf
> | dynamic linker : pcl6 : error opening /usr/lib/libm.so.1
> | Killed
> | # l /usr/lib/libm.so.1
> | l: /usr/lib/libm.so.1 not found: No such file or directory (error 2)
> |
>
> Did you install oss646c?
>
>
> --
> JP



I have now, and it worked.

Thanks,
wj


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 02-15-2008, 04:53 PM
willjay
 
Posts: n/a
Default Re: PDF creation in Unix


"Jean-Pierre Radley" <jpr@jpr.com> wrote in message
news:20050407191627.GI10462@jpradley.jpr.com...
> willjay typed (on Thu, Apr 07, 2005 at 10:50:49AM -0400):
>
> Did you install oss646c?
>
>
> --
> JP


I installed oss646c and that allows me to create the pdf file using pcl2pdf
however when I try to display the pdf file using ghostscript I get the
following error.

Help, again appreciated.

Thanks,
wj


# gs 1a.pdf
GNU Ghostscript 6.51 (2001-03-28)
Copyright (C) 2001 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file COPYING for details.
Processing pages 1 through 1082.
Page 1
Substituting .notdef for onehalf
Substituting .notdef for Thorn
Error: /undefined in --get--
Operand stack:
--dict:5/5(L)-- A 1 --dict:10/10(L)-- --dict:10/10(L)--
FontName --dict:10/10(L)-- Name
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 --nostringval-- 2 1 1082 --nostringval--
%for_pos_int_continue --nostringval-- --nostringval-- --nostringval--
--nostringval-- %array_continue --nostringval-- false
1 %stopped_push --nostringval--
%loop_continue --nostringval-- --nostringval-- --nostringval-- --nos
tringval-- --nostringval--
Dictionary stack:
--dict:983/1476(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)-- --dict
:70/200(L)-- --dict:96/127(ro)(G)-- --dict:207/230(ro)(G)-- --dict:19/
24(L)-- --dict:4/6(L)-- --dict:19/20(L)-- --dict:1/1
(ro)(G)-- --dict:5/8(L)-- --dict:7/8(L)-- --dict:8/8(L)--
Current allocation mode is local
GNU Ghostscript 6.51: Unrecoverable error, exit code 1


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 02-15-2008, 04:53 PM
brian@aljex.com
 
Posts: n/a
Default Re: PDF creation in Unix

> I installed oss646c and that allows me to create the pdf file using
pcl2pdf
> however when I try to display the pdf file using ghostscript I get

the
> following error.
> [snip]
> # gs 1a.pdf
> [snip]


This command almost garantees you didn't even look at "man gs", which
is more or less inexcusable.

gs is used for taking in post script or pdf data and putting out data
for a wide variety of printers and some other logical "devices" such as
some image file formats and X11 display.

To view gs's output on screen you really want GV which is a gui front
end that runs gs.
There is also ghostview but gv is generally better.

To view pdf's in particular, you don't even want gs & gv. It can do it,
but it's about the worst way to go. Use xpdf, or better yet just use
acrobat reader on your PC by using either your unix box's web server or
a file share provided by facetwin or samba.

In any event, to use gs at all for anything, it typically takes a
boatload of command line options, non of which you specified, so it's
no surprise that it didn't do anything useful.

I suggest you read:
http://www.cs.wisc.edu/~ghost/doc/gnu/6.53/Use.htm

Or, just say what you want to do, and the best way may have nothing to
do with gs.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 02-15-2008, 04:54 PM
Jean-Pierre Radley
 
Posts: n/a
Default Re: PDF creation in Unix

brian@aljex.com typed (on Fri, Apr 08, 2005 at 09:38:27AM -0700):
| > I installed oss646c and that allows me to create the pdf file using
| pcl2pdf
| > however when I try to display the pdf file using ghostscript I get
| the
| > following error.
| > [snip]
| > # gs 1a.pdf
| > [snip]
|
| This command almost garantees you didn't even look at "man gs", which
| is more or less inexcusable.
|
| gs is used for taking in post script or pdf data and putting out data
| for a wide variety of printers and some other logical "devices" such as
| some image file formats and X11 display.
|
| To view gs's output on screen you really want GV which is a gui front
| end that runs gs.
| There is also ghostview but gv is generally better.
|
| To view pdf's in particular, you don't even want gs & gv. It can do it,
| but it's about the worst way to go. Use xpdf, or better yet just use
| acrobat reader on your PC by using either your unix box's web server or
| a file share provided by facetwin or samba.
|
| In any event, to use gs at all for anything, it typically takes a
| boatload of command line options, non of which you specified, so it's
| no surprise that it didn't do anything useful.
|
| I suggest you read:
| http://www.cs.wisc.edu/~ghost/doc/gnu/6.53/Use.htm
|
| Or, just say what you want to do, and the best way may have nothing to
| do with gs.

Except, Brain, that I can readily render a pdf file to my X Window with
gs, no special options at all....


--
JP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 02-15-2008, 04:54 PM
Brian K. White
 
Posts: n/a
Default Re: PDF creation in Unix


----- Original Message -----
From: "Jean-Pierre Radley" <jpr@jpr.com>
Newsgroups: comp.unix.sco.misc
To: <distro@jpr.com>
Sent: Friday, April 08, 2005 7:20 PM
Subject: Re: PDF creation in Unix


> brian@aljex.com typed (on Fri, Apr 08, 2005 at 09:38:27AM -0700):
> | > I installed oss646c and that allows me to create the pdf file using
> | pcl2pdf
> | > however when I try to display the pdf file using ghostscript I get
> | the
> | > following error.
> | > [snip]
> | > # gs 1a.pdf
> | > [snip]
> |
> | This command almost garantees you didn't even look at "man gs", which
> | is more or less inexcusable.
> |
> | gs is used for taking in post script or pdf data and putting out data
> | for a wide variety of printers and some other logical "devices" such as
> | some image file formats and X11 display.
> |
> | To view gs's output on screen you really want GV which is a gui front
> | end that runs gs.
> | There is also ghostview but gv is generally better.
> |
> | To view pdf's in particular, you don't even want gs & gv. It can do it,
> | but it's about the worst way to go. Use xpdf, or better yet just use
> | acrobat reader on your PC by using either your unix box's web server or
> | a file share provided by facetwin or samba.
> |
> | In any event, to use gs at all for anything, it typically takes a
> | boatload of command line options, non of which you specified, so it's
> | no surprise that it didn't do anything useful.
> |
> | I suggest you read:
> | http://www.cs.wisc.edu/~ghost/doc/gnu/6.53/Use.htm
> |
> | Or, just say what you want to do, and the best way may have nothing to
> | do with gs.
>
> Except, Brain, that I can readily render a pdf file to my X Window with
> gs, no special options at all....


I really should clean my shoes more often.

Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 02-15-2008, 04:54 PM
Tony Lawrence
 
Posts: n/a
Default Re: PDF creation in Unix

Jean-Pierre Radley wrote:

> | To view pdf's in particular, you don't even want gs & gv. It can do it,
> | but it's about the worst way to go. Use xpdf, or better yet just use
> | acrobat reader on your PC by using either your unix box's web server or
> | a file share provided by facetwin or samba.



Or use Acrobat Reader on Linux. It's apparently much improved:
http://aplawrence.com/Blog2005/bruceg3.html

Just in case you didn't have one of those Windows thingies handy :-)

--
Tony Lawrence
Unix/Linux/Mac OS X resources: http://aplawrence.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 02-15-2008, 04:54 PM
willjay
 
Posts: n/a
Default Re: PDF creation in Unix


<brian@aljex.com> wrote in message
news:1112978307.815642.316700@z14g2000cwz.googlegr oups.com...
> > I installed oss646c and that allows me to create the pdf file using

> pcl2pdf
> > however when I try to display the pdf file using ghostscript I get

> the
> > following error.
> > [snip]
> > # gs 1a.pdf
> > [snip]

>
> This command almost garantees you didn't even look at "man gs", which
> is more or less inexcusable.
>
> gs is used for taking in post script or pdf data and putting out data
> for a wide variety of printers and some other logical "devices" such as
> some image file formats and X11 display.
>
> To view gs's output on screen you really want GV which is a gui front
> end that runs gs.
> There is also ghostview but gv is generally better.
>
> To view pdf's in particular, you don't even want gs & gv. It can do it,
> but it's about the worst way to go. Use xpdf, or better yet just use
> acrobat reader on your PC by using either your unix box's web server or
> a file share provided by facetwin or samba.
>
> In any event, to use gs at all for anything, it typically takes a
> boatload of command line options, non of which you specified, so it's
> no surprise that it didn't do anything useful.
>
> I suggest you read:
> http://www.cs.wisc.edu/~ghost/doc/gnu/6.53/Use.htm
>
> Or, just say what you want to do, and the best way may have nothing to
> do with gs.
>
>


I just re-installed gs and it all now works properly. I guess during your
anxious idiolations you didn't think of that!

Regards,
wj



Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 02-15-2008, 04:54 PM
Brian K. White
 
Posts: n/a
Default Re: PDF creation in Unix


----- Original Message -----
From: "willjay" <willjay@excite.com>
Newsgroups: comp.unix.sco.misc
To: <distro@jpr.com>
Sent: Monday, April 11, 2005 8:32 PM
Subject: Re: PDF creation in Unix


>
> <brian@aljex.com> wrote in message
> news:1112978307.815642.316700@z14g2000cwz.googlegr oups.com...
>> > I installed oss646c and that allows me to create the pdf file using

>> pcl2pdf
>> > however when I try to display the pdf file using ghostscript I get

>> the
>> > following error.
>> > [snip]
>> > # gs 1a.pdf
>> > [snip]

>>
>> This command almost garantees you didn't even look at "man gs", which
>> is more or less inexcusable.
>>
>> gs is used for taking in post script or pdf data and putting out data
>> for a wide variety of printers and some other logical "devices" such as
>> some image file formats and X11 display.
>>
>> To view gs's output on screen you really want GV which is a gui front
>> end that runs gs.
>> There is also ghostview but gv is generally better.
>>
>> To view pdf's in particular, you don't even want gs & gv. It can do it,
>> but it's about the worst way to go. Use xpdf, or better yet just use
>> acrobat reader on your PC by using either your unix box's web server or
>> a file share provided by facetwin or samba.
>>
>> In any event, to use gs at all for anything, it typically takes a
>> boatload of command line options, non of which you specified, so it's
>> no surprise that it didn't do anything useful.
>>
>> I suggest you read:
>> http://www.cs.wisc.edu/~ghost/doc/gnu/6.53/Use.htm
>>
>> Or, just say what you want to do, and the best way may have nothing to
>> do with gs.
>>
>>

>
> I just re-installed gs and it all now works properly. I guess during your
> anxious idiolations you didn't think of that!
>
> Regards,
> wj


Yes, I'd already acknowledged that my foot was in my mouth for another
reason anyways if you look back a post or two.
I generally don't talk about things I don't know about and thus, when I do
talk, I quite appropriately have the attitude of "I know. You listen."
But when I am wrong, I don't hide from it. My very first assertion above was
wrong, as pointed out so succinctly by JP.

Note: only that first statement was in any way negative. The rest is simple
help.


--
Brian K. White -- brian@aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com