Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-05-2002, 10:34 AM
|
#1
|
Member
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362
Rep:
|
converting documents to pdf
I have a file called Sindex.html that i would like to convert to a pdf file and make it viewable with xpdf... how do i do it?
|
|
|
02-05-2002, 12:50 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
ah come on man, try and find these things for yourself, it's cool...
easiest way i think is to load teh doc in a browser, print it to a ps file, and then use ps2pdf to convert it.
|
|
|
02-05-2002, 03:07 PM
|
#3
|
Member
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362
Original Poster
Rep:
|
[hseritt@chijtska store]$ ps2pdf perltutorial.html well, acid.... i gave it a whirl and this is what happened:
[chijtska@chijtska store]$ ps2pdf perltutorial.html perltutorial.pdf
Error: /syntaxerror in -file-
Operand stack:
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--
Dictionary stack:
--dict:1029/1476(ro)(G)-- --dict:0/20(G)-- --dict:83/200(L)--
Current allocation mode is local
Current file position is 1
GNU Ghostscript 6.51: Unrecoverable error, exit code 1
what do you think may have went wrong?
|
|
|
02-05-2002, 03:11 PM
|
#4
|
Member
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250
Rep:
|
You didn't print it to a postscript file first! You can't convert an html file to PDF using the ps2pdf command.
|
|
|
02-05-2002, 03:45 PM
|
#5
|
Member
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362
Original Poster
Rep:
|
oh duh...
sorry ... youre right...
|
|
|
02-05-2002, 05:30 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
emoticon to follow...
|
|
|
All times are GMT -5. The time now is 01:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|