PDF2DSC(1)
π PDF2DSC(1) β the Ghostscript Tools glow-up π
okay bestie, so this is a page from the Ghostscript Tools manual set, section 1 of the Unix manuals, and it's literally called pdf2dsc. she's giving "quiet utility that does one thing extremely well" energy and honestly? we stan. π«Ά
β¨ NAME β¨
pdf2dsc β generate a PostScript page list of a PDF document (UNSUPPORTED)
not me putting the UNSUPPORTED right at the top so nobody's surprised later π she's iconic but she is not officially supported, okay? read that twice.
πΈ SYNOPSIS πΈ
pdf2dsc input.pdf [ output.dsc ]
that's it. that's the whole vibe. one required file, one optional file, no chaos. π
π¦ DESCRIPTION π¦
so here's the tea: pdf2dsc calls up gs(1) and gets it to read an Adobe Portable Document Format (PDF) document β that's your input.pdf β and then she whips up a PostScript(tm) document called output.dsc that conforms to Adobe's Document Structuring Conventions (DSC) requirements. like, actual compliance, no cap. π
and this new document? it doesn't contain your pages. it just tells Ghostscript to read the PDF file and to display pages one at a time. so when you open it, you're not flipping through a copy β you're flipping through the original, one page at a time, exactly as asked. periodt. β¨
the generated document can then be viewed with any PostScript viewer based on Ghostscript β think ghostview(1) on Unix or GSview on Windows β and the user can browse through the pages of the PDF document in any order. any order!! no "next page" tyranny, no being trapped in page 1 to page 47 sequence. main character browsing energy. π
and the naming situation, which is lowkey the cutest part:
- if no output file is named on the command line, the name of the output file is that of the input file with any extension removed, followed by the extension
.dsc.
so my_cool_doc.pdf walks in and my_cool_doc.dsc walks out. she does it herself. no questions. π§
π CAVEATS π
okay bestie, listen, because this part is important and I'm not gonna sugarcoat it:
- The DSC document uses Ghostscript-specific procedures.
- In addition, the original PDF document must be accessible when the DSC document is processed.
π¨ read that again fr fr: this .dsc file is not self-contained. it's more like a little handwritten note pointing at your PDF. if the PDF isn't there when you process the DSC, it's giving nothing. absolutely nothing. keep the original around or it's over. π
- You need the file
pdf2dsc.ps(originally by Russell Lang) supplied with Ghostscript since release 3.53.
no pdf2dsc.ps, no magic. that's the whole rule. π
π SEE ALSO π
go read those next, iykyk. β
β VERSION β
This document was last revised for Ghostscript version 10.03.1.
π AUTHOR π
Yves Arrouye <yves.arrouye@usa.net> and Russell Lang gsview at ghostgum.com.au
and that's the whole page, bestie!! this one came stamped with Ghostscript version 10.03.1 and dated 06 May 2024, which is like... the little signature at the bottom of the note. π mwah. go make some .dsc files. you got this. πΈπβ¨
π¦ where this page comes from
- fedora 43: ghostscript 10.05.1-5.fc43 Β· AGPL-3.0-or-later
- fedora 43: ghostscript 10.05.1-5.fc43 Β· AGPL-3.0-or-later
- fedora 43: ghostscript 10.05.1-6.fc43
- fedora 43: ghostscript 10.05.1-6.fc43
- fedora 43: ghostscript 10.05.1-7.fc43 Β· AGPL-3.0-or-later
- fedora 43: ghostscript 10.05.1-7.fc43 Β· AGPL-3.0-or-later
- fedora 44: ghostscript 10.06.0-2.fc44 Β· AGPL-3.0-or-later
- fedora 44: ghostscript 10.06.0-2.fc44 Β· AGPL-3.0-or-later
- fedora 44: ghostscript 10.06.0-3.fc44 Β· AGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms