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

Question

Question

Registry hack to get PDFs to open with ElectronicFile.aspx in Weblink?

asked on August 22, 2023

One of our more esteemed clients has requested a feature that was removed in 10.1

 

According to the patch notes this was done because: 

Some PDFs did not render correctly in the WebLink document viewer. This issue has been resolved. (193853)

Is there someone who can speak to this behavior, and give a reg hack that will revert the default behavior? 

Thank you!

 

0 0

Answer

SELECTED ANSWER
replied on August 23, 2023 Show version history

Hi Wes,

The wish is that when a user clicks on a .pdf file in Weblink, it opens the file using ElectronicFile.aspx instead of DocView.aspx. 

 

Were you able to find any way to do this consistently with PDFs? 

 

Ok, I see what you were up to here: https://answers.laserfiche.com/questions/211338/HOWTO-Force-all-electronic-files-to-open-using-ElectronicFileaspx#repliestomain

 

I've marked this as the answer as it links to your Howto

1 0

Replies

replied on August 22, 2023 Show version history

Hi Chad,

Those options are both still present in WebLink 10.2 and WebLink 11, and PDFs successfully open within the doc viewer in both versions.

The patch notes you mentioned are not removing or changing any behavior -- it was a bug that was resolved so that the specific PDF files in question displayed correctly, with no other changes.

Edit: the patch notes you mentioned are not about removing the options, and both options are still available at this time, but in the process of fixing the PDF display issues, I believe there were changes to ElectronicFile.aspx

Could you explain the details of the use case a little further so we can understand what you are trying to do? E.g., generate URLs automatically?

You mentioned ElectronicFile.aspx specifically, but as of 10.2 or perhaps earlier, the correct URL appears to be DocView.aspx: https://go.laserfiche.com/support/webhelp/weblink/10/en-US/WL/WebLink.htm#Directly_Linking_to_WebLink.htm , unless you have a use case other than those mentioned in the list?

1 0
replied on August 22, 2023 Show version history

As a correction, while the options in your screenshot were not removed, some URL parameters for ElectronicFile.aspx may have been deprecated as part of that bugfix, replaced by DocView.aspx

If you are able to describe your intended use case, we may have a suggestion or workaround.

0 0
replied on August 23, 2023

Hi Brianna,

 

Thank you for your response. My client would prefer to have the document open in its own tab in the browser instead of a page within weblink as users are more familiar with this format for printing and saving.

 

The wish is that when a user clicks on a .pdf file in Weblink, it opens the file using ElectronicFile.aspx instead of DocView.aspx. 

 

Here are some sample URLs from their website

 

Current:

https://weblink.ocdsb.ca/WebLink/DocView.aspx?id=2847909&dbid=0&repo=OCDSB

 

Wish:

https://weblink.ocdsb.ca/WebLink/ElectronicFile.aspx?docid=2847909&dbid=0&repo=OCDSB

1 0
replied on August 23, 2023 Show version history

While I cannot speak for the original poster, my intended case to open electronic files, such as PDF files, using ElectronicFile.aspx and not DocView.aspx is because the DocView.aspx functionality and user experience on a mobile device could be better. Also, the PDF files tend to render and perform poorly on a mobile device using DocView.aspx, making the experience unbearable.

1 0
SELECTED ANSWER
replied on August 23, 2023 Show version history

Hi Wes,

The wish is that when a user clicks on a .pdf file in Weblink, it opens the file using ElectronicFile.aspx instead of DocView.aspx. 

 

Were you able to find any way to do this consistently with PDFs? 

 

Ok, I see what you were up to here: https://answers.laserfiche.com/questions/211338/HOWTO-Force-all-electronic-files-to-open-using-ElectronicFileaspx#repliestomain

 

I've marked this as the answer as it links to your Howto

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.