rejetto forum

List file office have security : document safer

kckmxv · 2 · 3353

0 Members and 1 Guest are viewing this topic.

Offline kckmxv

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
Hfs can not list file office have security : document safer

how to display it?

Thanks you vary much!


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
lolz, what in the world are you talking about?

are you trying to use hfs and do a file listing of ofice documents?
are you trying to have a document apear in a web page?

what do you maen hfs can\;t list file "office"
https://stackoverflow.com/questions/5565759/how-to-embed-a-document-in-html-page

usualy you have to define the document your using as a text/html
by addind the file extention to a application

Set mime type example pdf:
https://msdn.microsoft.com/en-us/library/bb742440.aspx

so extenion would be: *.pdf
adn application (steream/html encoding): application/pdf

then disaply the file on the webpage via html coding example:
Code: [Select]
<iframe src="somepage.pdf"></iframe>
also info on PDF can be found here:
http://www.rejetto.com/forum/hfs-~-http-file-server/information-(mime-types)-embed-pdfsvideo-and-audio/
Quote:
PDF:
To use a pdf in a web browser you will need this software:
http://filehippo.com/download_adobe_reader/

now for the html code:
a real folder with your "*.pdf" file in it
right mouse click "properties" the pdf folder > different templates tab

put this html code in:

-------
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>PDF SAMPLE</title>
</head>
<body>
<br />
<embed width="100%" height="700" name="plugin" Title="Resume" src="http://192.168.1.254/pdf/sample.pdf" type="application/pdf">
<br />
</body>
</html>
--------

You will need to setup the pdf document to be view able in a web page:
-----
http://helpx.adobe.com/acrobat/kb/cant-view-pdf-web.html

http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7f52.w.html

Edit > Prefference > Documents > (make sure htis box is checed)! Save as optimizes for Fast Web View

File > save as > same file it enables the web code in the pdf...
-----
now open http://192.168.1.254/pdf/sample.pdf
(assume you have adobe reader installed... the pdf is now displayed in the browser...)
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing