# HOWTO: Remove password protection / encryption from PDFs

**URL:** <https://tw.forumosa.com/t/howto-remove-password-protection-encryption-from-pdfs/254845>\
**Category:** Technology\
**Tags:** banking, pdf\
**Created:** [December 3, 2025, 4:16am UTC](https://tw.forumosa.com/t/howto-remove-password-protection-encryption-from-pdfs/254845 "2025-12-03T04:16:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qwert\_zuiop](https://forumosa-12829.kxcdn.com/user_avatar/tw.forumosa.com/qwert_zuiop/32/87708_2.png) [@qwert\_zuiop](https://tw.forumosa.com/u/qwert_zuiop)\
**Post date:** [December 3, 2025, 4:16am UTC](https://tw.forumosa.com/t/howto-remove-password-protection-encryption-from-pdfs/254845/1 "2025-12-03T04:16:55Z")

</div>

Wanted to share this for some time as others might face the same issue in Taiwan:

The government, banks and many companies in Taiwan love encrypted PDFs for some reason.

Mostly, one’s ARC-number / ID-number will be used as a password - however, there are exceptions: Sometimes, it’s the passport number - sometimes it’s a combination of an account number / birthday and other data.

For me, this caused lots of headaches as I wanted to archive those PDFs without remembering the specific password for each file (and over the years, many of those numbers will change…).

What finally worked for me was a simple open-source tool to remove the password protection without modifying the actual document (another way seems to be to print the PDF to another PDF - but this caused the size to increase in many cases for me):

> **[GitHub - qpdf/qpdf: qpdf: A content-preserving PDF document...](https://github.com/qpdf/qpdf)**
>
> qpdf: A content-preserving PDF document transformer

(If you’re on Windows, go to [releases](https://github.com/qpdf/qpdf/releases) and download the one ending in `-msvc32.zip`. Then, unzip to a location on your computer).

Then, you simply call the program

`qpdf.exe --decrypt --password=%password% "%inputFile%" "%outputFile%"`

And voilá - the password is gone!

With the help of ChatGPT, I created a small shell script which allows me to drag&drop the file I want to encrypt into it, enter the password - and the rest will be handled automatically (Assuming you unzipped the program to `C:\Program Files (x86)\qpdf-11.9.1-msvc32`) - save as `unprotect_pdf.bat` on your computer and then simply double-click:

```auto
@echo off
setlocal enabledelayedexpansion

:Start
:: Ask for the input file path
echo Please enter the full path to the PDF file (including the extension):
set /p inputFile=

:: Remove enclosing quotes if provided
set inputFile=%inputFile:"=%

:: Check if the file exists
if not exist "%inputFile%" (
    echo File does not exist. Please try again.
    echo.
    goto Start
)

:: Extract the directory and filename without extension
for %%F in ("%inputFile%") do (
    set inputDir=%%~dpF
    set inputFileName=%%~nF
)

:: Ask for the password
echo Please enter the password for the PDF file:
set /p password=

:: Set the output file path
set outputFile=%inputDir%!inputFileName!_unprotected.pdf

:: Run the qpdf command
"C:\Program Files (x86)\qpdf-11.9.1-msvc32\bin\qpdf.exe" --decrypt --password=%password% "%inputFile%" "%outputFile%"

:: Check the result
if %errorlevel% equ 0 (
    echo PDF password removed successfully.
    echo The unprotected file is saved at: "%outputFile%"
) else (
    echo Failed to remove the password. Please check the input file and password.
)

:: Loop back to the start
echo.
goto Start

```

Hope this helps someone!

---

<div class="post-metadata">

**Author:** ![Chris59](https://forumosa-12829.kxcdn.com/letter_avatar_proxy/v4/letter/c/7cd45c/32.png) [@Chris59](https://tw.forumosa.com/u/Chris59)\
**Post date:** [December 3, 2025, 4:36am UTC](https://tw.forumosa.com/t/howto-remove-password-protection-encryption-from-pdfs/254845/2 "2025-12-03T04:36:29Z")

</div>

I use: [Solutions for all PDF problems - 100% free - PDF24](https://www.pdf24.org/en/)

---

<div class="post-metadata">

**Author:** ![Brianjones](https://forumosa-12829.kxcdn.com/letter_avatar_proxy/v4/letter/b/eada6e/32.png) [@Brianjones](https://tw.forumosa.com/u/Brianjones)\
**Post date:** [December 3, 2025, 5:32am UTC](https://tw.forumosa.com/t/howto-remove-password-protection-encryption-from-pdfs/254845/3 "2025-12-03T05:32:26Z")

</div>

Really helpful guys.
