Acrobat Reader allow us to easily save a copy of the PDF document. How can I save only from page 5 to 10 without purchasing a PDF editing tool?
7 Answers
You can send page 5 to 10 to a PDF-printer in such a case. Installing a printer that can print to pdf is freeware, and can be done with little loss.
-
3
-
-
You can use PDFZip to split and merge PDF file: faradaysoft.blogspot.com/2017/06/pdfzip.html Jun 22, 2017 at 3:19
-
Windows has a built in PDF-Printer (Microsoft Print to PDF) in Windows 10 May 12, 2019 at 20:41
There are several posibilities:
- You can use the freeware pdftk. It's an command line program that can extract pages from existing PDF pages and save then again as PDF. There are also several GUI based tools available that base on pdftk.
- PDF split and merge
- Furthermore there is even an free online service for extracting PDF pages.
-
It wouldn't feel right to use a free online tool for pdfs containing any form of personal or sensitive information Aug 2, 2017 at 21:33
If you install pdftk you can do it with the command pdftk cat
. The syntax is weird though, so copy carefully:
pdftk in.pdf cat 2-20 output out.pdf
The PDFill Free PDF Tools include a simple GUI tool for doing this on Windows:
I've found this to be useful for Windows users who don't want to pay for a PDF editor or use the command line. The free tools support various other features like cropping, rotating and page numbering, and while the website encourages you to buy the full-featured PDFill PDF Editor, the free tools don't expire, watermark your PDFs, or nag you to upgrade.
Another free online tool that does what you are asking:
Extract PDF pages: http://www.sejda.com/extract-pdf-pages
Upload the file, specify the page ranges that you want to extract to a separate file (10-20, 22-) and click "Split".
Its an online service, nothing to install.
There's a command line tool as well, if you prefer that: Sejda PDF command line tool
./bin/sejda-console extractpages -f /input/file.pdf --pageSelection 4-10,20- -o /outputDir
Better than the printer solution since this won't change/alter the original PDF pages.
Disclaimer: I'm one of the developers.
-
1Thanks for including the disclaimer. Just FYI, site standards have changed a bit since this question was posted 3 years ago. You could improve your answer, possibly even attract upvotes, if you expand it to include the procedure to accomplish the solution. That also tends to attract people to try your tool because it overcomes the hurdle of anticipating having to figure out how to use it. Jun 16, 2015 at 14:49
-
BTW, consider answering questions besides ones for which Sejda is an answer. Users who contribute with a variety of questions and answers tend to get a lot of leeway to occasionally post answers that recommend their own tools. If all of your answers just recommend your own stuff, it may be viewed as overly promotional, even if the answers, themselves, are high quality. Just a heads up. Jun 16, 2015 at 15:06
-
Edi: As @fixer1234 said, promoting your own product overly so tends to look like spam and is frowned upon. Please refrain from posting too much about your own product and consider contributing in some other ways as well. Jun 16, 2015 at 15:36
You can create a CMD/Batch script that uses Ghostscript to export pages 5 to 10 of a PDF; you'll first need to ensure that Ghostscript is installed on your Windows machine. Ghostscript can be downloaded from its official website or via Chocolatey:
choco install Ghostscript -y
Once you install Ghostscript, you can write a batch script like the one below. This script assumes that your system's PATH includes the Ghostscript executable (gswin64c.exe
for 64-bit systems or gswin32c.exe
for 32-bit systems). If it's not, you'll need to provide the full path to the executable in the script.
Create a new text file and rename it to something like ExtractPages.bat
, then paste the following script:
@echo off
setlocal
:: Set the path to the input PDF file
set "InputPDF=%~1"
:: Check if the file exists
if not exist "%InputPDF%" (
echo File not found: %InputPDF%
exit /b 1
)
:: Set the page range you want to extract
set "StartPage=5"
set "EndPage=10"
:: Set the path to the output PDF file
set "OutputPDF=%~dpn1_pages_%StartPage%_to_%EndPage%.pdf"
:: Run Ghostscript command
gswin64c.exe -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER ^
-dFirstPage=%StartPage% -dLastPage=%EndPage% ^
-sOutputFile="%OutputPDF%" "%InputPDF%"
:: Check if the output was successful
if exist "%OutputPDF%" (
echo.
echo Pages %StartPage% to %EndPage% extracted to: %OutputPDF%
) else (
echo.
echo Failed to extract pages.
)
endlocal
To use this script, you would run it from the command line, passing the path to the PDF file as an argument. For example:
ExtractPages.bat "C:\path\to\your\document.pdf"
This will create a new PDF containing only pages 5 to 10 of the specified document. Remember to replace gswin64c.exe
with gswin32c.exe
if you're on a 32-bit system.
Here is free tool that can do exactly what you are asking :
http://multi-convert.com/split-pdf
Put start and end pages + number of the pages in the single file.