게시물 1,376건
   
Linux MAN 페이지 PDF 파일변환
글쓴이 : 최고관리자 날짜 : 2009-12-16 (수) 13:39 조회 : 12417
글주소 :
iptables-man.pdf (61.6K), Down : 23, 2009-12-16 13:39:48
                                

ps2pdf 를 이용하여, man page 를 pdf 파일로 만들 수 있다.
ps2pdf 스크립트는 Postscript파일을 PDF(Portable Document Format)파일로 변환 해준다.


IPTABLES 명령어의 메뉴얼 페이지를 pdf파일로 만들기 위해서는

[root@mojily ]# man -t iptables | ps2pdf - > iptables-man.pdf

man 명령의 t 옵션은 groff -mandoc의 형식으로 stdout을 하게 된다.
그 출력을 파이프로 입력을 받아 ps2pdf 스크립트로 실행을 한뒤 man_grep.pdf 파일로 출력을 하도록 한다.

PS2PDF(1)                         Ghostscript                        PS2PDF(1)

NAME
       ps2pdf - Convert Postscript to PDF using ghostscript
       ps2pdf12 - Convert Postscript to PDF 1.2 (Acrobat 3-and-later compatible) using ghostscript
       ps2pdf13 - Convert Postscript to PDF 1.3 (Acrobat 4-and-later compatible) using ghostscript

SYNOPSIS
       ps2pdf  [options...] {input.[e]ps|-} [output.pdf|-]
       ps2pdf12  [options...] {input.[e]ps|-} [output.pdf|-]
       ps2pdf13  [options...] {input.[e]ps|-} [output.pdf|-]

DEscRIPTION
       The  ps2pdf scripts are work-alikes for nearly all the functionality (but not the user interface) of Adobe’s Acro-
       bat(TM) Distiller(TM) product: they convert Postscript files to Portable Document Format (PDF) files.

       The three scripts differ as follows:

       -      ps2pdf12 will always produce PDF 1.2 output (Acrobat 3-and-later compatible).

       -      ps2pdf13 will always produce PDF 1.3 output (Acrobat 4-and-later compatible).

       -      ps2pdf per se currently produces PDF 1.2 output (Acrobat 3-and-later compatible). However, this may  change
              in  the  future.  If you care about the compatibility level of the output, use ps2pdf12 or ps2pdf13, or use
              the -dCompatibility=1.x switch in the command line.

       There are some limitations in ps2pdf’s conversion. See the HTML documentation for more information.

SEE ALSO
       gs(1), ps2pdfwr(1),
       Ps2pdf.htm in the Ghostscript documentation

VERSION
       This document was last revised for Ghostscript version 8.15.

AUTHOR
       artofcode LLC and Artifex Software, bug-gs at ghostscript.com, are the primary maintainers of  Ghostscript.   This
       manpage by George Ferguson.

8.15                           22 September 2004                     PS2PDF(1)

ps2pdf 명령어를 통해 만든 pdf 파일문서로 첨부한다.

[이 게시물은 최고관리자님에 의해 2010-01-05 09:08:12 기타에서 이동 됨]

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.