olcli
olcli copied to clipboard
olcli pdf can download the wrong PDF
Hi. Currently, compileProject uses outputFiles.find(f => f.type === 'pdf'). If a project has other PDFs (like figures or *-eps-converted-to.pdf), olcli pdf might download the wrong one.
Fixed in v0.4.1 (released just now) — olcli pdf now matches by path === 'output.pdf' first instead of blindly grabbing the first type === 'pdf' entry. This ensures the main compile output is always selected, even when figure PDFs or *-eps-converted-to.pdf intermediates appear in the output list.
Thanks for the report! 🎉