# If possible, start with the underlying document

When creating accessible PDFs, starting with the underlying document—such as a Word document, PowerPoint presentation, or other accessible formats—is best for ensuring your content is accessible to all users.&#x20;

Here’s why it’s the best approach:

### **1. Better structure and tagging from the start**

* **Logical Structure**: Documents like Word or PowerPoint allow you to use **built-in styles** for headings, lists, and paragraphs, which automatically create a logical structure.&#x20;
* **Predefined Tags**: Word processors, for example, allow you to tag elements (headings, lists, tables, etc.) in the original document, so they are correctly identified and tagged when converted to PDF.&#x20;

### **2. Automatic alt text for images and graphics**

* **Alt text creation**: In programs like Microsoft Word, you can add alt text to images, tables, and other visual elements directly in the document. This alt text is preserved during the conversion to PDF.

### **3. Consistent hyperlinks and document metadata**

* **Hyperlink management**: In documents like Word, you can easily add descriptive hyperlink text, ensuring that the links are accessible in the final PDF.
* **Document metadata**: Starting with an accessible document allows you to add metadata (such as document title, author, and keywords) directly in the document properties. This metadata carries over to the PDF.

Starting with an accessible underlying document ensures that the final PDF is properly structured, well-tagged, and fully accessible.&#x20;

{% embed url="<https://contrastchecker.com/>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sfdigitalservices.gitbook.io/digital-accessibility-for-sf.gov-editors/document-accessibility-for-sf.gov-editors/create-accessible-digital-documents/pdf/if-possible-start-with-the-underlying-document.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
