Re: [PHP-DB] Transforming doc files into html

2001-08-06 Thread Ken Sommers

try the html editor Arachnophilia :
http://www.arachnoid.com/arachnophilia/index.html

How to make your own page (the easy way)

You always have the option of creating a page from scratch, by entering the
HTML tags on your own. But, even with a lot of predefined tags, this takes a
long time, and you have to learn a lot about HTML as you go along.

But there is an easier way -- Arachnophilia will allow you to import a word
processing document that has been saved in Rich Text Format (RTF) and will
then convert it automatically into a Web page.

Some word processing programs will export their documents in the RTF format,
others won't, but you can still export them using one of the methods
described here. Here are the ways to get your document from your word
processor/spreadsheet/database to Arachnophilia:

· Simply save the document in the Rich Text Format (RTF) document type. Then
open it in Arachnophilia (File . Open File . RTF File). When you do this,
Arachnophilia will ask whether it should convert it into HTML format. Choose
"Yes" and you are done.
· Open Windows Explorer and drag an RTF document icon onto the Arachnophilia
program window (not onto an open document, but onto the background). In the
same way as method (1), Arachnophilia will ask whether it should convert it
into HTML format.

· For programs that do not support the RTF file format, open your source
program and Arachnophilia at the same time. Open a new, blank RTF document
in Arachnophilia (File . New File . RTF File). Move to your source program
and select the block of text you are interested in. Drag this block over to
the open RTF document window in Arachnophilia, and drop it. Then select the
menu option Tools . Convert RTF to HTML.
· Use the Windows clipboard and proceed as in method (3) above.

These methods apply to data sources such as spreadsheets and databases --
just use method 3 or 4 above if the program does not export RTF files.

Here are some suggestions to help Arachnophilia convert your document:

Always use real bulleted lists and real numbered lists, available in most
word processing programs, instead of manually numbering a list of items. If
you use the real versions of these features, Arachnophilia will create the
HTML equivalent of these structures, which look great. If you simply
manually number a list, it will not look nearly as good when viewed on a
browser.

Avoid "outdenting" paragraphs in your document formatting -- Arachnophilia
will interpret this as an outline. Instead, if you create a real outline,
even one with multiple levels, Arachnophilia will translate it into HTML for
you.

Here are some restrictions for this automatic conversion method:

Arachnophilia will automatically import tables and outlines, but cannot
import any pictures that are included in your original document. These parts
of your document have to be imported separately, using the HTML tags that
are designed for that purpose.

Sometimes Arachnophilia will misinterpret a line with tab characters in it
as a table row. If this is not what you intended and you want to prevent
this behavior, choose Tools . Options and select "Convert Tabs into Spaces."
Remember later that you made this choice, because Arachnophilia won't create
tables until the "Convert Tabbed Lines into Tables" option is enabled again.
In general, avoid the use of tabs, because this character is used in the RTF
document format to identify table rows, and Arachnophilia relies on them for
this purpose.

Be sure to review the Arachnophilia File Import methods for more information
on these techniques.

- Original Message -
From: "Cami" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 04, 2001 4:08 AM
Subject: [PHP-DB] Transforming doc files into html


> Hi there,
> Does anybody know if is any way in which when you upload a word document
> file you can parse it and transform
> it into an html file?
> Is this possible ? Has anybody tried it? I know I can transform it into a
> txt file but wouldn't it be even better if we can do an html file?
>
> Thanks,
> Cami
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Transforming doc files into html

2001-08-04 Thread Chris Hobbs

I use the tools from here:

http://wvware.sourceforge.net/

I've got a wrapper php script that calls wvhtml like this:

passthru("PATH=$PATH:/usr/local/bin /usr/local/bin/wvHtml 
/var/www/html/$file /var/www/html/$file.html");

Where $file is the Word doc that has been previously uploaded.

I then redirect to that file with:

header ("Location: http://www.silvervalley.k12.ca.us/$file.html";);

Hope this helps!

Cami wrote:

> Does anybody know if is any way in which when you upload a word document
> file you can parse it and transform
> it into an html file?


-- 
Chris Hobbs   Silver Valley Unified School District
Head geek:  Technology Services Coordinator
webmaster:   http://www.silvervalley.k12.ca.us/~chobbs/
postmaster:   [EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DB] Transforming doc files into html

2001-08-04 Thread Dave Watkinson

Yeah you can - I've been doing this with Visual Basic. I've been
receiving people's Word Document CVs, and then converting them to text
for inserting to the database, and then converting to HTML for
prospective employers to view them online.

All you need to do is reference Microsoft Word in your project, and then
you can open a document and make it perform a "Save As HTML", add the
link to the database as a URL and you then have a clickable link to the
converted file. This is all done with a combination of Visual Basic, PHP
and MySQL.

Hope this helps you out :-)


Dave



-Original Message-
From: Cami [mailto:[EMAIL PROTECTED]]
Sent: 04 August 2001 12:08
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Transforming doc files into html


Hi there,
Does anybody know if is any way in which when you upload a word document
file you can parse it and transform
it into an html file?
Is this possible ? Has anybody tried it? I know I can transform it into
a
txt file but wouldn't it be even better if we can do an html file?

Thanks,
Cami


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Transforming doc files into html

2001-08-04 Thread Cami

Hi there,
Does anybody know if is any way in which when you upload a word document
file you can parse it and transform
it into an html file?
Is this possible ? Has anybody tried it? I know I can transform it into a
txt file but wouldn't it be even better if we can do an html file?

Thanks,
Cami


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]