Jump to content

TUniPDFFrame First Show: ThumbNails Visible - How To Hide ThumbNails before First Showing ?


andyhill

Recommended Posts

PDFViewer On First Show Has ThumbNails shown

I do not want to show ThumbNails on the PDFViewer's First Showing

How do I set PDFViewer not to be toggled into ThumbNail View on First Showing ?

PdfNOThumNail.jpg

PdfThumNail.jpg

Link to comment
Share on other sites

'#toolbar=0' No longer works, also tried '&pagemode=none'.

C:\Program Files (x86)\FMSoft\Framework\uniGUI\uni-1.95.0.1577\pdf.js\web\viewer.js

has "disablePageMode" set to 'false' in two locations, I changed this to 'true' but it made no difference ?

Please provide a way to NOT SHOW THUMBNAILS OF FIRST SHOWING

Link to comment
Share on other sites

TUniPDFFrame

UrlStr:= 'images/invoice/'+UniMainModule.PdfFileName;
DateTimeToString(s, 'yyyymmddhhmmss', Now());
PdfFrame.PdfURL:= UrlStr+'?'+s+'#toolbar=0';
PdfFrame.PdfURL:= UrlStr+'?'+s+'&pagemode=none'; // (none, thumbs, bookmarks, attachments)

Link to comment
Share on other sites

9 hours ago, andyhill said:

TUniPDFFrame

For this component you can use one of the possible solutions:

UniPDFRame.ClientEvents.ExtEvents ->

function frameload(sender, frame, eOpts)
{
    sender.iframe.contentDocument.getElementById('sidebarContainer').style['display'] = 'none';
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...