Show HTML inside VLC - vlc

I am writing a vlc extension.
It should add a search box in vlc , where a user can google/youtube search anything and the search results(html page) are to be displayed inside the vlc window.
I can add the search box extension using lua script but I dont have any idea on how to display html page inside vlc.
How can I achieve it ?

You cannot display html content within VLC because it does not include a HTML renderer. You can display formatted text though.
Adding a html renderer would double VLC download and installation size and would only be beneficial to very small group of users, so we actively decided against this move.

Related

I am trying to replace the Tooltip placeholder, $i18n{tooltipZoomOut}, in a PDF file loaded into TChromium

I have a Delphi 10.3 application and it uses TChromium to load local HTML files.
This works fine, and I can navigate to a PDF in the same window and it loads via Chrome's PDF handler.
The only problem I have is when hovering over the default buttons in the PDF viewer (such as Zoomin, print etc), I get what looks like the tooltip placeholder before it gets replaced with localized text.
$i18n{tooltipZoomOut} is the tooltip on the zoom out button, instead of nicer tooptip text. I can not find how to change this. I am not sure if it's something I can configure within Delphi or if I need to include a language file which Chromium will use.

Menu is not showing pdf file- pdf Annotation in iOS

I am developing the app like ibooks by reference,in that the pdf is not enabling the menu i.e while I long tap the pdf it not showing Menu like copy , define.
How can I work in menu? Help me.
The linked solution simply does not implement text selection or glyph coordinate extraction/conversion. You need to parse the PDF page content stream and track glyphs on the page. CGPDFOperatorTable can be a starting point, however I suggest reading the PDF spec and getting familiar with the multiple transformation matrix states that a page can have - it's quite tricky to get right. You also need to embed various CMaps (character maps) so that all fonts can be correctly parsed. It took me more than a year to get a reliable text extraction for >99% of all PDF documents. If you want to save this time, you can check out the commercial PDF SDK I am working - google for PSPDFKit. We support iOS and Android.

Pdf / Docx preview in a Phonegap app on iOS

I need to open Pdf / Docx documents for preview from a Phonegap app.
On Android it's possible to open files in extenal apps using WebIntent plugin.
Now what about iOS? It seems possible to do this entirely with the build-in browser (which surprisingly does render docx) by creating a html page with a header and a back button in the top and an iframe taking up the rest of the screen.
It would be great if the user could zoom and drag the document while the header would remain stationary, but I couldn't get to zoom working at all inside the iframe.
Any suggestions?
I ended up using InAppBrowser Plugin with enableViewportScale=yes. It displays a toolbar with a back button with custom caption. It would be better if I can add my own toolbar, so the navigation is consistent in the whole app, but this is good enough.

html5/css3, Asp.net MVC3 - View pdf in an html page on mobile safari

My upcoming mobile web project requires viewing dynamically chosen pdf files inside the webpage. I am using iFrame to display the pdf file and the file can be scrolled using two-finger scrolling. But the problems I am facing are:
The first page of the file is not displayed completely on the iPad and gets cut off along the width unlike when I view it on the desktop browsers where the first page of the pdf is always entirely displayed although zoomed out to fit in the iFrame area.
There is no visual indication for the users that the pdf document can be scrolled, i.e., there is no scroll bar on the pdf document.
The controls (page navigation, zoom etc.) for the pdf viewer (Adobe reader) don't appear on the document unlike when I see it on the desktop browsers.
What is the best way to achieve what I am trying to do? Do any of you experts know any solutions/workarounds to the problems I am facing? An entirely different approach using anything other than iFrame can also be considered.
The reason why the pdf should be inside the html page is that, the list of pdf files will be on a menu bar on the left side of the page and the user can click on any of them to view on the same page. Ideally, they will have the capability to toggle between full screen view and that view.
Any help is appreciated.
I created a tiny JavaScript module that helps you to show a PDF inline and be able to scroll it. But I also couldn't figure out a way to make it fit the total width of the parent container.
Check it out: https://github.com/williamrjribeiro/ipdf-scroll
Cheers.
I came across this Recommended way to embed PDF in HTML? while researching on the web to find an answer.
The mentioned link discusses about some options that I can use and the google document viewer works for me though don't know if there is anything (like data limit) I need to be aware of before using it on the website. Also I have no idea if it is a good solution (though the full screen mode is not available, but zoom-in/zoom-out and next/prev page buttons are there are show up in the mobile safari on the iPad) to use for an web app that will be run on the iPad.
Anyway, I will keep researching for a better solution and if i don't find any, I'll stick to the google document viewer.
The issue appears to be a bug with Safari on the IPad.
I didn't find a solution for embedding the pdf in html but I did find this:
If you return FileStreamResult from your controller action instead of a view, the pdf will open in a new tab, it's not embedded html but at least your user is not having to download files and open them manually.
I had the same problem of the pdf not being displayed completely. The only thing I found to fix this was the change the size of the div containing the pdf.
For example if the element containing the pdf is a div then I change its width to any value and the rollback to the value it had before. Changing Width or height any one works.
Sometimes I had to wait a little using a setTimeout before calling my resizable method

How to sync Webbrowser caret position with TMemo

How to sync Webbrowser (in Edit Mode) line with TMemo containing raw html? The position of the caret is not necessary but would be a nice feature. Plenty of google searches failed to show how to accomplish this task.
It sounds like you want a way to click somewhere on an HTML page and edit the HTML source of wherever you clicked.
An internet search returned possibilities as Detect cursor position in TWebBrowser at edit mode or http://www.pcreview.co.uk/forums/re-finding-cursor-t1855943.html. These aren't Delphi specific answers but might get you started with how to interact with the DOM to do what you are looking for.

Resources