pdftops(1)
๐ pdftops(1) ยท General Commands Manual ๐
โจ NAME โจ
okay so the manual name here is pdftops, and it's a Portable Document Format (PDF) to PostScript converter ๐ this version is 3.03!
๐ง SYNOPSIS ๐ง
pdftops [options] <PDF-file> [<PS-file>]
๐ DESCRIPTION ๐
bestie, pdftops turns PDF files into PostScript so they can actually get printed ๐จ๏ธโจ
it reads the PDF you give it, PDF-file, and writes a PostScript file called PS-file. if you don't name a PS-file, it converts file.pdf into file.ps (or file.eps if you use the -eps option) ๐ธ if you pass ยด-' as the PS-file, the PostScript gets sent to stdout instead. and if you pass ยด-' as the PDF-file, it reads the PDF from stdin ๐ซถ
๐ฆ OPTIONS ๐ฆ
-f numberโ picks the first page you want to print ๐-l numberโ picks the last page you want to print ๐-level1โ generates Level 1 PostScript. ngl the files come out way bigger if there are images, but they'll print on Level 1 printers ๐จ๏ธ this also turns every image black and white ๐ฉถ you can only use one of the PostScript level options (-level1,-level1sep,-level2,-level2sep,-level3,-level3sep) at a time, no cheating ๐ โโ๏ธ-level1sepโ generates Level 1 separable PostScript. all colors get converted to CMYK, and images get written with separate stream data for each of the four components ๐-level2โ generates Level 2 PostScript. this one supports color images and image compression, and it's the default vibe ๐-level2sepโ generates Level 2 separable PostScript. all colors become CMYK, and the PostScript separation convention operators handle custom (spot) colors ๐จ-level3โ generates Level 3 PostScript. it turns on all the Level 2 features plus CID font embedding ๐-level3sepโ generates Level 3 separable PostScript. the separation handling is the same as-level2sep๐-epsโ generates an Encapsulated PostScript (EPS) file ๐ฆข an EPS file holds a single image, so if your PDF has multiple pages you have to use-fand-lto pick just one page ๐ you can only use one of the mode options (-eps,-form) at a time-formโ generates a PostScript form that software with form support can import ๐ a form holds one page, so same deal: with a multi-page PDF you need-fand-lto select a single page.-level1can't be used with-form๐ โโ๏ธ and again, only one mode option (-eps,-form) allowed-opiโ generates OPI comments for all images and forms that have OPI info ๐ผ๏ธ heads up, this one is only available if pdftops was compiled with OPI support-binaryโ writes binary data in Level 1 PostScript. by default pdftops writes hex-encoded data in Level 1, but binary is technically non-standard in Level 1 PostScript. the perk is a smaller file size, and it's handy when you only need Level 1 for its restricted set of PostScript operators ๐ค-r numberโ sets the resolution in DPI for when pdftops rasterizes images with transparencies, or (for Level 1 PostScript) images with color masks ๐ by default it rasterizes to 300 DPI โจ-noembt1โ normally, any embedded Type 1 fonts in the PDF get copied into the PostScript file. this option makes pdftops swap in base fonts instead ๐ค embedded fonts make PostScript files bigger, but they might be needed for readable output-noembttโ normally, any embedded TrueType fonts in the PDF get copied into the PostScript file. this option makes pdftops swap in base fonts instead ๐ค embedded fonts make files bigger, but they might be needed for readable output. also, some PostScript interpreters don't have TrueType rasterizers, so keep that in mind ๐-noembcidpsโ normally, any embedded CID PostScript fonts get copied into the PostScript file. this option turns that embedding off ๐ซ and no attempt is made to substitute for non-embedded CID PostScript fonts-noembcidttโ normally, any embedded CID TrueType fonts get copied into the PostScript file. this option turns that embedding off ๐ซ and no attempt is made to substitute for non-embedded CID TrueType fonts-passfontsโ by default, references to non-embedded 8-bit fonts get swapped for the closest "Helvetica", "Times-Roman", or "Courier" font ๐ this option passes those references straight through to the PostScript file instead-aaRaster yes | noโ turns raster anti-aliasing on or off. it defaults to "no" ๐ pdftops might need to rasterize transparencies and pattern image masks. if the PostScript is going to get printed, leave-aaRasteroff and set-rto your printer's resolution ๐จ๏ธ if it's going to get viewed on screen, turning-aaRasteron can make rasterized text easier to read ๐-rasterize always | never | whenneededโ by default pdftops rasterizes pages as needed, like when they contain transparencies ๐ผ๏ธ set it to "always" to force rasterization, which is the way to eliminate fonts ๐ซ set it to "never" to stop rasterization completely, but heads up, this may produce files that display incorrectly โ ๏ธ-processcolorformat MONO8 | CMYK8 | RGB8โ sets the process color format used during rasterization and transparency reduction ๐จ the default depends on your other settings: for-level1it's MONO8, for-level{1,2,3}sepor-overprintit's CMYK8, and in every other case it's RGB8. if you give-processcolorprofile, then-processcolorformatgets inferred from that ICC profile ๐ง-processcolorprofile filenameโ sets the ICC profile that gets assumed during rasterization and transparency reduction ๐-defaultgrayprofile defaultgrayprofilefileโ if poppler was compiled with colour management support, this sets the DefaultGray color space to the ICC profile stored indefaultgrayprofilefile๐ฉถ-defaultrgbprofile defaultrgbprofilefileโ if poppler was compiled with colour management support, this sets the DefaultRGB color space to the ICC profile stored indefaultrgbprofilefileโค๏ธ-defaultcmykprofile defaultcmykprofilefileโ if poppler was compiled with colour management support, this sets the DefaultCMYK color space to the ICC profile stored indefaultcmykprofilefile๐-optimizecolorspaceโ by default, bitmap images pass through to the output PostScript in their original color space, which gives predictable results โจ this option converts RGB and CMYK images into Gray images when every pixel has equal components ๐ช it can fix problems when doing color separations on PDFs with embedded black and white images that are encoded as RGB-preloadโ preloads images and forms ๐ฆ-paper sizeโ sets the paper size to one of "letter", "legal", "A4", or "A3" ๐ it can also be set to "match", which sets each page's paper size to match the size in the PDF file ๐ช if none of-paper,-paperw, or-paperhare specified, the default is to match the paper size-paperw sizeโ sets the paper width, in points ๐-paperh sizeโ sets the paper height, in points ๐-origpagesizesโ same thing as-paper match๐ช-nocropโ by default, the output gets cropped to the CropBox in the PDF file โ๏ธ this option turns cropping off-expandโ expands PDF pages that are smaller than the paper so they fill it ๐ช by default these pages don't get scaled-noshrinkโ stops scaling PDF pages that are larger than the paper ๐ โโ๏ธ by default, pages bigger than the paper get shrunk to fit-nocenterโ by default, PDF pages smaller than the paper (after any scaling) get centered on the paper ๐ฏ this option aligns them to the lower-left corner instead-duplexโ sets the Duplex pagedevice entry in the PostScript file, which tells duplex-capable printers to turn duplexing on ๐จ๏ธ๐-opw passwordโ specifies the owner password for the PDF file ๐ > providing this bypasses all security restrictions, so use it wisely ๐จ-upw passwordโ specifies the user password for the PDF file ๐-overprintโ enables overprint emulation during rasterization ๐ when-processcolorformatis CMYK8 and the language level is higher than 2, this option is set to true by default. note: this option requires-processcolorformatto be CMYK8 ๐จ-qโ don't print any messages or errors ๐คซ-vโ prints copyright and version information ๐-hโ prints usage information ๐งพ (-helpand--helpare equivalent, iykyk ๐)
๐จ EXIT CODES ๐จ
the Xpdf tools use these exit codes, so keep them in your back pocket ๐ซถ
0โ no error, slay ๐1โ error opening a PDF file ๐ฅฒ2โ error opening an output file ๐ญ3โ error related to PDF permissions ๐99โ other error ๐
๐ AUTHOR ๐
the pdftops software and documentation are copyright 1996-2011 Glyph & Cog, LLC. main character creators, honestly ๐
๐ SEE ALSO ๐
bestie, these are the related pages you should check out next ๐ฆ pdfdetach(1), pdffonts(1), pdfimages(1), pdfinfo(1), pdftocairo(1), pdftohtml(1), pdftoppm(1), pdftotext(1), pdfseparate(1), pdfsig(1), pdfunite(1) ๐ง
ok that's the whole tea ๐ซถ this is the pdftops(1) page from the General Commands Manual, dated 15 August 2011 ๐ธ stay iconic and keep printing ๐โจ
๐ฆ where this page comes from
- alpine 3.22: poppler-doc 25.04.0-r0 ยท GPL-2.0-or-later
- alpine 3.23: poppler-doc 25.12.0-r0 ยท GPL-2.0-or-later
- alpine 3.24: poppler-doc 25.12.0-r1 ยท GPL-2.0-or-later
- arch rolling: poppler 26.10.0-2 ยท GPL-2.0-only AND GPL-3.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT AND HPND-sell-variant
- centos-stream 10: poppler-utils 24.02.0-10.el10 ยท (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- centos-stream 9: poppler-utils 21.01.0-26.el9 ยท (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ and MIT
- debian bookworm: poppler-utils 22.12.0-2+deb12u2 ยท GPL-2.0-only OR GPL-3.0-only
- debian bookworm: poppler-utils 22.12.0-2+deb12u3 ยท GPL-2.0-only OR GPL-3.0-only
- debian trixie: poppler-utils 25.03.0-5+deb13u3 ยท GPL-2.0-only OR GPL-3.0-only
- debian trixie: poppler-utils 25.03.0-5+deb13u4 ยท GPL-2.0-only OR GPL-3.0-only
- fedora 43: poppler-utils 25.07.0-2.fc43 ยท (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- fedora 43: poppler-utils 25.07.0-5.fc43 ยท (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- fedora 44: poppler-utils 26.01.0-3.fc44 ยท (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
- nixos 26.05: poppler-utils 26.10.0
- nixpkgs unstable: poppler-utils 26.10.0
- opensuse-leap 16.0: poppler-tools 25.04.0-160000.4.1 ยท GPL-2.0-only OR GPL-3.0-only
- opensuse-leap 16.0: poppler-tools 25.04.0-160000.4.1 ยท GPL-2.0-only OR GPL-3.0-only
- opensuse-leap 16.0: poppler-tools 25.04.0-160000.4.1 ยท GPL-2.0-only OR GPL-3.0-only
- opensuse-leap 16.0: poppler-tools 25.04.0-160000.4.1 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu jammy: poppler-utils 22.02.0-2 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu jammy: poppler-utils 22.02.0-2ubuntu0.14
- ubuntu jammy: poppler-utils 22.02.0-2ubuntu0.15 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu noble: poppler-utils 24.02.0-1ubuntu9 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu noble: poppler-utils 24.02.0-1ubuntu9.10
- ubuntu noble: poppler-utils 24.02.0-1ubuntu9.11 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu questing: poppler-utils 25.03.0-10
- ubuntu questing: poppler-utils 25.03.0-10ubuntu0.2 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu resolute: poppler-utils 26.01.0-2build2 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu resolute: poppler-utils 26.01.0-2ubuntu0.2
- ubuntu resolute: poppler-utils 26.01.0-2ubuntu0.3 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: poppler-utils 26.07.0-2ubuntu1 ยท GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: poppler-utils 26.07.0-2ubuntu1.1 ยท GPL-2.0-only OR GPL-3.0-only
- Copyright 1996-2011 Glyph & Cog, LLC
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms