How to select text in WebPreviewer? - alfresco

When we click a document in Share, another page opens (document-details) with a preview of this document in flash.
By default, we can't select text (for copy/paste) in that preview, and I would like to know if this is possible and how ?
Perhaps I should use another previewer, or use the default one with a specific parameter ?!
I searched the web, and saw that this functionnality is present in flash, but can't find how to implement that with the WebPreviewer.
Any help is welcome.
Thanks.

The Media Viewers add-on on Share Extras provides an alternative document viewer based on pdf.js
Assuming you are using Alfresco 4.0, the add-on allows you to view document outlines, thumbnails and pages. In the pages you can select text and perform searches.
I am one of the contributors to this add-on and we would welcome feedback via the project site.

Related

Embed google doc without publishing

I would like to embed a Google Slides presentation with an iframe. Anyone with the link can view it but I do not want to publish it to the web.
The "Publish to the web" option is specifically meant to embed the presentation within iframes so anyone with the link can view it, and it also gives you the iframe code, but I'm guessing that by "do not want to publish it to the web" you mean that you don't want the file to be indexed in Google searches.
According to this support thread to avoid getting indexed you can click the "Share" button and set the sharing option to "Anyone with the link":
Then to embed it within an iframe get the sharing link and replace /edit with /embed to it at the end. Example: https://docs.google.com/presentation/d/<Slide_ID>/embed.
The result looks the same as getting the "published" link, but it's not indexed by Google Search. Of course, keep in mind that it may still be found if the website where you embedded it is indexed.

creating blogroll by inoreader, feedly or similar ones

In Google reader(R.I.P) we could select some interesting links by a special tag and then make public them and show links on our blogs or websites.
Is there a way to create this by Google reader alternatives like Inoreader or Feedly or AOL reader or etc?
I should probably start by saying that I'm the BDFL of Inoreader, but I feel obliged to answer you. If anyone thinks my answer is inappropriate or that this can be achieved with one of the other mentioned options, feel free to bash me in the comments :)
Yes, you can do that in Inoreader.
Since you are familiar with Google Reader, you shouldn't have much difficulties starting up with it, but if you have, here's a quick guide to get you started.
Depending on what you need to achieve the option you want is accessible via right-click on a folder or a tag:
Then in the dialog that pops up, you will see an Export option. Click it and you will get 3 links - for RSS feed, HTML page (what you need) and a public OPML file (for folders only):
A few notes on folders and tags:
Folders are used to group sources (RSS, social and other feeds) and content inside them is automatically populated from the feeds.
Tags on the other hand are mostly manually populated by you. When you read an article and you find it interesting, you can press "T" or click the label icon at the bottom of article to tag it. This behavior is almost identical in all major RSS readers. Working with tags in Inoreader is covered in detail in this blog post.
Now I said mostly before, because tags can also be automatically populated by Inoreader's Rules. Basically they works like your email filter. You can set up keywords or other conditions and tag articles automatically as they arrive. This feature is covered in this blog post.
Hope this helps!

Is there a way to get bookmarks information WITHOUT using JS?

I've been doing some research on this and I'm still not sure if it's possible.
Is there any way to retrieve a user's bookmarks and display them on the page without violating their privacy? I saw these two threads talking about using JS to do this:
How to get Bookmarks toolbar information in JavaScript code?
Show all bookmarks using javascript
I'm not thinking about doing this automatically, users would have to opt-in with a button that said "Display Bookmarks from My Browser" or something similar.
Is it possible?
Not without browser extensions. You could write a browser extension for the major browsers which retrieves the information and feeds it back to your page.

Drupal: specify the search engine description summary from back-end?

Is there any way to write in the Drupal back-end the text to display in the search engine summaries?
Currently, the beginning of my home page (usually menus...) is displayed. I would like to add a description instead.
Thanks
Google uses the metatag "description" when is it is available, instead of the content on the page.
There are a few modules that will help you create them:
nodewords
and
Integrated Metatags
Are the most popular. Using one of these modules will most likely be easier than hiding text with css, and from what I understand google ignores hidden text at least part of the time.
you can see this in action at our site
www.industrytrader.com
Here is a google search showing the how the custom descriptions show up.
You can't do this in the backend.
You should be able to this with regular Drupal theming. How depends on which search tool you use.

ASP.net: Display PDF in a asp.net web page

User click on a link button and it will direct them to a url that is dynmaically generated which a pdf file. The browser will prompt the user to either save or open it.
I want to know if it is possible to downlaod the pdf file to the server then show the pdf file in the asp.net web page. When i google on this question, 99% of top link are some third party component. Is it a way to do this without purchase any 3rd party component?
thank
I use itextsharp, its a free open source c# port of the java itext library.
Makes generating dynamic pdfs in asp.net a breeze and there is lots of documentation/examples floating around.
I don't think that you'll have much luck without a 3rd party component. First, the issue isn't showing the PDF, it is generating it. For that, you'll need a library to help. Rolling one yourself would not be cheaper unless you have an enormous amount of unpaid time on your hands.
With respect to third-party controls, I recommend and use DynamicPDF from CeTe.
Yes there is a way to do this without a 3rd party tool, but it involves coding a PDF-to-html translator.
If this is something for a business, the RoI for the 3rd party control is that you don't have to spend hundreds of hours coding & testing this component, when you could buy one for just a few hundred dollars.
Now, an alternative is to code a page which displays the data in the same way which the PDF file generates it (this could actually be handled by RDLC). So that when the user clicks the link button, they are taken to this display page, from which they can download the PDF version if they want a local copy.
Regardless of how you generate the PDF, I have found a better user experience if you open the PDF in an IFRAME instead of the full browser window. You can give users instructions and maintain the browser navigation.
I think what you want to do is by going to: http://my_site.com/generate-pdf.aspx?=someId
this should in fact just show the PDF file?
What you need to do is change the Response type.
See here for how to do this with images.
Look up the Content-Disposition HTTP header. You can send back a value that requests the content be displayed inline instead of downloaded.

Resources