[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another possible gb.poppler bug?


On 12/2/25 2:33 PM, Claus Dietrich wrote:
He is already rendering the thumbnails only when needed. I already quoted that part of his code and it works.

Best regards

Claus

Sorry, Claus, but your statement is incorrect.

gbWilly is not rendering thumbnails only when needed. If thumbnails are not found in the document, he is rendering thumbnails for ALL pages at one time in the LoadThumbnailIndex subroutine whether or not they are needed:

[code]
  For iX = 0 To $hPdfFile.Max
    hThumbnail = $hPdfFile[iX].Thumbnail
    '--create thumbnail if no thumbnail found--
    If IsNull(hThumbnail) Then
      hImage = $hPdfFile[iX].Render(,,,,, 9)
      '--make the thumb 15% of the original--
      hThumbnail = hImage.Stretch($hPdfFile[iX].Width * 0.10, $hPdfFile[iX].Height * 0.10)
      sThumb = "thumbnails -> self rendered "
    Else
      sThumb = "thumbnails -> from internal"
    Endif
    IconView1.Add(iX, $hPdfFile[iX].Label, hThumbnail.Picture)
  Next
[/code]

That is not only as needed. It is when only the first few are needed; but all are being rendered.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: Another possible gb.poppler bug?Claus Dietrich <claus.dietrich@xxxxxxxxxx>
References:
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?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Another possible gb.poppler bug?Claus Dietrich <claus.dietrich@xxxxxxxxxx>