LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 02-05-2002, 10:34 AM   #1
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Rep: Reputation: 30
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?
 
Old 02-05-2002, 12:50 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 02-05-2002, 03:07 PM   #3
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
[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?
 
Old 02-05-2002, 03:11 PM   #4
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
You didn't print it to a postscript file first! You can't convert an html file to PDF using the ps2pdf command.
 
Old 02-05-2002, 03:45 PM   #5
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
oh duh...

sorry ... youre right...
 
Old 02-05-2002, 05:30 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
emoticon to follow...

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make PDF documents smaller (In file size)? vdemuth Linux - Software 7 11-05-2011 09:39 AM
cups not printing pdf documents javeree Linux - Software 0 12-07-2004 05:55 PM
pdf documents with wrong mimetype captainfreedom Linux - Software 0 11-13-2004 05:05 PM
searching content of pdf documents bran Linux - Software 3 10-08-2004 07:35 AM
Converting pdf to Html linuxeagle Linux - General 1 04-23-2004 08:03 AM


All times are GMT -5. The time now is 11:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration