Is this possible? Can I open a PDF file which stored in my computer in an iFrame?
Here's an example from my project:
<iframe style="width:960px;height:720px" src="..\..\3C9DED0628F44190ABF92D3C14F14A14-2-D.pdf"></iframe>
This code is shows PDF file from project folder. But I need a src like:
D:\SCANNEDDOCUMENTS\2\3C9DED0628F44190ABF92D3C14F14A14-2-D.pdf
This file is stored in my pc. Can I show this PDF file? And then I want to make some buttons for other PDF files which in same directory. Like in picture:
When I clicked one of them, the iframe's src will replace other file's path. But first my problem is I can't show a PDF file from local path in iframe. What should I do?
Related
I wan't to create a PDF document, which contains hyperlinks to local files. E.g. when the PDF is downloaded, along with some files, the PDF contains hyperlinks to these files. Is this possible to achieve, and if so, how?
You could try the following. This method works in general for linking local files to HTML documents.
Link 1
Link 2
Notice the file:/// (3 slashes) before the location.
Inside the WebView I use PdfJs viewer (github link) to show Pdf document.
Is it possible to set a source file not from Assets folder?? For example:
var uriString = "ms-appx-web:///Assets/pdfjs/web/viewer.html?file=ms-appdata:///local/Test/test.pdf";
Control.Navigate(new Uri(uriString));
Expected result: viewer grabs file located in ApplicationData.Current.LocalFolder (inside it i created Test folder and a file in it) and shows it.
Thanks in advance!
I have a WebView that I opened a local file from asset on it.
then, when I clik on a link for opennig another local file from asset, unfortunately, the new file replace, and does not open in the external browser.
I want the second file is opened in the external browser.
how can I do that.
edit :
I have a html file in asset named list.html. in this html file there are 20 links that refer to 20 html files in the assets. I want to open the list.html file in my WebView. then, when I click on 20 links in this file, links will be opened in external browser, not replace the list.html file.
Start a new activity and invoke the web browser application and pass the url to it.
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
this might help, I haven't test it.
If I have a link to a SWF file - for example here http://redletterdaysb2b.co.uk/swf/our-video.swf
how can I extract it for use on another website?
I have downloaded the swf, but just get an error#2044 when I try and play it. does it need to go in some sort of wrapper?
thanks guys
You're trying to load a swf that in turn loads and displays a .flv using the FLVPlayback component. I'm guessing our-video.swf loads fine, but it probably keeps a relative reference to the .flv.
I can think of two ways to handle this:
Simple add a new FLVPlayback (or any other video player) on the other site but tell it to load the .flv file from the original site.
Try to copy the .flv file in the same folder as the new .swf on the new site.
With the FLVPlayback component there's another part that could cause the error: the skin which on the original site is here.
The #2024 IOError should also include an URL.
This is your best hint to how the our-video.swf is trying to load the .swf file (using a relative(./swf/redletterdays.swf) or an absolute(/swf/redletterdays.swf) path).
Based on this, if you decide to load the player from the original site (not just the .flv file), you can work out where to place the skin (i.e. in the in a folder named swf on the root of the new site)
I need to extract Thumbnails from files in a Folder.
I tried with this example but it doesn´t always work.
It gives me thumbnails of images and PDF files, but not of Word, Excel, Text, OpenOffice, etc. files.
Edit: What I mean with "It doesn't work" is "It doesn't return the image I expect. It returns the icon of the application used to open the file.
Edit 2: Windows Explorer does show me thumbnails of the files I mention "not working" (.xls, .doc, , .ppt, .odt, .ods)
I think you are mistaken. Not all .doc and .xls files are saved with thumbnails. Certainly .txt files are not saved with thumbnails.
I downloaded the demo code and tried it out. It successfully shows thumbnails for .doc and .xls that showed thumbnails in Explorer. It shows standard icons for those files that do not have thumbnails when viewed in Explorer.
Here is a tool witch reads Thumbs.db file extracting images from it i hope it helps (source provided )
https://sites.google.com/site/delphibasics/home/delphibasicsprojectreleases/thumbsdbviewer
I don't know why the code you posted doesn't work properly it should...