Unlock a password-protected document in MS WORD

Why would you want to unlock a password-protected Word document? Surely the author/company has locked it for a reason? Yes, in many cases, that’s correct and you shouldn’t try to circumvent the password protection — instead, ask the author/company for the password if you need to access elements of the document.

However, if the author has left the company, or if they wrote the document many years ago and have forgotten the password, then you may need to break the password protection to access the document’s contents and functions.

You can follow the steps in the link above, or, in case the content at that link gets removed at any stage, follow my modified and more detailed steps below, which are based on that article:

  1. Open the password-protected document in Word.
  2. Go to File > Save As, then select Word XML Document (*.xml) from the Save as type drop-down list.
  3. Click Save. Close the application.
  4. Right-click on the saved XML file (it should be in the same folder as your original document), then select Open with and choose a text editing program to open the file with (e.g. WordPad, NotePad, or other text editing program — do NOT choose Microsoft Word).
  5. Press Ctrl+F to open the Find dialog box, in the Find what field, type enforcement.
  6. Now find this  w:enforcement=”1″ or w:enforcement=”on”.
  7. Replace the “1” with a zero “0” (or replace “on” with “off”) to disable enforcement. This step unlocks the document.
  8. Save the XML document within your text editor, then close the text editing software.
  9. Right-click on the saved XML file, then select Open with and choose Microsoft Word.
  10. As soon as you’ve opened it, go to File > Save As, then select Word Document (*.docx) from the Save as type drop-down list. Change the file name if you want to preserve the original password-protected document an make this a new document, or use the same file name to replace the original document.
  11. Click Save now you can edit the document.

password_protected02

 

Advertisements

How To Show Developer Tab In Word?

Step 1: Click Office icon on the top left of Word, and then click Word Options button.

doc-show-developertab-1
Open this pop up

Step 2: Click on Word Options.

Step 3: Check Show Developer tab.

doc-show-developertab-2

Step 4: Click OK button, and developer tab will be shown in the ribbon.

HOPE THIS HELPS!!

 

 

 

 

 

 

 

Repeating text within a document in MS WORD

If you have some text in a Word document that you’d like to repeat a document and don’t want to write it again, and you’d rather not copy/paste it from the other location as that means that you’ll have to remember to maintain it in both places if there are changes. If another author takes over the document, they may not know that they have to update this text in two or more places if there are changes, either.

Continue reading “Repeating text within a document in MS WORD”

<bits/stdc++.h> header file in C++

It is basically a header file that includes every standard library. In programming, people focus more on finding algorithm to solve a problem than on software engineering. From, software engineering perspective, it is a good idea to minimize the include. It actually includes a lot of files, which your program may not need, thus increases both compile time and program size unnecessarily.

Continue reading “header file in C++”

Fixing a header after scrolling to a certain point

For this we have to use javascript for fixing header at a certain point.

$(document).scroll(function() {
 var y = $(document).scrollTop();
 header = $("#menu");
 if (y >= 200) {
 header.css({
 position: "fixed",
 "top": "0",
 "left": "0"
 });
 } else {
 header.css("position", "relative");
 }
});

So here #menu is the id of the header that i want to fix .

Continue reading “Fixing a header after scrolling to a certain point”

 

Parallax Scrolling Effect

This is purely based on html and css.

Parallax is an effect where the position of an object seems to be different when viewed from different positions. Parallax motion, or in our case, parallax scrolling, then gives us the illusion that two objects in the same line of sight, but with distance between them, seem to move at different speeds.

Continue reading “Parallax Scrolling Effect”

The following 3 asymptotic notations are mostly used to represent time complexity of algorithms.


1) Θ Notation: The theta notation bounds a functions from above and below, so it defines exact asymptotic behavior.
A simple way to get Theta notation of an expression is to drop low order terms and ignore leading constants.

For a given function g(n), we denote Θ(g(n)) is following set of functions.

Θ(g(n)) = {f(n): there exist positive constants c1, c2 and n0 such that 0 <= c1*g(n) <= f(n) <= c2*g(n) for all n >= n0}

Continue reading “Asymptotic Notations”

Create a free website or blog at WordPress.com.

Up ↑