<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.paskvil.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.paskvil.com/index.php?action=history&amp;feed=atom&amp;title=Short_Notes_on_PDF</id>
		<title>Short Notes on PDF - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.paskvil.com/index.php?action=history&amp;feed=atom&amp;title=Short_Notes_on_PDF"/>
		<link rel="alternate" type="text/html" href="https://wiki.paskvil.com/index.php?title=Short_Notes_on_PDF&amp;action=history"/>
		<updated>2026-04-10T16:15:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.22.0</generator>

	<entry>
		<id>https://wiki.paskvil.com/index.php?title=Short_Notes_on_PDF&amp;diff=112&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;== Merging PDF Files using GhostScript ==  To merge several files ''file1.pdf'', ''file2.pdf'', ... into a single ''output.pdf'' file, use  gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPU...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.paskvil.com/index.php?title=Short_Notes_on_PDF&amp;diff=112&amp;oldid=prev"/>
				<updated>2012-09-04T13:02:06Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Merging PDF Files using GhostScript ==  To merge several files &amp;#039;&amp;#039;file1.pdf&amp;#039;&amp;#039;, &amp;#039;&amp;#039;file2.pdf&amp;#039;&amp;#039;, ... into a single &amp;#039;&amp;#039;output.pdf&amp;#039;&amp;#039; file, use  gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPU...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Merging PDF Files using GhostScript ==&lt;br /&gt;
&lt;br /&gt;
To merge several files ''file1.pdf'', ''file2.pdf'', ... into a single ''output.pdf'' file, use&lt;br /&gt;
 gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=output.pdf -dBATCH file1.pdf file2.pdf ...&lt;br /&gt;
The ''-dNOPAUSE'' simply means that '''gs''' won't stop along the way to ask you questions, like &amp;quot;do you want to continue?&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Cutting PDF Files using GhostScript ==&lt;br /&gt;
&lt;br /&gt;
To get only pages 50-60 of a document, use&lt;br /&gt;
 gs -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=my_cut_file.pdf -dFirstPage=50 -dLastPage=60 -dBATCH my_file.pdf&lt;br /&gt;
&lt;br /&gt;
== Converting to PDF using GhostScript ==&lt;br /&gt;
&lt;br /&gt;
You can convert vast array of documents into PDF using '''gs'''; to convert PostScript to PDF, use&lt;br /&gt;
 gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=output.pdf -dBATCH my_file.ps&lt;br /&gt;
GhostScript actually supports incredible array of formats; to check what all you can work with, just run&lt;br /&gt;
 echo 'devicenames == ' | gs -q | tr &amp;quot; &amp;quot; &amp;quot;\n&amp;quot; | sort&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>