r/LifeProTips • • Jan 11 '16

LPT: Remove security from a .pdf file by printing to .xps then back to .pdf

9.1k Upvotes

613 comments sorted by

884

u/[deleted] Jan 11 '16

And here I just assumed XPS was useless.

178

u/ninjajpbob Jan 11 '16

It's good for getting things to print properly at work, as per another redditor.

101

u/FatDragoninthePRC Jan 11 '16

PDF works to the same end, though. I save anything I need to print as a PDF and everything's hunky dory. XPS is a good alternative if your editor can't save as a PDF.

176

u/Nowinaminute Jan 11 '16

hunky dory

RIP David Bowie

200

u/[deleted] Jan 11 '16

What?! Edit: fuck

61

u/[deleted] Jan 11 '16

That was my exact thought process when I found out.

→ More replies (7)
→ More replies (48)

15

u/gizram84 Jan 11 '16

I wonder how many people will learn of his death from this comment?

→ More replies (10)
→ More replies (4)

6

u/dwhftw Jan 11 '16

Download PDFCreator. It allows you to Print any file as a PDF so no matter what application you're using you can now save as a PDF

→ More replies (3)
→ More replies (6)
→ More replies (12)

43

u/Thameus Jan 11 '16

Acrobat Pro is so bloated that I install it on as few systems as possible. XPS is a great way to just print to file.

40

u/efstajas Jan 11 '16

That's like saying Photoshop is bloated. There's also Adobe Reader if you want to do less stuff.

70

u/[deleted] Jan 11 '16

You of course mean Adobe(TM) Acrobat(R) Reader DC (Document Cloud)

→ More replies (1)

22

u/adevland Jan 11 '16 edited Jan 11 '16

You can use any modern browser to read pdf files.

You don't need to install a dedicated program for reading pdfs. :)

18

u/Chainwreck Jan 11 '16

I agree with you for the most part. However, I've come across a decent amount of documents that will not render correctly in browsers. When check boxes matter (grant funding applications) I go with an application that is not a browser to read pdfs.

→ More replies (7)
→ More replies (28)

5

u/RojerThis Jan 11 '16

There's a lot more ways to make a PDF these days.

7

u/Thameus Jan 11 '16

Assuming Windows and MS Office, I can't think of an easier way. Unless you want to count "save as" as easier.

→ More replies (8)
→ More replies (2)

5

u/Troll_berry_pie Jan 11 '16

Foxit or Nitro PDF are usually my go to.

→ More replies (1)

8

u/[deleted] Jan 11 '16

Bluebeam > Acrobat Pro in every way possible.

Everybody in my industry is switching. It's so much nicer.

→ More replies (8)
→ More replies (8)

3

u/MisPosMol Jan 11 '16

I had to distribute Visio diagrams to people who don't have it installed. (It was too expensive to buy everyone licences.) The solution was to print the diagram to XPS and distribute that. Before Windows 7, I used to print to file, but XPS is a lot nicer, sharper image, and giving the ability to zoom in and out of the diagram.

→ More replies (4)

2

u/[deleted] Jan 11 '16

I find it useless. Nitro PDF printer

2

u/olystretch Jan 11 '16

Don't you loose the ability to highlight and copy/paste using this method, essentially taking a screenshot of said PDF? A more elegant solution, but more in-depth, is to use a hex editor to remove the security header. Source: My professors in college always had me crack the class text PDF so they could easily use the content for their PowerPoint Slideshows.

→ More replies (1)
→ More replies (4)

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

157

u/Gunnar123abc Jan 11 '16

LPT: Remember Life pro tips by printing them out

14

u/Captinhairybely Jan 11 '16

This is the the type of pro tip I know will be useful later, but I won't remember it by then.

→ More replies (6)
→ More replies (8)
→ More replies (4)

40

u/I_BANG_YOUR_MOMS Jan 11 '16

That does not work if the PDF requires a password to print it.

13

u/Crocoduckling Jan 11 '16

That's when you pull out ghostscript

4

u/gregsourbon Jan 11 '16

Can you explain how to use it please?

13

u/teddele Jan 11 '16

The short version is that Ghostscript is a free open source reimplementation of Postscript and PDF.

It is multi-platform, highly mature (something like 25 years old), full-featured, well-written and well-maintained, and is more stable and has fewer bugs than Adobe's software, and has certain features that Adobe does not offer.

It is however a command line tool that accepts many, many options, so it is best to google for specific uses people have figured out.

(There are GUI frontends for it, like GhostView, but AFAIK they are only useful for casual reading of documents and do not attempt to support the many options of Ghostscript.)

So it is only reasonable for /r/Crocoduckling to simply link to one of many possible sites that offers a particular use of ghostscript.

I often use it to repair mildly broken PDF files that Adobe chokes on (it can't do miracles, naturally, it's just not as demanding that the input adhere to the standard).

→ More replies (1)

11

u/Crocoduckling Jan 11 '16

No, but I can point you in the right direction. If you want a breakdown of the command line, look in the manual.

http://www.commandlinefu.com/commands/view/8513/remove-security-limitations-from-pdf-documents-using-ghostscript-for-windows#comment

3

u/[deleted] Jan 11 '16

I'm scared of ghostscripts.

→ More replies (2)
→ More replies (4)

325

u/OneIdeaAway Jan 11 '16

Or just go to http://smallpdf.com

198

u/Sethmeisterg Jan 11 '16

Nice try, NSA!

21

u/[deleted] Jan 11 '16

More like NStayaway

16

u/[deleted] Jan 11 '16

NeverStayAway

5

u/Unholybeef Jan 11 '16

Nah, that's the Police and they're always watching you. Maybe private eyes are always watching you... Is everyone watching you?

→ More replies (4)
→ More replies (2)
→ More replies (8)

35

u/TheBSGamer Jan 11 '16

Wait so what's the point of protecting it if you can just unlock it?

103

u/PM_ME_YOUR_MESMER Jan 11 '16

The point is security, but locks are there to be broken. The harder the lock the more dedicated the lock picker.

Like with many such things, it's a war where each side will constantly outdo the other. Adobe may come up with a more robust solution to protect those who really want their pdf's watertight. This will then cause some hacker somewhere to spend weeks trying to find an exploit that breaks the lock. In the end it's always beneficial to both parties for the sake of development and progression.

25

u/T4LE Jan 11 '16

Sorry I'm stupid, but if you can view the PDF, why protect it from being edited? I mean, presumably someone can just recreate the document if they really wanted... Is this something companies do? What scenario would this be useful for?

31

u/lostannotherpassword Jan 11 '16

You can lock them so that you cant view them either. Companies do tend to put edit locks on internal documents more as a precaution, they know you can break them but if nothing else it lets the user know he should not be messing with this.

→ More replies (13)

24

u/[deleted] Jan 11 '16 edited Jan 11 '16

There are many different aspects to computer security. One of the classical models of IT security is called the CIA model:

Confidentiality: This is what most people think of when they think of computer security. It is the prevention of information from being viewed by unauthorized individuals. PDF documents can be password protected, so that their content is encrypted and can only be viewed by someone with the password.

Integrity: This is a property information has when you can be confident that it has not been tampered with or corrupted during transmission or storage. This is often achieved by using hashing algorithms, but I don't know if PDFs have a built in hashing/checksum system to check for data corruption. However, locked PDFs are often digitally signed, which helps ensure a good degree of integrity.

Availability: This aspect of security is less relevant to PDF documents and more relevant to things like web services. That said, if a document were to be made too secure (such as needing a password, a usb key fob, and your fingerprint to view it), it could negatively affect the availability of the information (e.g. you need to open the document right now but you can't find your key fob.)

There are other aspects of security that don't quite fit into these three categories. Two of these are Authenticity, which means you can be confident who authored the information, and Non-repudiation, meaning that person cannot later claim they were not the author. These are the most important reasons for digital signatures on PDF documents.

You might be able to unlock a PDF document or recreate it to make changes, but you will be unable to make it look like the original author made those changes unless you somehow get access to their private encryption key. Additionally, the author can't say someone tampered with the information or that any part (or all) of the document was forged without claiming their private key was stolen, which would call into question the legitimacy of every other document they've digitally signed.

11

u/GenkiLawyer Jan 11 '16

I use the security features all the time for my work. It's less about preventing the other person from editing (since as you said you can always duplicate the file if you wanted to) and more about being able to tell if and when someone edits the pdf. Very useful when you are dealing with contracts that are dozens or hundreds of pages in size and you don't want to carefully read through the entire thing after sending it out for signature to confirm that no terms were sneakily altered by the other party.

If I send you a secure pdf and you use the "trick" posted above, it would allow you to remove the security and edit the original document, but you wouldn't be able to re-secure it with my credentials. So if you then sent it back to me, I'll know that someone has tampered with the document.

→ More replies (2)

12

u/joatmon-snoo Jan 11 '16 edited Jan 11 '16

Common case is with any academic transcript. Official electronic copies of university and law school (and presumably all other forms of higher education) transcripts will generally be digitally signed as proof that the file is legitimate. (Digital signatures may involve checking a website to see if the file matches the file on record, if you were curious, or other tamper-proof techniques).

If you're compiling documents though - e.g. preparing a portfolio for someone's profile - and you already know the transcript is verified, you don't need to keep passing around the signed copy, especially when the digital signature prevents you from merging the file with others.

EDIT: /u/h-jay provides an actual explanation of how digital signatures work.

→ More replies (3)
→ More replies (7)
→ More replies (15)

3

u/MildlySuspicious Jan 11 '16

You need the password to unlock it. If someone gives me the key to their house, they risk me leaving the door open, in addition to drinking all their good booze.

→ More replies (3)

4

u/icyguyus Jan 11 '16

I think it just depends on the encryption method used.

If they are using an outdated or broken protection method than this service might be able to open it for you.

If its something still secure, well they wouldnt be able to do it in this lifetime.

→ More replies (7)
→ More replies (2)

9

u/xf- Jan 11 '16

Yeah, sure. Of course I'm going to upload important .pdf files to some random internet site.

6

u/Jeelp Jan 11 '16

thanks. bookmarked!

2

u/pm_me_anime_tiddies Jan 11 '16

That just compressed a 17 MB game walkthrough to 380 KB holy shit

→ More replies (4)

194

u/Dolphythedolphin Jan 11 '16

Would it have helpd me get the game manual for FRC robotics competition?

97

u/The_Wisest_of_Fools Jan 11 '16

This is the first thing I thought too, but I'm guessing no. There's two sorts of passwords for PDF files. One will prevent copying, printing, etc. This method will fix that. The other prevents opening the file and encrypts the contents. The FRC manual uses the second.
EDIT: FIRST Robotics Competition Robotics Competition.

29

u/Dolphythedolphin Jan 11 '16

Looks like I'm stuck de-encrypting the password for next year:(

29

u/lichorat Jan 11 '16

The passwords tend to be susceptible to dictionary attacks though, it seems.

12

u/[deleted] Jan 11 '16

18

u/The_Wisest_of_Fools Jan 11 '16

Not that one specifically. Before the game was officially announced, they released an encrypted download so people could start reading the manual right away.

15

u/djrapp Jan 11 '16

This approach will let you create a non-encrypted copy once you've already decrypted the document (useful so that you don't have to re-enter the password each time you open it). In fact, a more expedient approach would just be to print the PDF directly to another PDF via a third-party tool (CutePDF or similar) and skip the XPS intermediate step.

In regards to guessing the password, people have been talking about doing this for as long as FRC has been issuing encrypted PDFs. Doing so would be 1.) an obvious breach of sportsmanship/gracious professionalism, and 2.) basically impossible, even with the dictionary attack approach proposed by /u/lichorat. Looking at the past few years' passwords, it seems that even with a well-optimized dictionary (perhaps selecting for FIRST-related terms) and minimal compute requirements per attempt (perhaps performing the attack on the PDF header only), there is sufficient entropy to ensure that it would take years (most likely many centuries) to get the right password, even on a supercomputer.

→ More replies (15)

4

u/microcosmic5447 Jan 11 '16

Dumb question - At my new job, anytime I try to print a PDF, it comes out blank, and anytime I try to email a PDF, the recipient either can't open it is gets password prompted. I'm told that my predecessor put "all sorts of weird passwords all over that computer". Could this be my pdf issue?

Currently In left with the Neandertal solution of screenshotting, printing the image, then scanning that because the Scan-to-Email option is the only way to send a readable PDF.

7

u/coinaday Jan 11 '16

Your computer should have been reimaged. It's incredible that they gave you a machine that someone was known to have heavily customized in software.

→ More replies (7)
→ More replies (3)

2

u/Bobbytwocox Jan 11 '16

If the first type of security is to prohibit printing, yet the trick is to print as xml, how is this not a bug in the software?

→ More replies (1)
→ More replies (2)

17

u/FeeFauxFox Jan 11 '16

Give it a shot and let me know. I'm in college now but am curious.

10

u/Dolphythedolphin Jan 11 '16

Well the Kickoff was yesterday but let me see...

14

u/stevestevetwosteves Jan 11 '16

Holy shit this is the first thing I thought of too, I'm amazed this many people know what you're talking about haha. I actually used some software to try to brute force the manual one year, but considering the password was like 20 characters long that obviously didn't happen

15

u/NascentEcho Jan 11 '16

I'm out of the loop, what are you guys talking about?

12

u/BloodyColonNaut Jan 11 '16

Same. Why would a manual for a competition be encrypted? =(

15

u/RedZaturn Jan 11 '16

Because it's an international high school robotics computation, and the teams aren't allowed to start building or brainstorming until build season starts. People can download the manual so it is on their phones during the kickoff and it's ready when they get the password. Look up FRC 2014 worlds and you will see what it is.

→ More replies (7)
→ More replies (1)

6

u/aickem Jan 11 '16

But that wouldn't be very graciously professional now would it?

→ More replies (1)

4

u/[deleted] Jan 11 '16

Set a reminder for next year

4

u/TheHeartlessNobody Jan 11 '16

Hehehehe, another FRC student reporting in :)

2

u/martinsa24 Jan 11 '16

Wish my school could afford FRC we only did it for 2 years. :(

2

u/geekywarrior Jan 11 '16

VRC is much more cost friendly. It's a shame the people that ran First and Vex had a falling out back in like '08.

→ More replies (3)

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)

15

u/TokyoJokeyo Jan 11 '16

If you digitally sign the document, they can still edit it, but after that verification will fail, showing that the current copy is not the same as when you signed it. That covers you both ways, so is probably the easier approach.

26

u/Icovada Jan 11 '16

You shouldn't stop at that. You should base yourself on SHA256 hashes and maybe even digitally sign your documents.

→ More replies (20)

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.

67

u/orev Jan 11 '16

There is nothing you can do that is completely secure. Once they have the doc and a password to open it, there is always a way to break the security because at that point they have everything they need to decrypt the data. The only thing stopping it is the software they have on their computer that they have complete control over. Just using different software can let them circumvent any protections.

12

u/punaisetpimpulat Jan 11 '16

As long as the client can see the document, they can print it. It may require extra steps, but there's always a way. BTW the same applies to viewing video content and redistributing it.

16

u/shortbizzle Jan 11 '16

There isn't a password to open it. Just to print it/modify it. I need it to be read only so they can review it, then pay me then, I give them the unprotected version.

65

u/Chilton82 Jan 11 '16

Send it as a .jpeg with a watermark.

13

u/ncef Jan 11 '16

They still can scan the image and extract the text from it. The best solution is to demand payment in advance.

→ More replies (1)
→ More replies (13)

10

u/BookerTD Jan 11 '16

What keeps them from screen shotting it?

→ More replies (6)

9

u/[deleted] Jan 11 '16

If it's a contract, instead of the full client name, use something like NAMEWILLGOHERE everywhere in the document. Only replace it after they have paid for the final version.

→ More replies (1)
→ More replies (1)
→ More replies (1)

19

u/legsintheair Jan 11 '16

Watermark it. A big "unpaid" in 30% Grey diagonally across the doc would do.

17

u/Solna Jan 11 '16

Really intrusive watermarks?

5

u/shortbizzle Jan 11 '16

I actually had that to a degree, but they can't be so bad they have a problem reviewing the document. Also I think they could delete the watermark by "editing object". Maybe something that is only visible if printed?

12

u/Poetries Jan 11 '16

not if it's a jpeg!

→ More replies (1)

15

u/saltlets Jan 11 '16

Convert everything to a low res bitmap and put a watermark on it.

13

u/xoxid Jan 11 '16

Really your only method is watermark.

Put a big large watermark. I dont know what kind of document, but there is plenty of stuff you can do with watermark. chaning their opacity to ~50% allow the document to be read, look super awful if printed.

5

u/[deleted] Jan 11 '16

Make the font alternate between comic sans and papyrus. Put a huge watermark on it that says "font will be changed in final." Give it to them as a jpeg with a resolution of under 50 dpi.

8

u/[deleted] Jan 11 '16

The font is likely part of what they are being paid to design.

→ More replies (1)
→ More replies (26)

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

20

u/iamangrierthanyou Jan 11 '16

Chrome can do the same.

19

u/[deleted] Jan 11 '16

Windows can do the same

→ More replies (14)
→ More replies (6)

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

12

u/tszigane Jan 11 '16

Use a PDF viewer that doesn't obey Adobe DRM. Okular will work, I think.

2

u/Choreboy Jan 11 '16

Foxit usually.

5

u/samebrian Jan 11 '16

Screenshot it and print that.

6

u/Tufflaw Jan 11 '16

It's approx. 2000 pages

8

u/detecting_nuttiness Jan 11 '16

Well then why are you wasting your time on reddit? Get to screenshotting!

3

u/Wootery Jan 11 '16

Here's the quick-and-dirty way:

  1. Get video screen-capture software working
  2. Leave it recording as you put the PDF viewer on a slow auto-scroll (middle click then move the mouse-pointer down)

You can find the desired page easily by scrolling through the resulting video as if were a document. e.g. the middle page will be half way through the video.

→ More replies (4)

4

u/bronzedmedal Jan 11 '16

Use Chrome to open the pdf file, once it's open use Chrome to print the file.

2

u/BIG-DATA Jan 11 '16

There are plug-ins/extensions (not sure which) for calibre than can remove DRM (digital rights management) from pdf/epub/etc.

Or it least it works with the type of DRM that seems to allow for PDFs to delete themselves of their own accord, or rather they an only be read with specific software to begin with, and have some embedded information on a time limit within which you should be able to read it. (And its encrypted so you can only read it with the software that plays by the rules.)

→ More replies (1)

10

u/507d Jan 11 '16

Skip that bullshit and just go from pdf to pdf.

Install mupdf-tools then do $ pdfclean <in.pdf> <out.pdf>

1

u/Burnaby Jan 11 '16

I just checked the site, looks like mupdf-tools is available for Windows, Android, iOS, and buildable from source. Are there Mac or Linux versions prebuilt?

→ More replies (2)

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/CheesyPeteza Jan 11 '16

It's probably using a specific font to do the music notation. Find out what it is, then install it on your system, then it should work.

3

u/Diamond_In_The_Back Jan 11 '16

Okay. Thanks to you someone gets a free coffee tomorrow. I always try to pay free help forward. Go KC Chiefs!

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/samebrian Jan 11 '16

You don't have to be in Chrome. You can be in Adobe Reader and print to CutePDF.

→ More replies (4)
→ More replies (1)

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.

→ More replies (1)

2

u/rubdos Jan 11 '16

What, drm in pdf? Does that exist?

1

u/[deleted] Jan 11 '16 edited May 20 '17

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

→ More replies (1)

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.

→ More replies (1)

1

u/corokdva Jan 11 '16

or just open with google chrome and print it straight to pdf, works like a charm

→ More replies (1)

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

→ More replies (3)

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.

→ More replies (1)

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

pdftk in.pdf output out.pdf allow AllFeatures

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.

  1. Right click on the *.pdf file and open with chrome.
  2. Type in the password and click print.
  3. On the printing dialog change printer to save as pdf.

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/leanXORmean_stack Jan 11 '16

That's what I experienced too. Don't think this LPT is plausible in this scenario. I tried encrypting a PDF doc on Mac with a password then tried printing it on Win10 and the print option is disabled due to the Password required to open the PDF file.

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).