Skip to content

Specifying --pdf-path could resolve to current working directory instead of rendered yaml directory #752

Description

@sergio-gastulo

Notice that the output is rendered in the test directory (yaml's directory) instead of current working directory.

PS C:\> mkdir test; rendercv new example # create test directory and create a new example/test file
# output removed
PS C:\> mv .\example_CV.yaml .\test\ # move said example to test dir
PS C:\> rendercv.exe render .\test\example_CV.yaml --pdf-path example.pdf
╭─ Your CV is ready ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ✓ 60 ms    Generated Typst:           ./test\rendercv_output\example_CV.typ                                                             │
│ ✓ 143 ms   Generated PDF:             ./test\example.pdf                                                                                │
│ ✓ 26 ms    Generated PNGs:            ./test\rendercv_output\example_CV_1.png; ./test\rendercv_output\example_CV_2.png                  │
│ ✓ 20 ms    Generated Markdown:        ./test\rendercv_output\example_CV.md                                                              │
│ ✓ 7 ms     Generated HTML:            ./test\rendercv_output\example_CV.html                                                            │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
PS C:\> rendercv.exe --version                                           
RenderCV v2.8

I would label this as a suggestion rather than an issue since it might be as designed, but wanted to double-check. Of course, providing the full path of the file also works (:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions