1
0

ps2pdf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. .TH PS2PDF 1
  2. .SH NAME
  3. ps2pdf, pdf2ps \- convert between PostScript and PDF
  4. .SH SYNOPSIS
  5. .B ps2pdf
  6. [
  7. .I gs-options
  8. ]
  9. [
  10. .I input-file
  11. [
  12. .I output-file
  13. ]
  14. ]
  15. .PP
  16. .B pdf2ps
  17. [
  18. .B -e
  19. ]
  20. [
  21. .I gs-options
  22. ]
  23. [
  24. .I input-file
  25. [
  26. .I output-file
  27. ]
  28. ]
  29. .SH DESCRIPTION
  30. .I Ps2pdf
  31. and
  32. .I pdf2ps
  33. convert from PostScript to PDF and back by invoking
  34. .IR gs (1).
  35. If
  36. .I output-file
  37. is not specified, they write to standard output.
  38. If neither
  39. .I input-file
  40. nor
  41. .I output-file
  42. is not specified, they read from standard input and write to standard output.
  43. .PP
  44. Under
  45. .BR -e ,
  46. .I pdf2ps
  47. emits Encapsulated Postscript (eps).
  48. .PP
  49. The
  50. .I gs-options
  51. are passed to Ghostscript unaltered.
  52. The most useful option to
  53. .I ps2pdf
  54. is
  55. .BR -dCompatibilityLevel=\fIlevel ,
  56. which sets the version of PDF to be written.
  57. The default is
  58. .BR 1.2 ;
  59. .B 1.3
  60. and
  61. .B 1.4
  62. are also possible.
  63. Similarly, the most useful option to
  64. .I pdf2ps
  65. is
  66. .BR -dLanguageLevel=\fIlevel ,
  67. which sets the version of PostScript to be written.
  68. The default is
  69. .BR 2 ;
  70. .B 1
  71. and
  72. .B 3
  73. are also possible.
  74. .PP
  75. .I Ps2pdf
  76. produces output competitive with
  77. Adobe Distiller in most cases, and it
  78. accepts all the embedded PDF-generation hints that Adobe Distiller does.
  79. .PP
  80. .I Pdf2ps
  81. produces a PostScript file containing one large bitmap
  82. per page. For a more direct and smaller translation,
  83. use Adobe Acrobat's
  84. .B -toPostScript
  85. command-line option.
  86. .SH SOURCE
  87. .B /rc/bin/ps2pdf
  88. .br
  89. .B /rc/bin/pdf2ps
  90. .SH SEE ALSO
  91. .IR gs (1)
  92. .SH BUGS
  93. .IR Gs 's
  94. .I pdfwrite
  95. sometimes emits bad PDF at the default level 1.2.
  96. Adding
  97. .BR '-dCompatibilityLevel=1.4'
  98. should cure it.