poppler 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +7 -0
  2. data/README +35 -0
  3. data/Rakefile +75 -0
  4. data/ext/poppler/depend +6 -0
  5. data/ext/poppler/extconf.rb +70 -0
  6. data/ext/poppler/poppler.def +2 -0
  7. data/ext/poppler/rbpoppler-action.c +372 -0
  8. data/ext/poppler/rbpoppler-annotation-callout-line.c +127 -0
  9. data/ext/poppler/rbpoppler-annotation-free-text.c +46 -0
  10. data/ext/poppler/rbpoppler-annotation-mapping.c +72 -0
  11. data/ext/poppler/rbpoppler-annotation-markup.c +98 -0
  12. data/ext/poppler/rbpoppler-annotation-text.c +53 -0
  13. data/ext/poppler/rbpoppler-annotation.c +74 -0
  14. data/ext/poppler/rbpoppler-attachment.c +124 -0
  15. data/ext/poppler/rbpoppler-button-field.c +56 -0
  16. data/ext/poppler/rbpoppler-choice-field.c +131 -0
  17. data/ext/poppler/rbpoppler-color.c +107 -0
  18. data/ext/poppler/rbpoppler-document.c +224 -0
  19. data/ext/poppler/rbpoppler-font-info.c +59 -0
  20. data/ext/poppler/rbpoppler-fonts-iter.c +127 -0
  21. data/ext/poppler/rbpoppler-form-field-mapping.c +44 -0
  22. data/ext/poppler/rbpoppler-form-field.c +98 -0
  23. data/ext/poppler/rbpoppler-image-mapping.c +48 -0
  24. data/ext/poppler/rbpoppler-index-iter.c +128 -0
  25. data/ext/poppler/rbpoppler-link-mapping.c +47 -0
  26. data/ext/poppler/rbpoppler-page-transition.c +59 -0
  27. data/ext/poppler/rbpoppler-page.c +322 -0
  28. data/ext/poppler/rbpoppler-private.h +77 -0
  29. data/ext/poppler/rbpoppler-ps-file.c +66 -0
  30. data/ext/poppler/rbpoppler-rectangle.c +92 -0
  31. data/ext/poppler/rbpoppler-text-field.c +91 -0
  32. data/ext/poppler/rbpoppler.c +111 -0
  33. data/ext/poppler/rbpoppler.h +61 -0
  34. data/ext/poppler/rbpopplerconversions.h +105 -0
  35. data/extconf.rb +49 -0
  36. data/lib/2.0/poppler.so +0 -0
  37. data/lib/2.1/poppler.so +0 -0
  38. data/lib/2.2/poppler.so +0 -0
  39. data/lib/poppler.rb +105 -0
  40. data/sample/number-pdf.rb +32 -0
  41. data/sample/pdf2.rb +132 -0
  42. data/sample/pdf2svg.rb +26 -0
  43. data/sample/pdf2text.rb +16 -0
  44. data/sample/pdfcrop.rb +32 -0
  45. data/sample/pdfdiv.rb +36 -0
  46. data/test/fixtures/image.pdf +0 -0
  47. data/test/fixtures/image.png +0 -0
  48. data/test/poppler-test-utils.rb +58 -0
  49. data/test/run-test.rb +32 -0
  50. data/test/test_annotation.rb +86 -0
  51. data/test/test_color.rb +26 -0
  52. data/test/test_constants.rb +30 -0
  53. data/test/test_document.rb +41 -0
  54. data/test/test_page.rb +42 -0
  55. data/vendor/local/bin/cjpeg.exe +0 -0
  56. data/vendor/local/bin/djpeg.exe +0 -0
  57. data/vendor/local/bin/jpegtran.exe +0 -0
  58. data/vendor/local/bin/libjpeg-9.dll +0 -0
  59. data/vendor/local/bin/libpoppler-48.dll +0 -0
  60. data/vendor/local/bin/libpoppler-cpp-0.dll +0 -0
  61. data/vendor/local/bin/libpoppler-glib-8.dll +0 -0
  62. data/vendor/local/bin/libsqlite3-0.dll +0 -0
  63. data/vendor/local/bin/pdfdetach.exe +0 -0
  64. data/vendor/local/bin/pdffonts.exe +0 -0
  65. data/vendor/local/bin/pdfimages.exe +0 -0
  66. data/vendor/local/bin/pdfinfo.exe +0 -0
  67. data/vendor/local/bin/pdfseparate.exe +0 -0
  68. data/vendor/local/bin/pdftocairo.exe +0 -0
  69. data/vendor/local/bin/pdftohtml.exe +0 -0
  70. data/vendor/local/bin/pdftoppm.exe +0 -0
  71. data/vendor/local/bin/pdftops.exe +0 -0
  72. data/vendor/local/bin/pdftotext.exe +0 -0
  73. data/vendor/local/bin/pdfunite.exe +0 -0
  74. data/vendor/local/bin/rdjpgcom.exe +0 -0
  75. data/vendor/local/bin/sqlite3.exe +0 -0
  76. data/vendor/local/bin/wrjpgcom.exe +0 -0
  77. data/vendor/local/include/jconfig.h +60 -0
  78. data/vendor/local/include/jerror.h +304 -0
  79. data/vendor/local/include/jmorecfg.h +446 -0
  80. data/vendor/local/include/jpeglib.h +1180 -0
  81. data/vendor/local/include/poppler/cpp/poppler-document.h +104 -0
  82. data/vendor/local/include/poppler/cpp/poppler-embedded-file.h +55 -0
  83. data/vendor/local/include/poppler/cpp/poppler-font.h +91 -0
  84. data/vendor/local/include/poppler/cpp/poppler-global.h +111 -0
  85. data/vendor/local/include/poppler/cpp/poppler-image.h +71 -0
  86. data/vendor/local/include/poppler/cpp/poppler-page-renderer.h +66 -0
  87. data/vendor/local/include/poppler/cpp/poppler-page-transition.h +82 -0
  88. data/vendor/local/include/poppler/cpp/poppler-page.h +76 -0
  89. data/vendor/local/include/poppler/cpp/poppler-rectangle.h +84 -0
  90. data/vendor/local/include/poppler/cpp/poppler-toc.h +74 -0
  91. data/vendor/local/include/poppler/cpp/poppler-version.h +39 -0
  92. data/vendor/local/include/poppler/glib/poppler-action.h +316 -0
  93. data/vendor/local/include/poppler/glib/poppler-annot.h +296 -0
  94. data/vendor/local/include/poppler/glib/poppler-attachment.h +87 -0
  95. data/vendor/local/include/poppler/glib/poppler-date.h +30 -0
  96. data/vendor/local/include/poppler/glib/poppler-document.h +299 -0
  97. data/vendor/local/include/poppler/glib/poppler-enums.h +116 -0
  98. data/vendor/local/include/poppler/glib/poppler-features.h +88 -0
  99. data/vendor/local/include/poppler/glib/poppler-form-field.h +111 -0
  100. data/vendor/local/include/poppler/glib/poppler-layer.h +43 -0
  101. data/vendor/local/include/poppler/glib/poppler-media.h +73 -0
  102. data/vendor/local/include/poppler/glib/poppler-movie.h +42 -0
  103. data/vendor/local/include/poppler/glib/poppler-page.h +377 -0
  104. data/vendor/local/include/poppler/glib/poppler-structure-element.h +357 -0
  105. data/vendor/local/include/poppler/glib/poppler.h +250 -0
  106. data/vendor/local/include/sqlite3.h +7494 -0
  107. data/vendor/local/include/sqlite3ext.h +487 -0
  108. data/vendor/local/lib/girepository-1.0/Poppler-0.18.typelib +0 -0
  109. data/vendor/local/lib/libjpeg.a +0 -0
  110. data/vendor/local/lib/libjpeg.dll.a +0 -0
  111. data/vendor/local/lib/libjpeg.la +41 -0
  112. data/vendor/local/lib/libpoppler-cpp.a +0 -0
  113. data/vendor/local/lib/libpoppler-cpp.dll.a +0 -0
  114. data/vendor/local/lib/libpoppler-cpp.la +41 -0
  115. data/vendor/local/lib/libpoppler-glib.a +0 -0
  116. data/vendor/local/lib/libpoppler-glib.dll.a +0 -0
  117. data/vendor/local/lib/libpoppler-glib.la +41 -0
  118. data/vendor/local/lib/libpoppler.a +0 -0
  119. data/vendor/local/lib/libpoppler.dll.a +0 -0
  120. data/vendor/local/lib/libpoppler.la +41 -0
  121. data/vendor/local/lib/libsqlite3.a +0 -0
  122. data/vendor/local/lib/libsqlite3.dll.a +0 -0
  123. data/vendor/local/lib/libsqlite3.la +41 -0
  124. data/vendor/local/lib/pkgconfig/poppler-cairo.pc +9 -0
  125. data/vendor/local/lib/pkgconfig/poppler-cpp.pc +13 -0
  126. data/vendor/local/lib/pkgconfig/poppler-glib.pc +13 -0
  127. data/vendor/local/lib/pkgconfig/poppler-splash.pc +9 -0
  128. data/vendor/local/lib/pkgconfig/poppler.pc +11 -0
  129. data/vendor/local/lib/pkgconfig/sqlite3.pc +13 -0
  130. data/vendor/local/share/gir-1.0/Poppler-0.18.gir +8281 -0
  131. data/vendor/local/share/gtk-doc/html/poppler/PopplerAnnot.html +3221 -0
  132. data/vendor/local/share/gtk-doc/html/poppler/PopplerAttachment.html +267 -0
  133. data/vendor/local/share/gtk-doc/html/poppler/PopplerDocument.html +3328 -0
  134. data/vendor/local/share/gtk-doc/html/poppler/PopplerFormField.html +1403 -0
  135. data/vendor/local/share/gtk-doc/html/poppler/PopplerLayer.html +307 -0
  136. data/vendor/local/share/gtk-doc/html/poppler/PopplerMedia.html +381 -0
  137. data/vendor/local/share/gtk-doc/html/poppler/PopplerMovie.html +197 -0
  138. data/vendor/local/share/gtk-doc/html/poppler/PopplerPage.html +3002 -0
  139. data/vendor/local/share/gtk-doc/html/poppler/PopplerStructureElement.html +3781 -0
  140. data/vendor/local/share/gtk-doc/html/poppler/annotation-glossary.html +63 -0
  141. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-12.html +123 -0
  142. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-14.html +102 -0
  143. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-16.html +180 -0
  144. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-18.html +72 -0
  145. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-20.html +39 -0
  146. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-22.html +64 -0
  147. data/vendor/local/share/gtk-doc/html/poppler/api-index-deprecated.html +39 -0
  148. data/vendor/local/share/gtk-doc/html/poppler/api-index-full.html +1830 -0
  149. data/vendor/local/share/gtk-doc/html/poppler/ch01.html +74 -0
  150. data/vendor/local/share/gtk-doc/html/poppler/home.png +0 -0
  151. data/vendor/local/share/gtk-doc/html/poppler/index.html +85 -0
  152. data/vendor/local/share/gtk-doc/html/poppler/index.sgml +557 -0
  153. data/vendor/local/share/gtk-doc/html/poppler/left-insensitive.png +0 -0
  154. data/vendor/local/share/gtk-doc/html/poppler/left.png +0 -0
  155. data/vendor/local/share/gtk-doc/html/poppler/poppler-PDF-Utility-functions.html +107 -0
  156. data/vendor/local/share/gtk-doc/html/poppler/poppler-PopplerAction.html +796 -0
  157. data/vendor/local/share/gtk-doc/html/poppler/poppler-PopplerColor.html +201 -0
  158. data/vendor/local/share/gtk-doc/html/poppler/poppler-Version-and-Features-Information.html +254 -0
  159. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler.html +169 -0
  160. data/vendor/local/share/gtk-doc/html/poppler/poppler.devhelp2 +470 -0
  161. data/vendor/local/share/gtk-doc/html/poppler/right-insensitive.png +0 -0
  162. data/vendor/local/share/gtk-doc/html/poppler/right.png +0 -0
  163. data/vendor/local/share/gtk-doc/html/poppler/style.css +476 -0
  164. data/vendor/local/share/gtk-doc/html/poppler/up-insensitive.png +0 -0
  165. data/vendor/local/share/gtk-doc/html/poppler/up.png +0 -0
  166. data/vendor/local/share/license/poppler/AUTHORS +5 -0
  167. data/vendor/local/share/license/poppler/COPYING +339 -0
  168. data/vendor/local/share/man/man1/cjpeg.1 +387 -0
  169. data/vendor/local/share/man/man1/djpeg.1 +252 -0
  170. data/vendor/local/share/man/man1/jpegtran.1 +293 -0
  171. data/vendor/local/share/man/man1/pdfdetach.1 +86 -0
  172. data/vendor/local/share/man/man1/pdffonts.1 +119 -0
  173. data/vendor/local/share/man/man1/pdfimages.1 +260 -0
  174. data/vendor/local/share/man/man1/pdfinfo.1 +152 -0
  175. data/vendor/local/share/man/man1/pdfseparate.1 +49 -0
  176. data/vendor/local/share/man/man1/pdftocairo.1 +295 -0
  177. data/vendor/local/share/man/man1/pdftohtml.1 +107 -0
  178. data/vendor/local/share/man/man1/pdftoppm.1 +170 -0
  179. data/vendor/local/share/man/man1/pdftops.1 +217 -0
  180. data/vendor/local/share/man/man1/pdftotext.1 +137 -0
  181. data/vendor/local/share/man/man1/pdfunite.1 +33 -0
  182. data/vendor/local/share/man/man1/rdjpgcom.1 +63 -0
  183. data/vendor/local/share/man/man1/sqlite3.1 +279 -0
  184. data/vendor/local/share/man/man1/wrjpgcom.1 +103 -0
  185. metadata +254 -0
@@ -0,0 +1,107 @@
1
+ .TH PDFTOHTML 1
2
+ .\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
3
+ .\" other parms are allowed: see man(7), man(1)
4
+ .SH NAME
5
+ pdftohtml \- program to convert PDF files into HTML, XML and PNG images
6
+ .SH SYNOPSIS
7
+ .B pdftohtml
8
+ .I "[options] <PDF-file> [<HTML-file> <XML-file>]"
9
+ .SH "DESCRIPTION"
10
+ This manual page documents briefly the
11
+ .BR pdftohtml
12
+ command.
13
+ This manual page was written for the Debian GNU/Linux distribution
14
+ because the original program does not have a manual page.
15
+ .PP
16
+ .B pdftohtml
17
+ is a program that converts PDF documents into HTML. It generates its output in
18
+ the current working directory.
19
+ .SH OPTIONS
20
+ A summary of options are included below.
21
+ .TP
22
+ .B \-h, \-help
23
+ Show summary of options.
24
+ .TP
25
+ .B \-f <int>
26
+ first page to print
27
+ .TP
28
+ .B \-l <int>
29
+ last page to print
30
+ .TP
31
+ .B \-q
32
+ do not print any messages or errors
33
+ .TP
34
+ .B \-v
35
+ print copyright and version info
36
+ .TP
37
+ .B \-p
38
+ exchange .pdf links with .html
39
+ .TP
40
+ .B \-c
41
+ generate complex output
42
+ .TP
43
+ .B \-s
44
+ generate single HTML that includes all pages
45
+ .TP
46
+ .B \-i
47
+ ignore images
48
+ .TP
49
+ .B \-noframes
50
+ generate no frames. Not supported in complex output mode.
51
+ .TP
52
+ .B \-stdout
53
+ use standard output
54
+ .TP
55
+ .B \-zoom <fp>
56
+ zoom the PDF document (default 1.5)
57
+ .TP
58
+ .B \-xml
59
+ output for XML post-processing
60
+ .TP
61
+ .B \-enc <string>
62
+ output text encoding name
63
+ .TP
64
+ .B \-opw <string>
65
+ owner password (for encrypted files)
66
+ .TP
67
+ .B \-upw <string>
68
+ user password (for encrypted files)
69
+ .TP
70
+ .B \-hidden
71
+ force hidden text extraction
72
+ .TP
73
+ .B \-fmt
74
+ image file format for Splash output (png or jpg).
75
+ If complex is selected, but \-fmt is not specified,
76
+ \-fmt png will be assumed
77
+ .TP
78
+ .B \-nomerge
79
+ do not merge paragraphs
80
+ .TP
81
+ .B \-nodrm
82
+ override document DRM settings
83
+ .TP
84
+ .B \-wbt <fp>
85
+ adjust the word break threshold percent. Default is 10.
86
+ Word break occurs when distance between two adjacent characters is
87
+ greater than this percent of character height.
88
+ .TP
89
+ .B \-fontfullname
90
+ outputs the font name without any substitutions.
91
+
92
+ .SH AUTHOR
93
+
94
+ Pdftohtml was developed by Gueorgui Ovtcharov and Rainer Dorsch. It is
95
+ based and benefits a lot from Derek Noonburg's xpdf package.
96
+
97
+ This manual page was written by Søren Boll Overgaard <boll@debian.org>,
98
+ for the Debian GNU/Linux system (but may be used by others).
99
+ .SH "SEE ALSO"
100
+ .BR pdfdetach (1),
101
+ .BR pdffonts (1),
102
+ .BR pdfimages (1),
103
+ .BR pdfinfo (1),
104
+ .BR pdftocairo (1),
105
+ .BR pdftoppm (1),
106
+ .BR pdftops (1),
107
+ .BR pdftotext (1)
@@ -0,0 +1,170 @@
1
+ .\" Copyright 2005-2011 Glyph & Cog, LLC
2
+ .TH pdftoppm 1 "15 August 2011"
3
+ .SH NAME
4
+ pdftoppm \- Portable Document Format (PDF) to Portable Pixmap (PPM)
5
+ converter (version 3.03)
6
+ .SH SYNOPSIS
7
+ .B pdftoppm
8
+ [options]
9
+ .I PDF-file PPM-root
10
+ .SH DESCRIPTION
11
+ .B Pdftoppm
12
+ converts Portable Document Format (PDF) files to color image files in
13
+ Portable Pixmap (PPM) format, grayscale image files in Portable
14
+ Graymap (PGM) format, or monochrome image files in Portable Bitmap
15
+ (PBM) format.
16
+ .PP
17
+ Pdftoppm reads the PDF file,
18
+ .IR PDF-file ,
19
+ and writes one PPM file for each page,
20
+ .IR PPM-root - number .ppm,
21
+ where
22
+ .I number
23
+ is the page number.
24
+ .SH OPTIONS
25
+ .TP
26
+ .BI \-f " number"
27
+ Specifies the first page to convert.
28
+ .TP
29
+ .BI \-l " number"
30
+ Specifies the last page to convert.
31
+ .TP
32
+ .B \-o
33
+ Generates only the odd numbered pages.
34
+ .TP
35
+ .B \-e
36
+ Generates only the even numbered pages.
37
+ .TP
38
+ .BI \-singlefile
39
+ Writes only the first page and does not add digits.
40
+ .TP
41
+ .BI \-r " number"
42
+ Specifies the X and Y resolution, in DPI. The default is 150 DPI.
43
+ .TP
44
+ .BI \-rx " number"
45
+ Specifies the X resolution, in DPI. The default is 150 DPI.
46
+ .TP
47
+ .BI \-ry " number"
48
+ Specifies the Y resolution, in DPI. The default is 150 DPI.
49
+ .TP
50
+ .BI \-scale-to " number"
51
+ Scales the long side of each page (width for landscape pages, height
52
+ for portrait pages) to fit in scale-to pixels. The size of the short
53
+ side will be determined by the aspect ratio of the page.
54
+ .TP
55
+ .BI \-scale-to-x " number"
56
+ Scales each page horizontally to fit in scale-to-x pixels. If
57
+ scale-to-y is set to -1, the vertical size will determined by the
58
+ aspect ratio of the page.
59
+ .TP
60
+ .BI \-scale-to-y " number"
61
+ Scales each page vertically to fit in scale-to-y pixels. If scale-to-x
62
+ is set to -1, the horizontal size will determined by the aspect ratio
63
+ of the page.
64
+ .TP
65
+ .BI \-x " number"
66
+ Specifies the x-coordinate of the crop area top left corner
67
+ .TP
68
+ .BI \-y " number"
69
+ Specifies the y-coordinate of the crop area top left corner
70
+ .TP
71
+ .BI \-W " number"
72
+ Specifies the width of crop area in pixels (default is 0)
73
+ .TP
74
+ .BI \-H " number"
75
+ Specifies the height of crop area in pixels (default is 0)
76
+ .TP
77
+ .BI \-sz " number"
78
+ Specifies the size of crop square in pixels (sets W and H)
79
+ .TP
80
+ .B \-cropbox
81
+ Uses the crop box rather than media box when generating the files
82
+ .TP
83
+ .B \-mono
84
+ Generate a monochrome PBM file (instead of a color PPM file).
85
+ .TP
86
+ .B \-gray
87
+ Generate a grayscale PGM file (instead of a color PPM file).
88
+ .TP
89
+ .B \-png
90
+ Generates a PNG file instead a PPM file.
91
+ .TP
92
+ .B \-jpeg
93
+ Generates a JPEG file instead a PPM file.
94
+ .TP
95
+ .B \-tiff
96
+ Generates a TIFF file instead a PPM file.
97
+ .TP
98
+ .BI \-tiffcompression " none | packbits | jpeg | lzw | deflate"
99
+ Specifies the TIFF compression type. This defaults to "none".
100
+ .TP
101
+ .BI \-freetype " yes | no"
102
+ Enable or disable FreeType (a TrueType / Type 1 font rasterizer).
103
+ This defaults to "yes".
104
+ .TP
105
+ .BI \-thinlinemode " none | solid | shape"
106
+ Specifies the thin line mode. This defaults to "none".
107
+ .TP
108
+ "solid":
109
+ adjust lines with a width less than one pixel to pixel boundary
110
+ and paint it with a width of one pixel.
111
+ .TP
112
+ "shape":
113
+ adjust lines with a width less than one pixel to pixel boundary
114
+ and paint it with a width of one pixel but with a shape in proportion
115
+ to its width.
116
+ .TP
117
+ .BI \-aa " yes | no"
118
+ Enable or disable font anti-aliasing. This defaults to "yes".
119
+ .TP
120
+ .BI \-aaVector " yes | no"
121
+ Enable or disable vector anti-aliasing. This defaults to "yes".
122
+ .TP
123
+ .BI \-opw " password"
124
+ Specify the owner password for the PDF file. Providing this will
125
+ bypass all security restrictions.
126
+ .TP
127
+ .BI \-upw " password"
128
+ Specify the user password for the PDF file.
129
+ .TP
130
+ .B \-q
131
+ Don't print any messages or errors.
132
+ .TP
133
+ .B \-v
134
+ Print copyright and version information.
135
+ .TP
136
+ .B \-h
137
+ Print usage information.
138
+ .RB ( \-help
139
+ and
140
+ .B \-\-help
141
+ are equivalent.)
142
+ .SH EXIT CODES
143
+ The Xpdf tools use the following exit codes:
144
+ .TP
145
+ 0
146
+ No error.
147
+ .TP
148
+ 1
149
+ Error opening a PDF file.
150
+ .TP
151
+ 2
152
+ Error opening an output file.
153
+ .TP
154
+ 3
155
+ Error related to PDF permissions.
156
+ .TP
157
+ 99
158
+ Other error.
159
+ .SH AUTHOR
160
+ The pdftoppm software and documentation are copyright 1996-2011 Glyph
161
+ & Cog, LLC.
162
+ .SH "SEE ALSO"
163
+ .BR pdfdetach (1),
164
+ .BR pdffonts (1),
165
+ .BR pdfimages (1),
166
+ .BR pdfinfo (1),
167
+ .BR pdftocairo (1),
168
+ .BR pdftohtml (1),
169
+ .BR pdftops (1),
170
+ .BR pdftotext (1)
@@ -0,0 +1,217 @@
1
+ .\" Copyright 1996-2011 Glyph & Cog, LLC
2
+ .TH pdftops 1 "15 August 2011"
3
+ .SH NAME
4
+ pdftops \- Portable Document Format (PDF) to PostScript converter
5
+ (version 3.03)
6
+ .SH SYNOPSIS
7
+ .B pdftops
8
+ [options]
9
+ .RI <PDF-file>
10
+ .RI [<PS-file>]
11
+ .SH DESCRIPTION
12
+ .B Pdftops
13
+ converts Portable Document Format (PDF) files to PostScript so they
14
+ can be printed.
15
+ .PP
16
+ Pdftops reads the PDF file,
17
+ .IR PDF-file ,
18
+ and writes a PostScript file,
19
+ .IR PS-file .
20
+ If
21
+ .I PS-file
22
+ is not specified, pdftops converts
23
+ .I file.pdf
24
+ to
25
+ .I file.ps
26
+ (or
27
+ .I file.eps
28
+ with the \-eps option). If
29
+ .I PS-file
30
+ is \'-', the PostScript is sent to stdout.
31
+ .SH OPTIONS
32
+ .TP
33
+ .BI \-f " number"
34
+ Specifies the first page to print.
35
+ .TP
36
+ .BI \-l " number"
37
+ Specifies the last page to print.
38
+ .TP
39
+ .B \-level1
40
+ Generate Level 1 PostScript. The resulting PostScript files will be
41
+ significantly larger (if they contain images), but will print on Level
42
+ 1 printers. This also converts all images to black and white. No
43
+ more than one of the PostScript level options (\-level1, \-level1sep,
44
+ \-level2, \-level2sep, \-level3, \-level3sep) may be given.
45
+ .TP
46
+ .B \-level1sep
47
+ Generate Level 1 separable PostScript. All colors are converted to
48
+ CMYK. Images are written with separate stream data for the four
49
+ components.
50
+ .TP
51
+ .B \-level2
52
+ Generate Level 2 PostScript. Level 2 supports color images and image
53
+ compression. This is the default setting.
54
+ .TP
55
+ .B \-level2sep
56
+ Generate Level 2 separable PostScript. All colors are converted to
57
+ CMYK. The PostScript separation convention operators are used to
58
+ handle custom (spot) colors.
59
+ .TP
60
+ .B \-level3
61
+ Generate Level 3 PostScript. This enables all Level 2 features plus
62
+ CID font embedding.
63
+ .TP
64
+ .B \-level3sep
65
+ Generate Level 3 separable PostScript. The separation handling is the
66
+ same as for \-level2sep.
67
+ .TP
68
+ .B \-eps
69
+ Generate an Encapsulated PostScript (EPS) file. An EPS file contains
70
+ a single image, so if you use this option with a multi-page PDF file,
71
+ you must use \-f and \-l to specify a single page. No more than one of
72
+ the mode options (\-eps, \-form) may be given.
73
+ .TP
74
+ .B \-form
75
+ Generate a PostScript form which can be imported by software that
76
+ understands forms. A form contains a single page, so if you use this
77
+ option with a multi-page PDF file, you must use \-f and \-l to specify a
78
+ single page. The \-level1 option cannot be used with \-form. No more
79
+ than one of the mode options (\-eps, \-form) may be
80
+ given.
81
+ .TP
82
+ .B \-opi
83
+ Generate OPI comments for all images and forms which have OPI
84
+ information. (This option is only available if pdftops was compiled
85
+ with OPI support.)
86
+ .TP
87
+ .B \-binary
88
+ Write binary data in Level 1 PostScript. By default, pdftops writes
89
+ hex-encoded data in Level 1 PostScript. Binary data is non-standard
90
+ in Level 1 PostScript but reduces the file size and can be useful
91
+ when Level 1 PostScript is required only for its restricted use
92
+ of PostScript operators.
93
+ .TP
94
+ .BI \-r " number"
95
+ Set the resolution in DPI when pdftops rasterizes images with
96
+ transparencies or, for Level 1 PostScript, when pdftops
97
+ rasterizes images with color masks.
98
+ By default, pdftops rasterizes images to 300 DPI.
99
+ .TP
100
+ .B \-noembt1
101
+ By default, any Type 1 fonts which are embedded in the PDF file are
102
+ copied into the PostScript file. This option causes pdftops to
103
+ substitute base fonts instead. Embedded fonts make PostScript files
104
+ larger, but may be necessary for readable output.
105
+ .TP
106
+ .B \-noembtt
107
+ By default, any TrueType fonts which are embedded in the PDF file are
108
+ copied into the PostScript file. This option causes pdftops to
109
+ substitute base fonts instead. Embedded fonts make PostScript files
110
+ larger, but may be necessary for readable output. Also, some
111
+ PostScript interpreters do not have TrueType rasterizers.
112
+ .TP
113
+ .B \-noembcidps
114
+ By default, any CID PostScript fonts which are embedded in the PDF
115
+ file are copied into the PostScript file. This option disables that
116
+ embedding. No attempt is made to substitute for non-embedded CID
117
+ PostScript fonts.
118
+ .TP
119
+ .B \-noembcidtt
120
+ By default, any CID TrueType fonts which are embedded in the PDF file
121
+ are copied into the PostScript file. This option disables that
122
+ embedding. No attempt is made to substitute for non-embedded CID
123
+ TrueType fonts.
124
+ .TP
125
+ .B \-passfonts
126
+ By default, references to non-embedded 8-bit fonts in the PDF file are
127
+ substituted with the closest "Helvetica", "Times-Roman", or "Courier" font.
128
+ This option passes references to non-embedded fonts
129
+ through to the PostScript file.
130
+ .TP
131
+ .B \-preload
132
+ preload images and forms
133
+ .TP
134
+ .BI \-paper " size"
135
+ Set the paper size to one of "letter", "legal", "A4", or "A3". This
136
+ can also be set to "match", which will set the paper size of each page to match the
137
+ size specified in the PDF file. If none the \-paper, \-paperw, or \-paperh
138
+ options are spoecified the default is to match the paper size.
139
+ .TP
140
+ .BI \-paperw " size"
141
+ Set the paper width, in points.
142
+ .TP
143
+ .BI \-paperh " size"
144
+ Set the paper height, in points.
145
+ .TP
146
+ .B \-origpagesizes
147
+ This option is the same as "\-paper match".
148
+ .TP
149
+ .B \-nocrop
150
+ By default, output is cropped to the CropBox specified in the PDF
151
+ file. This option disables cropping.
152
+ .TP
153
+ .B \-expand
154
+ Expand PDF pages smaller than the paper to fill the paper. By
155
+ default, these pages are not scaled.
156
+ .TP
157
+ .B \-noshrink
158
+ Don't scale PDF pages which are larger than the paper. By default,
159
+ pages larger than the paper are shrunk to fit.
160
+ .TP
161
+ .B \-nocenter
162
+ By default, PDF pages smaller than the paper (after any scaling) are
163
+ centered on the paper. This option causes them to be aligned to the
164
+ lower-left corner of the paper instead.
165
+ .TP
166
+ .B \-duplex
167
+ Set the Duplex pagedevice entry in the PostScript file. This tells
168
+ duplex-capable printers to enable duplexing.
169
+ .TP
170
+ .BI \-opw " password"
171
+ Specify the owner password for the PDF file. Providing this will
172
+ bypass all security restrictions.
173
+ .TP
174
+ .BI \-upw " password"
175
+ Specify the user password for the PDF file.
176
+ .TP
177
+ .B \-q
178
+ Don't print any messages or errors.
179
+ .TP
180
+ .B \-v
181
+ Print copyright and version information.
182
+ .TP
183
+ .B \-h
184
+ Print usage information.
185
+ .RB ( \-help
186
+ and
187
+ .B \-\-help
188
+ are equivalent.)
189
+ .SH EXIT CODES
190
+ The Xpdf tools use the following exit codes:
191
+ .TP
192
+ 0
193
+ No error.
194
+ .TP
195
+ 1
196
+ Error opening a PDF file.
197
+ .TP
198
+ 2
199
+ Error opening an output file.
200
+ .TP
201
+ 3
202
+ Error related to PDF permissions.
203
+ .TP
204
+ 99
205
+ Other error.
206
+ .SH AUTHOR
207
+ The pdftops software and documentation are copyright 1996-2011 Glyph &
208
+ Cog, LLC.
209
+ .SH "SEE ALSO"
210
+ .BR pdfdetach (1),
211
+ .BR pdffonts (1),
212
+ .BR pdfimages (1),
213
+ .BR pdfinfo (1),
214
+ .BR pdftocairo (1),
215
+ .BR pdftohtml (1),
216
+ .BR pdftoppm (1),
217
+ .BR pdftotext (1)