Spaces:
Sleeping
Sleeping
|
Download docs/en/getting-started/USAGE_commandline.md from ryusaksun/PDFTranslate: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/spaces/ryusaksun/PDFTranslate/resolve/main/docs/en/getting-started/USAGE_commandline.md
- Command line
-
hf download hf://spaces/ryusaksun/PDFTranslate/docs/en/getting-started/USAGE_commandline.md
-
curl -L -o USAGE_commandline.md https://huggingface.co/spaces/ryusaksun/PDFTranslate/resolve/main/docs/en/getting-started/USAGE_commandline.md
1.15 kB
| [**Getting Started**](./getting-started.md) > **Usage** > **Command Line** _(current)_ | |
| --- | |
| ### Use PDFMathTranslate via command line | |
| #### Basic Usage | |
| After Installation, please enter this command to translate your PDF. | |
| ```bash | |
| pdf2zh_next document.pdf | |
| ``` | |
| > [!NOTE] | |
| > | |
| > If your pathname contains spaces, please enclose it in quotation marks. | |
| > | |
| > ```bash | |
| > pdf2zh_next "path with spaces/document.pdf" | |
| > ``` | |
| After execute translation, files generated in **current working directory**. | |
| > [!TIP] | |
| > **Where is my "Current Working Directory" ?** | |
| > Before entering a command in the terminal, you might see a pathname displayed in your terminal: | |
| > | |
| > ```powershell | |
| > PS C:\Users\XXX> | |
| > ``` | |
| > | |
| > This directory is the "*Current working directory*." | |
| > | |
| > If there is no pathname, try running this command in the terminal: | |
| > | |
| > ```bash | |
| > pwd | |
| > ``` | |
| > | |
| > After executing this command, a pathname will be output. This pathname is the "**Current working directory**". The translated files will appear here. | |
| --- | |
| #### Advance Usage | |
| For detailed explanations of additional command line parameters, please refer to [advanced usage](./../advanced/advanced.md). | |