bookokrat icon indicating copy to clipboard operation
bookokrat copied to clipboard

Refactor PDF rendering module

Open bugzmanov opened this issue 7 months ago • 9 comments

Needs some serious ❤️

bugzmanov avatar Apr 12 '26 14:04 bugzmanov

Is this related to #116 ?

Ignatius18652 avatar May 09 '26 04:05 Ignatius18652

@Ignatius18652 yeah. i will try to push enhanced zooming soon. but it will be on demand. (i.e. you will have to press a button to trigger enhancement) I've spent quite a bit of time trying to make it as smooth as macos preview zoom enhancements.. i think i'll give up.

bugzmanov avatar May 09 '26 11:05 bugzmanov

@Ignatius18652 do you mind checking fix for #116 from main ? :)

bugzmanov avatar May 09 '26 15:05 bugzmanov

@Ignatius18652 do you mind checking fix for #116 from main ? :)

Thank you very much for adding this useful feature. It's very useful. I pulled from main to try it it. It works great up to ~150%-160%. Unfortunately after a certain zoom percentage (after around %150ish, varies by document) the image completely dissapears and you either have to zoom out and rerender or restart the program.

Ignatius18652 avatar May 09 '26 22:05 Ignatius18652

@Ignatius18652 do you mind attaching one of the docs that has this issue? on my setup i can scale 300% and it enhances a-ok. (feel free to mail it to my github account name at google mail) Also remind me your setup ?

bugzmanov avatar May 09 '26 22:05 bugzmanov

@bugzmanov I sent you the email with a pdf attached.

Ignatius18652 avatar May 09 '26 23:05 Ignatius18652

I installed kitty to test and zooming seemed to work fine even past 160%, so I guess it's a problem with my terminal, not bookokrat.

Ignatius18652 avatar May 10 '26 01:05 Ignatius18652

@Ignatius18652 which terminal is it ? i can check if there is anything i can do about it.

bugzmanov avatar May 10 '26 19:05 bugzmanov

@Ignatius18652 which terminal is it ? i can check if there is anything i can do about it.

I wrote it in my email. It's st with the kitty graphics protocol patch (amongst many other patches)

https://st.suckless.org/patches/kitty-graphics-protocol/

Ignatius18652 avatar May 10 '26 19:05 Ignatius18652