https://github.com/raymondev/corruptpdfgenerator
This program creates a PDF with the name of your choice that cannot be opened
https://github.com/raymondev/corruptpdfgenerator
Last synced: 8 months ago
JSON representation
This program creates a PDF with the name of your choice that cannot be opened
- Host: GitHub
- URL: https://github.com/raymondev/corruptpdfgenerator
- Owner: RaymonDev
- License: mit
- Created: 2021-02-28T05:46:19.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-22T23:57:38.000Z (almost 5 years ago)
- Last Synced: 2025-02-28T11:58:02.790Z (12 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CorruptPDFGenerator
This program creates a PDF that cannot be opened.
## How it works
This program creates a new pdf file (in the same directory as the code) that cannot be opened. The pdf created has no attributes, so it cannot be opened. If you want to corrupt a pdf manually, you can change the extension of that pdf into a txt, then delete the first line:
```
%PDF-1.4
```
or something similar. This is the version of the PDF file and/or the PDF version of your computer. When deleted, change an other time the .txt extension to .pdf and try to open it.
### Requisites:
This program does not require any library. It has been tested on Python 3.9, but it works with every version of python that supports the OS library.
### Installing
- Download or clone the repository.
- Execute the Python file (with launcher.bat or witht any other prefered method)
- A command prompt window should appear.
### How to use:
- Execute the script (a command prompt window should appear)
- Introduce the name of the file (it can contain spaces, numbers...)
- Press enter.
- A new file will be crated in the same directory as the code, this will be the corrupted pdf. This pdf cannot be opened.
### Works for sure on:
- Windows 10 with Python 3.9