You are viewing limited content. For full access, please sign in.

Question

Question

Is it possible to load a Laserfiche Web Client Document with the text selection tool selected by default or have the document take up the entire screen without panes?

asked on October 2, 2019

Hello,

Basically i have a form with a document being loaded in an iFrame inside an LF Form and would like to able to load the document as large as possible within the iframe window without panes being open.. It would also be great if the text selection tool could be used by default and have it stay on?

 

Many Thanks in Advance

0 0

Answer

SELECTED ANSWER
replied on October 2, 2019

Technically, you could create a copy of the DocView.aspx page that is modified to fit your needs. Then you can use the modified page in the URL for your frame.

For example, I have one I use in Forms a lot that is https://server/laserfiche/DocViewLite.aspx

I don't think you're really going to be able to control most of the view with the standard viewer because it is based on the user profile.

However, if you copy DocView.aspx you can use CSS and JavaScript within that file to hide content and select certain options whenever it is loaded.

That could be pretty complicated, so you'll need someone who can handle JavaScript/JQuery. Just make sure you do not alter the original DocView.aspx file.

2 0
replied on October 2, 2019

Hi Jason,

Thanks for your reply, i have contemplated editing the file but would rather not mess with the internal Laserfiche files. For making the doc view fit the iframe i appended ''&mode=embed" to then end of the URL and that did the job!! Only thing left is selecting the Select Text tool on iframe load.. i can trigger the button click on iframe load complete using an event listener although this is not triggering the angular function embeded that selects the tool (it only hightlights it temporarily).. i will post if i crack it cheers!

0 0
replied on October 2, 2019

You don't really need to mess with any of the more complex functionality. By creating a copy, you'll ensure you don't break the default files, and by adding your customizations directly to the custom file you can avoid potential issues with cross site scripting.

1 0
replied on October 4, 2019

There's no out-of-the-box way to select the text-selection tool on page load by default.

 

Jason's absolutely correct here- adding custom JS is the recommended way to achieve this sort of functionality, You should be able to add some simple JS to the bottom of DocView.aspx that clicks the text selection tool after the page loads.

1 0
replied on October 8, 2019

The quick way i got round this was adding an on click event listener to the Text Selection button with the same function call as the ng-click (button.invoke()) which did the job. Also ensured this ran shortly after the page loaded so the element was present. Thanks for your responses!

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.