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

Re: DocumentView confusion


Il 16/11/25 14:34, gbWilly ha scritto:
Since you are the author of the component, what I would like is some answers to what is discussed in this thread. No person better suited to shed some light on it all.

And Lee was not looking for a pdf viewer, but trying to help me figure out what is going on with DocumentView. He just needed a hand in how to get the pdf file into the DocumentView. Above is what he discovered and that should be looked at. After his testing he comes to a lot of conclusion I come to as well (see earlier posts in this thread), that something is off.

We, by now,  both understood that the index is used to get the page, but there are :
- some properties that make no sense in what they return, something is off
- Property ShowPage sometimes shows wrong page number on the DocumentView. It should do:
index = 0 it shows actual page 1 and says 1/total on the view -> good
index = 1 it shows actual page 2 and says 2/total on the view -> good
etc..
I have had situation where:
index = 1 it shows actual page 2 and says 1.total on the veiw -> not good.
When this happens I can't scroll to the real page 1 on index 0 as somehow because of the ShowPage it thinks it is already on page 1 (although showing page 2). Since I created a thumbnail index I can click on the real page 1 and get there. When I do this on the DocumentView (because of ShowPage =True) it shows that I go from page *1/total *(showing page 2) to *page 1/ total* (showing proper page 1 now), that seems like a bug to me..

So, please take some time to see what is happening and take away the confusion (or bugs) ;-)

gbWilly


Hi Fabien, gbWilly, and Lee,

I apologize for the intrusion, but to better understand you (us), I posted Fabien's test project here:
https://paste.c-net.org/UrgencyPulse
I used an old lecture by Professor Hans and incorporated it into the project.
It contains indexes, so I think the PDF is suitable.

Best regards
Gianluigi


Follow-Ups:
Re: DocumentView confusionGianluigi <gradobag@xxxxxxxxxxx>
References:
DocumentView confusiongbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: DocumentView confusionLee <t.lee.davidson@xxxxxxxxx>
Re: DocumentView confusiongbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: DocumentView confusionLee <t.lee.davidson@xxxxxxxxx>
Re: DocumentView confusionFabien Bodard <gambas.fr@xxxxxxxxx>
Re: DocumentView confusiongbWilly <gbWilly@xxxxxxxxxxxxxx>