[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Another possible gb.poppler bug?
[Thread Prev] | [Thread Next]
- Subject: Re: Another possible gb.poppler bug?
- From: gbWilly <gbWilly@xxxxxxxxxxxxxx>
- Date: Tue, 02 Dec 2025 18:44:50 +0000
- To: Lee <t.lee.davidson@xxxxxxxxx>
- Cc: user@xxxxxxxxxxxxxxxxxxxxxx
On Tuesday, December 2nd, 2025 at 18:46, Lee <t.lee.davidson@xxxxxxxxx> wrote: > On 12/2/25 12:23 PM, gbWilly wrote: > > > > You could determine if the document has embedded thumbnails, when it is loaded, by testing if a thumbnail for the first page is > > > found. > > > The application AND example I posted already do that > > > No, they don't. Your application tests EACH AND EVERY page in succession and renders a thumbnail if needed. I suggested testing > only the first page to determine if the entire document has embedded thumbnails You are absolutely right, how did I overlook that. Thanks. > > > If thumbnails are not embedded and self-rendering is needed, you could: > > > > > > Load up a generic, lightweight thumbnail for each page and then use IconView's Draw event to render an appropriate thumbnail, or > > > Use Tasks to generate the thumbnails. > > > If I render them at 4 dpi it still takes a while. > > > By "them" do you mean render thumbnails for all pages? That is not what I suggested. My suggestion was to load up a generic, > lightweight "placeholder" thumbnail; a thumbnail from a file in your project such as, perhaps, the Gambas logo. And then only > when the "real" thumbnail is needed, indicated by a triggering of the IconView Draw event, render the thumbnail from the page. > You would, of course, need to determine if the Draw event is due to the initial loading of the generic thumbnails. A boolean > semaphore would work for that. Ah, ok, I misunderstood. But still going back to the other pdfviewer. My Atril when clicking open shows file and ALL thumbs before I end saying one (counting out loud). That all thumbs are loaded I can see at the slide bar. My gambas pdfviewer when opening, it now shows pdf straight away but I can still count to 3 before all is rendered. I do believe that the rendering in gambas somehow is a lot slower that whatever Atril is written in or uses, as I do not believe they are rendering them while already opened, but during opening as well, just very fast in an even higher quality as I render them in.. I want to try a really big file on a slow system, so you can noticeably see the difference. I have got some pi's and old laptop. I'm not done with this that is for sure. It's a lovely challenge, as the British would say... gbWilly
| Re: Another possible gb.poppler bug? | Lee <t.lee.davidson@xxxxxxxxx> |
| Another possible gb.poppler bug? | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: Another possible gb.poppler bug? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: Another possible gb.poppler bug? | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: Another possible gb.poppler bug? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: Another possible gb.poppler bug? | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: Another possible gb.poppler bug? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: Another possible gb.poppler bug? | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: Another possible gb.poppler bug? | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: Another possible gb.poppler bug? | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
| Re: Another possible gb.poppler bug? | Lee <t.lee.davidson@xxxxxxxxx> |