olcli icon indicating copy to clipboard operation
olcli copied to clipboard

olcli pdf can download the wrong PDF

Open Seauagain opened this issue 5 months ago • 1 comments

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.

Seauagain avatar Jun 06 '26 06:06 Seauagain

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! 🎉

aloth avatar Jun 12 '26 11:06 aloth