LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 11-29-2011, 11:47 AM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711
Convert info files to PDF


How to convert GNU info files to PDF? They are often really large and it would be nice to be able to read them in a GUI document viewer. I would like to create something similar to this, which I created for man pages:

Code:
#!/bin/bash

filename=/tmp/man-okular-$USER-$$-$RANDOM.ps

man -Tps $@ > "$filename"
okular "$filename"
rm "$filename"
 
Old 11-29-2011, 04:09 PM   #2
andywebsdale
Member
 
Registered: Jan 2005
Location: Lewisham,London,UK
Distribution: Debian Wheezy AMD64
Posts: 87
Blog Entries: 2

Rep: Reputation: 23
There's info2html, then you could either view them in a browser, or it should be easy to do html=>pdf
Also there's info -o --output=FILENAME which outputs to a text file (from the man page)

Last edited by andywebsdale; 11-29-2011 at 04:12 PM.
 
Old 11-29-2011, 04:19 PM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711
I don't have a command called "info2html" installed, and I don't get any results when I try "pacman -Ss info2tml". Is it part of a larger package containing multiple commands?

Also, what tool do I use to convert HTML to PDF? Note that it would be nice if it would preserve the tree structure of the document so that I can use the table of contents feature of most PDF viewers. Will converting info->HTML->PDF perserve it?
 
Old 11-29-2011, 06:56 PM   #4
andywebsdale
Member
 
Registered: Jan 2005
Location: Lewisham,London,UK
Distribution: Debian Wheezy AMD64
Posts: 87
Blog Entries: 2

Rep: Reputation: 23
Sorry, I didn't take note of the distro you're using. Here's a link to info2html's Sourceforge page . Its a perl script so should be OK on your system. As far as html=>pdf goes, I see there's an Arch package called wkhtmltopdf for example, & you probably could use Libre Office or similar to read html & output pdf.
Its quite cool though in a browser, you can navigate through the index (of man as well, with man2html) & I'm using apache to serve the pages. You get a main contents page with a search & lookup box. I'm not running the info version ATM, just man2html, but its similar.
There is the "info -o --output=FILENAME" command as well, which has text output
 
Old 11-30-2011, 09:18 AM   #5
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 828

Rep: Reputation: 87
Hmm, seems like I remember doing that with OpenOffice.org. Just use the drop down menu and export to PDF. In my distro I think the extension for OpenOffice.org is openoffice.org-extendedPDF.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert multiple jpg files into pdf Brocolli Linux - Software 5 05-08-2013 09:43 AM
How to convert .info to .pdf? huweiming268 Linux - Software 2 09-19-2012 10:09 PM
PDF Convert/ Split to files alaios Linux - Software 3 06-14-2010 06:05 AM
LXer: How to convert PDF files to HTML or XML files in openSUSE LXer Syndicated Linux News 0 08-20-2008 08:40 AM
Convert OOo files to pdf format LinuxLala Linux - Software 5 08-19-2004 12:32 PM


All times are GMT -5. The time now is 11:40 PM.

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
Open Source Consulting | Domain Registration