evince $encryptedfilenamepdf & firefox $encryptedfilenamepdf & exit 0Įvince v3.28.4 does not accept any of the passwords containing. txt $filenametxt)_encrypted.pdf qpdf -encrypt $userpassvar $ownerpassvar 256 -use-aes=y - $filenamepdf $encryptedfilenamepdf # Show the info of the encrypted PDF: pdfinfo -upw $userpassvar -opw $ownerpassvar $encryptedfilenamepdf # Open the encrypted PDF with Evince and Firefox with the user/owner password. txt $filenametxt).pdf cupsfilter -e $filenametxt > $filenamepdf # Encrypt the PDF file and change the extension to : userpassvar="ä" # "åäö" ownerpassvar="å" # "åäö" encryptedfilenamepdf=$(basename -s. ![]() cd /tmp # directory where the three files will be created filenametxt="foo.txt" tr -dc a-z1-4 50' | tr 3-4 ' ' | sed 's/^ *//' | cat -s | sed 's/ / /g' | fmt | head -30 > $filenametxt # Create a PDF file from the text file: filenamepdf=$(basename -s. ![]() # Script requires: qpdf poppler-utils printer-driver-cups-pdf cups-filters # If not present, install it: # sudo apt-get install qpdf poppler-utils printer-driver-cups-pdf cups-filters # Generate a random text like lorem ipsum. #!/bin/bash # test_case_01.sh # Tested on GNU bash v4.4.20 on Ubuntu 18.04LTS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |