> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/zh-cn/tex-latex-ji-yuan/10-pdfoutput.md).

# \pdfoutput

`\pdfoutput[=]` *整数*

* “`[=]`”表示等号是可选的。

该 `\pdfoutput` 命令用于指定 pdfTeX 生成的文件应为 DVI 还是 PDF 格式。正值 *整数* 表示输出为 PDF 格式，否则输出为 DVI 格式。

**用法示例**

* `\pdfoutput=1` 将输出格式设置为 PDF
* `\pdfoutput=0` 将输出格式设置为 DVI

#### DVI：仍然有用

DVI 代表 *与设备无关* 并且是原始文件 [TeX 引擎的输出格式](https://en.wikipedia.org/wiki/Device_independent_file_format)。尽管 DVI 格式已被 PDF 取代，但它对于特殊的后处理操作仍然非常有用，例如使用 [dvisvgm](https://dvisvgm.de/) 或使用诸如以下工具从 TeX/LaTeX 生成 HTML： [TeX4ht](http://www.tug.org/tex4ht/).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/zh-cn/tex-latex-ji-yuan/10-pdfoutput.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
