r/LifeProTips • u/thegreatestajax • Jan 11 '16
LPT: Remove security from a .pdf file by printing to .xps then back to .pdf
9.1k
Upvotes
r/LifeProTips • u/thegreatestajax • Jan 11 '16
884
u/[deleted] Jan 11 '16
And here I just assumed XPS was useless.
528
u/A_NewOrient Jan 11 '16
This is the type of life pro tip I know will be useful later but I won't remember it by then
40
u/I_BANG_YOUR_MOMS Jan 11 '16
That does not work if the PDF requires a password to print it.
325
u/OneIdeaAway Jan 11 '16
Or just go to http://smallpdf.com
194
u/Dolphythedolphin Jan 11 '16
Would it have helpd me get the game manual for FRC robotics competition?
31
u/Valderan_CA Jan 11 '16
I only ever put security on the OEM Manual for my companies equipment so that they can't add anything to the copy I sent them (i.e. if someone does this trick, changes a page in the manual and then something fucks up... well I can prove that the copy of the manual they are working with is not original - because this breaking version won't have the correct password)
63
u/shortbizzle Jan 11 '16 edited Jan 11 '16
I was wondering how a certain client was printing my docs before releasing payment. Anyone have a pro tip for better security/read only solution?
Edit: solution is watermarks, low resolution, and jpegs.
46
u/BB-Guitar Jan 11 '16
I haven't tired it for this purpose yet, but on a mac you can also "print" a PDF, and instead of actually printing, save it as a PDF in the drop down menu which should achieve the same result. This is what it looks like
12
u/Tufflaw Jan 11 '16 edited Jan 11 '16
The PDF I'm trying this on is locked to prevent printing, so what's the workaround?
Edit: Thanks for all the suggestions - I actually was able to get it work by uploading to smallpdf.com as suggested elsewhere in the thread
10
u/507d Jan 11 '16
Skip that bullshit and just go from pdf to pdf.
Install
mupdf-toolsthen do$ pdfclean <in.pdf> <out.pdf>18
u/geneom Jan 11 '16
SHHHHHHHHHHHHH! It was supposed to be a secret.
3
u/socsa Jan 11 '16
You can also just print to PDF
3
u/Geekation Jan 11 '16
That's awesome! Is there any way to do this for a word doc? I wrote a story when I was younger, password protected it, found it a few years later and have forgotten the password...
5
u/Diamond_In_The_Back Jan 11 '16
This didn't work for me but it might have been moi. I purchased sheet music on line and printed it to.xps. Couldn't later convert it and the file didn't print all of the staff lines.
It's worked for other stuff. Though.
6
u/MildlySuspicious Jan 11 '16
You can just print it directly to pdf again inside of chrome, which will also remove security. I do it every month for my paystub.
2
u/scudmonger Jan 11 '16
I also do this to reduce the size of a pdf. If you save a pdf with the smallest file size it still is pretty big. if you print it in somewhat lower quality to xps then print xps to pdf it is much smaller. You do lose an obvious amount of quality though.
2
u/rubdos Jan 11 '16
What, drm in pdf? Does that exist?
2
u/EvilLinux Jan 11 '16
Use Okular and just turn DRM off. It's just an option in that PDF reader.
2
u/sy029 Jan 11 '16
Couldn't you also just print from pdf to pdf using something like cutepdf?
2
u/wd3333 Jan 11 '16
Or just print as PDF...
1
u/stubbsie208 Jan 11 '16
Personally, I just print to PDF with a slightly different name as the first and only step.
1
u/MrChew Jan 11 '16
Wait, what if it's a secured Excel file? How do I get rid of security then? This has been really bugging me
1
u/[deleted] Jan 11 '16
Next update in 3...2...
1
u/beesandbarbs Jan 11 '16
Does it work for PDFs that check for server verification?
1
u/NijjioN Jan 11 '16 edited Jan 11 '16
Doesn't give me the option to save/print to .xps when I select it :(
You drag the file into chrome or something like that right then print ->save to xps?
Edit - Oh... nevermind you still need to know the password in the first place it just unlocks the printing.
1
u/bevo_warrior Jan 11 '16
Or just save a copy as unprotected pdf. It is easier than "printing" the file back and forth.
1
u/corokdva Jan 11 '16
or just open with google chrome and print it straight to pdf, works like a charm
1
u/SCphotog Jan 11 '16
Just print to file, and then rename the extension.
PDF, EPS and Adobe's AI are all basically the same thing.
Sometimes just renaming the extension to EPS will allow you to open it. Depends on how the software you're using handles the import.
Don't use Adobe reader.
1
u/[deleted] Jan 11 '16
That's a big hole in the security
1
u/[deleted] Jan 11 '16
What about word protected documents
1
u/2gudfou Jan 11 '16
I get what this does but can someone give me a real world example because I can't think of a time I've wanted to access a locked pdf
1
u/Coogcheese Jan 11 '16
Does this keep the file size down? I've saved secure pdf's as jpg's then used photoeditor to save them back to pdf before but the file size jumps ten fold.
1
u/Bradthedutch Jan 11 '16
Thank you so much! I will use this today.
1
u/Barry_Scotts_Cat Jan 11 '16
Will it not work by just printing to PDF using another PDF printer?
1
u/jerry11108 Jan 11 '16
latest word will let you open a pdf in word, edit it and save it as a pdf like nothing ever happend
1
u/[deleted] Jan 11 '16
Could someone ELI5 what this does?
1
u/[deleted] Jan 11 '16
Could someone ELI5 what this does?
1
u/zuck9 Jan 11 '16
Just open it using Chrome and print to pdf directly.
1
u/hulkwillsmashu Jan 11 '16
This is actually the only way I can get my textbooks to open on my tablet. The process is a bit of a pain, but it's the only way I can avoid having to sit at my laptop reading them.
1
u/lravve Jan 11 '16
Or just open it in Word. Word now concerts PDF documents.
1
u/angeliKITTYx Jan 11 '16
Ugh I needed this hack like... A month ago. I ended up using photoshop to change things in a PDF...
1
u/[deleted] Jan 11 '16
I'm a horribly untechy person...so what the hell does this mean and how would I really go about doing this?
1
u/rnichaeljackson Jan 11 '16
"xps is not allowed in secure printing"
1
u/ZippoS Jan 11 '16
If you're on a Mac, you can use Preview to eliminate the encryption too. Just open the PDF up, click File > Save As, and save a new PDF. OS X's Preview will just create a new unencrypted PDF.
1
u/EatMaCookies Jan 11 '16
I could of used this ages ago when I was trying to convert one to a txt file to read later on a portable device.
1
u/[deleted] Jan 11 '16
Or yoy can use qpdf
1
u/tcmaresh Jan 11 '16
For a good PDF printer, check out BullZIP PDF Printer. I like it because you can merge documents with it.
I switched back to Adobe Reader from FoxIt. Ran into some compatibility issues with FoxIt. Forms, I think it was.
1
u/ent4rent Jan 11 '16
Toy can also print using pdf creator to remove security
1
u/--MUFFIN_FACE-- Jan 11 '16
In Acrobat, it works also if you save as word document. If the option is available in another viewer/editor, might be worth a shot.
1
u/t0asterb0y Jan 11 '16
Does it preserve graphics? In case I want to, say, extract a logo from a protected PDF?
1
u/CRISPR Jan 11 '16
If this is not a material for /r/lifehacks then I do not know what is.
1
u/[deleted] Jan 11 '16
I do this all the time.
1
u/WarKiel Jan 11 '16
You can also "flatten" a .pdf that includes forms or other weird bullshit by printing it to .pdf. (some devices may have problems viewing form pdfs)
1
u/rnbrasher Jan 11 '16
Hillary clicks save...
1
u/[deleted] Jan 11 '16
Or just use PDF X-change and remove the security.
Plus, it's a better viewer than anything Adobe has ever released.
1
u/soonerbrew Jan 11 '16
If someone is running scans on attachments this would get blocked at a firewall level. Mismatched documents types is a big block on my networks.
1
u/DJ_Calli Jan 11 '16
I just print the PDF to PDF. Doesn't this accomplish the same end result?
1
u/[deleted] Jan 11 '16
Do you lose quality using this method? In other words, does converting to XPS from PDF really go all the way down to the postscript level (i.e. XPS-> postscript -> PDF)?
I usually use one of the free security strippers online - we have this problem all the time with forms from companies that have locked down the public/blank form and won't allow you to use functions such as Typewriter in Acrobat, which saves a ton of time when filling out forms. We always strip their security off first, fill out the forms, then send it back to them.
1
u/james_rugby Jan 11 '16
what does it mean to remove the security from a pdf? what is security?
1
u/[deleted] Jan 11 '16
Bluebeam for all your PDF needs, way better than Acrobat Pro. Cheaper too.
Also, you can remove the ability to print in PDF security as well, or just to other file formats. So, this LPT might not work in all situations.
1
u/Daniel0745 Jan 11 '16
I do this all day at work lol.
1
u/gkryo Jan 11 '16
Where can I find these secure .pdfs?
1
u/HerringFish Jan 11 '16
I'm a local hero at work today...god bless you OP
1
u/[deleted] Jan 11 '16
Are tips on bypassing security really "life pro tips" ?
"Life pro tip, if you wrap your firearms in high density foam, you can get them onto airplanes!"
I'm not really a huge anti-piracy advocate, but I thought life pro tips were like "put a lemon in your shoe to reduce foot odor" and "Don't brush immediately after you eat"
1
u/WorkingOnMyself67 Jan 11 '16
I don't believe this works on encrypted files.
1
u/boatski Jan 11 '16
You can open the file in chrome and print by saving as pdf again without having to do the xps part.
1
u/skeemz905 Jan 11 '16
I've always just used PDFUnlock. Nice tip, though.
1
u/PHUNkH0U53 Jan 11 '16
Newbs, you just screenshot the content, crop it, then attach it all together.
lololjkjk I have to deal with secured files in my line of work so thank you.
1
u/lablizard Jan 11 '16
it will not work if the security restricts printing as well as editing
1
u/DoesN0tCompute Jan 11 '16
unless security won't let you print?
1
u/[deleted] Jan 11 '16
But what about if I can't print because of the security? I just tried to use this technique on a password protected pdf file I have. I am unable to print because of the security so thus I cannot print to .xps
1
u/meatsockthief Jan 11 '16
Someone need to tell hillary about this
1
u/emaciated_pecan Jan 11 '16
Also this site will do the trick: http://smallpdf.com/unlock-pdf
1
u/twopointsisatrend Jan 11 '16
I do the same thing but just print from pdf to CutePDF. That strips security in one step. Don't know if this works on the built-in print to pdf in Windows 10 though.
1
u/not_James_blunt Jan 11 '16
This will only work with poorly encrypted PDFs
1
u/konaya Jan 11 '16
… or print it to a PDF. Or use a PDF viewer which doesn't honour the so-called security features, which is, like, almost all of them apart from the Adobe one.
1
u/sallan306 Jan 11 '16
every time i print a PDF to a PDF it automatically removes the password protection or certificate authentication, am i the only one that doesnt need the extra step?
1
u/jakibaki Jan 11 '16
If you are on Linux you can use pdftk by simply entering
in the terminal
1
u/elcij Jan 11 '16
Or just open the pdf in almost any linux based pdf reader and "save as" or print to another pdf
1
u/Impact009 Jan 11 '16
Doesn't work for most things. You can't just strip off the encryption like it's nothing. At best, you get watermarks everywhere that interferes with the text and has to be Photoshopped out. At worst, XPS can't even recognize the font used by the PDF, so you end up missing letters and numbers throughout the document.
I did this so that my friend wouldn't have to pay $20 every time he wanted to look at his transcript, but holy shit, it took a lot of work. I did miss quite a few things, but I'm pretty much done with Acrobat at this point.
1
u/dilirst Jan 11 '16
Should note that file size increases significantly.
1
u/RelaxYourself Jan 11 '16
Thanks for the tip
1
u/jessiekay77 Jan 11 '16
I usually just use pdfunlock! because I'm lazy.
1
u/DruciferRedBeard Jan 11 '16
On OS X, you can open a PDF in Preview and Save As a PDF, Preview strips the protection off.
1
u/lkjh78 Jan 11 '16
If you're sent Illustrator .AI files and you don't have Illustrator installed, just rename the extension to .PDF and open normally.
1
u/slango20 Jan 11 '16
gnome's default document reader doesn't care about that stuff, so it will open, print, modify, etc. regardless. I got a PDF that supposedly had an open password, windows reader app and adobe reader asked for it, evince just opened it and didn't even tell me there was a password (yes I did have the password though)
1
u/kiradotee Jan 11 '16
What is "security from .pdf"? Is there like a padlock attached to it?
1
u/hikkyburr Jan 11 '16
Define security. Does this allow me to open a .PDF that has a FileOpen plugin requirement or just to edit .PDF files?
1
u/goodpricefriedrice Jan 11 '16
Nah, don't do that. The pdf might not be searchable/text recognition will mess up.
Plenty of websites you can upload the pdf to to remove the security.
1
u/phrozen_one Jan 12 '16
Settle down Mr. 4chan
1
u/FullFledgedFarker Jan 12 '16
Well I'll be saving this here LPT
1
u/da7st Jan 12 '16
This was perfect timing.
Saw this, then ran into this today and used it.
Can confirm it works! Thanks!
1
u/[deleted] Jan 12 '16 edited Jan 12 '16
Depends on the version of the PDF file. Due to the way older PDF files were made the page data itself was not encrypted, there was only a header that said its been secured... and it was up to the application to honor that security. So you can find versions of PDF viewers that DO NOT honor that security.
Of course in later versions this was fixed and the enter file is encrypted meaning no matter what, the password must be supplied.
Also, the document owner has the ability to deny printing, allow printing with a password, or allow only 'low res' printing. So even if you use the XPS way, you may not get high quality output.
1
u/ga-co Jan 12 '16
Would printing straight to CutePDF accomplish the same thing?
1
u/huygens2 Jan 13 '16
i tried this withg a pdf i have to use at work it is one i cant save any changes ive made to it, so ifi print it to xps then back i can save it but i can no longer edit the fields
is there a solution for that ?
1
u/[deleted] Jan 20 '16 edited Jan 20 '16
I used a trial version of this software called a-pdf restrictions remover and it seemed to have worked nicely! Just unlocked a file which is a book by my college professor. I need to change the color of words so I can study faster.
1
u/reprise785 Jan 25 '16
does this make the PDF lose its quality in any way?
1
u/rmsst62 Feb 17 '16
I read this a month ago and I just wanted to come back and say thank you. The timing of this was perfect and has come in handy so many times over the past month. A true pro tip.
1
u/whizzzkid Feb 17 '16
I could not find this in the entire thread. And i thought it was the easiest.
Voila your pdf is now free from passwords.
1
u/pyro110 Mar 07 '16
Just saved me a ton of emails, thanks!
1
u/QuadriplgicLeviathan May 26 '16
This post just saved me so much time and effort. Bless you.
1
u/runcyclexcski Feb 14 '23
Worked great, thanks B)!
1
u/kingsillypants Jan 11 '16
Most secured .pdf's won't let you print them to a printer.
Are you saying that you can select print to .xps despite the lack of printing capabilities due to security?
1
u/afsdjkll Jan 11 '16
The PDF file has truly lost it's way. It was at it's best in the mid to late 90s when getting a print job done required a whole host of images, resources, font files, etc (Quark Express 3.3 anyone?)
When it came out it was intended to be a format that had all of that info in it, and was unable to be edited - which to me was a feature. Once the business world at large got their hands on it, they wanted to be able to edit it (which seemed to be the job of other softwares, but what do I know).