Here's the code to complete the `add_document()` function to add a document to the queue and the `print_documents()` function to iterate over the queue while it has elements, and remove each document in the queue:
```
class PrinterTasks:
def __init__(self):
self.queue = Queue()
def add_document(self, document):
# Add the document to the queue
self.queue.put(document)
def print_documents(self):
# Iterate over the queue while it has elements
while not self.queue.empty():
# Remove the document from the queue
print("Printing", self.queue.get())
```
This creates a class called `PrinterTasks` with a constructor that initializes a `Queue` object called `queue`. The `add_document()` method adds a document to the queue using the `put()` method. The `print_documents()` method iterates over the queue using the `empty()` method to check if the queue is empty, and removes each document from the queue using the `get()` method and prints it.