pages.*: update outdated pages (#11893)

This commit is contained in:
Sebastiaan Speck
2023-12-29 10:16:53 +01:00
committed by GitHub
parent 473dd06173
commit 9baf07d08b
30 changed files with 65 additions and 137 deletions

View File

@@ -5,20 +5,20 @@
- Render an HTML file to PDF:
`weasyprint {{path/to/input.html}} {{path/to/output}}.pdf`
`weasyprint {{path/to/input.html}} {{path/to/output.pdf}}`
- Render an HTML file to PNG, including an additional user stylesheet:
`weasyprint {{path/to/input.html}} {{path/to/output}}.png --stylesheet {{path/to/stylesheet.css}}`
`weasyprint {{path/to/input.html}} {{path/to/output.png}} --stylesheet {{path/to/stylesheet.css}}`
- Output additional debugging information when rendering:
`weasyprint {{path/to/input.html}} {{path/to/output}}.pdf --verbose`
`weasyprint {{path/to/input.html}} {{path/to/output.pdf}} --verbose`
- Specify a custom resolution when outputting to PNG:
`weasyprint {{path/to/input.html}} {{path/to/output}}.png --resolution {{300}}`
`weasyprint {{path/to/input.html}} {{path/to/output.png}} --resolution {{300}}`
- Specify a base URL for relative URLs in the input HTML file:
`weasyprint {{path/to/input.html}} {{path/to/output}}.png --base-url {{url_or_filename}}`
`weasyprint {{path/to/input.html}} {{path/to/output.png}} --base-url {{url_or_filename}}`