Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
bono_head
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Mon Jun 18, 2007 6:54 am

Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by bono_head » Fri Jul 06, 2007 8:48 am

Hello folks!

I have a big problem. And I hope that you have some good advice for me on what I shall do.

What my system is supposed to do:

I have some co-worker that creates word documents.
The Word documents is supposed to be presented in Joomla in some way or another.

My idea was using to create a HTML document of the Word document, and then use a wrapper in Joomla to present the document in a portal. the address of an wrapper in Joomla is like this: http://server/index.php?option=com_wrapper&Itemid=39

But it must also be possible to create PDF of the Word document saved as MHTML-document in Word.

So I tried html2pdf FPDF creator. The problem is that when I have a webpage in a wrapper, I don't really have a Html-File. So I get a error since I only have wrapper and not HTML. So, no PDF. I attached a really beautiful picture made in paint to show some of what I was thinking.

At this moment, I am kind of stuck what to do. I really need some advice.

To sum it up:

- I need a way to present a word document / HTML document in joomla.
- I need a previous next button for the word document / HTML document
- I need to be able to create a PDF out of the document.

Does anyone have any good advice of what I should do?


Bhead
You do not have the required permissions to view the files attached to this post.
Last edited by bono_head on Fri Jul 06, 2007 8:52 am, edited 1 time in total.

User avatar
toubkal
Joomla! Hero
Joomla! Hero
Posts: 2860
Joined: Thu Aug 18, 2005 4:35 pm
Location: Cheshire, England
Contact:

Re: Big problem. Wrapper, Content, Word 2 HTML 2 PDF Joomla

Post by toubkal » Fri Jul 06, 2007 8:59 am

in my opinion word documents are awful for displaying on the web

I would simply use the text to create a joomla content item.

I cannot see why you would create a separate html document from the word doccument rather than simply create a joomla content item?

If it is required to create content outside of joomla, I always paste text as plain text because word always brings heaps of unnecessary formatting and the font styles / sizes will almost certainly not match that of your site.

Once the text is a joomla content, you can use the print and pdf functions.
Do you want the answer to be as vague as your question?

bono_head
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Mon Jun 18, 2007 6:54 am

Sv: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by bono_head » Fri Jul 06, 2007 9:17 am

The problem with creating content in Joomla, is that the Word document have plenty of formatting, pictures and setup which I don't think Joomla can handle very well. I tried to create content (by copy and paste HTML code) but I lost a lot of formatting.

User avatar
toubkal
Joomla! Hero
Joomla! Hero
Posts: 2860
Joined: Thu Aug 18, 2005 4:35 pm
Location: Cheshire, England
Contact:

Re: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by toubkal » Fri Jul 06, 2007 9:31 am

I think that part of the beauty of the cms is that you get consistent pages following the styling set for the site.

You can always create any necessary styles to replicate your word documents. These style can then be applied to headings etc in the joomla content. As for images, it is usually necessary to have images sized correctly for web pages. You may not notice 5 or 6 1MB photos dropped into a word document on your local machine, but you certainly would if you used them in a html document.

You need to bear in mind that even if you create a document with all the word formatting, it may be that the end user does not see the same. For example if they do not have the same fonts on their computer, they will not see it anyway.

Personally I prefer to use clean html formatted with css styles from the stylesheet. Works better across browsers and with search engines.

If you need to preserve very specific formatting then pdf output is the way to go, but the visitor is normally taken to the pdf viewer rather than view within the site itself.
Do you want the answer to be as vague as your question?

bono_head
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Mon Jun 18, 2007 6:54 am

Sv: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by bono_head » Fri Jul 06, 2007 11:12 am

I don't know if I can create necessary styles. I need to be able to transfer a word document into joomla pretty quick. And preserve the formatting, and pictures.

It's going to be an offline installation most probably, and very static as well when it's up and running. The pictures that is in the word docs, is of a normal size.

I am also looking for a way to divide the word documents into smaller HTML pages.

User avatar
ranwilli
Joomla! Master
Joomla! Master
Posts: 19203
Joined: Sun Feb 19, 2006 6:47 pm
Location: Toledo, OH
Contact:

Re: Sv: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by ranwilli » Fri Jul 06, 2007 11:54 am

bono_head wrote: I don't know if I can create necessary styles. I need to be able to transfer a word document into joomla pretty quick. And preserve the formatting, and pictures.

It's going to be an offline installation most probably, and very static as well when it's up and running. The pictures that is in the word docs, is of a normal size.

I am also looking for a way to divide the word documents into smaller HTML pages.
If you paste PLAIN Text from the word Doc (paste it into Notepad First) into a Joomla Article, you will then be able to use the WYSIWYG editor to format the text any way you like. Upload copies of the illustrations to media manager and use the editor to place the photos in your new article.

You can use the page break function to break the article up into smaller pieces.
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com

bono_head
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Mon Jun 18, 2007 6:54 am

Sv: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by bono_head » Fri Jul 06, 2007 12:47 pm

Problem with pasting PLAIN text into notepad and THEN into Joomla, is that the people producing documents will kill me :-)

I have to find another way. I have to find a way of getting documents from word, to showing in joomla.

Any ideas?

User avatar
ranwilli
Joomla! Master
Joomla! Master
Posts: 19203
Joined: Sun Feb 19, 2006 6:47 pm
Location: Toledo, OH
Contact:

Re: Sv: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by ranwilli » Fri Jul 06, 2007 1:06 pm

bono_head wrote: Problem with pasting PLAIN text into notepad and THEN into Joomla, is that the people producing documents will kill me :-)

I have to find another way. I have to find a way of getting documents from word, to showing in joomla.

Any ideas?
if you paste Word Code into Joomla - Joomla will kill you.

The WYSIWYG Editor WILL permit you, unfortunately, to make your Joomla pages look like a ransom note if that's what you're after, but you MUST strip the Word Code First, there just isn't any other way.
Don't HACK the Joomla! core, Instead "Extend" and/or "Override."
Stay ON the update path.
https://harpervance.com

User avatar
toubkal
Joomla! Hero
Joomla! Hero
Posts: 2860
Joined: Thu Aug 18, 2005 4:35 pm
Location: Cheshire, England
Contact:

Re: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by toubkal » Fri Jul 06, 2007 1:38 pm

I just tried viewing a pdf in the wrapper and it will work.

I also did some googling and found that you can pass parameters in the url to control how the adobe plugin will display the pdf

e.g. I did a link like

Code: Select all

domain.com/grant.pdf#navpanes=0&toolbar=0
which gets rid of much of the toolbar mess

Need to test across browsers, but this may be the way to go for you.

Get an app to reliably convert your word docs to pdf and display with a wrapper iframe. You get your navigation through the pages, your layout etc and it is as fast as you can expect.
Do you want the answer to be as vague as your question?

User avatar
toubkal
Joomla! Hero
Joomla! Hero
Posts: 2860
Joined: Thu Aug 18, 2005 4:35 pm
Location: Cheshire, England
Contact:

Re: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by toubkal » Fri Jul 06, 2007 1:39 pm

Here is the document that I found with the parameters that can be passed to the pdf plugin

Code: Select all

http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf
Do you want the answer to be as vague as your question?

User avatar
toubkal
Joomla! Hero
Joomla! Hero
Posts: 2860
Joined: Thu Aug 18, 2005 4:35 pm
Location: Cheshire, England
Contact:

Re: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by toubkal » Fri Jul 06, 2007 1:50 pm

Well I am glad I did a bit of searching and found this stuff out

just tried one with

Code: Select all

grant.pdf#navpanes=0&toolbar=0&scrollbar=0
and it presents the bare document, no sign that it is an embedded pdf and you can navigate through pages with arrow left and right
Do you want the answer to be as vague as your question?

User avatar
toubkal
Joomla! Hero
Joomla! Hero
Posts: 2860
Joined: Thu Aug 18, 2005 4:35 pm
Location: Cheshire, England
Contact:

Re: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by toubkal » Fri Jul 06, 2007 1:53 pm

boo, opera does not display inline - it asks if you want to open it.

There may be a workaround, maybe needs further research...
Do you want the answer to be as vague as your question?

cantthinkofanickname
Joomla! Ace
Joomla! Ace
Posts: 1334
Joined: Sat Oct 21, 2006 8:53 am

Re: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by cantthinkofanickname » Fri Jul 06, 2007 2:01 pm

Doing it this way may be fine but have you considered accessibility? When a document is viewed in the PDF Reader it can be searched, downloaded and other facilities added (no copying, password, etc.). The way suggested may be very restricted and is another process step in getting things on-line. If someone wants a correction!

Interested in your opinions on this as I'm doing a site for older people and all content must be at least basically accessible.

Thanks.
Thanks for your time.

User avatar
toubkal
Joomla! Hero
Joomla! Hero
Posts: 2860
Joined: Thu Aug 18, 2005 4:35 pm
Location: Cheshire, England
Contact:

Re: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by toubkal » Fri Jul 06, 2007 2:30 pm

I still hold to the position that I stated in my earlier posts.
toubkal wrote: Personally I prefer to use clean html formatted with css styles from the stylesheet. Works better across browsers and with search engines.
If I had word doc to display in a website, I would convert them to plain text and format for the web

But others have different priorities and complex word docs can take time to reformat especially if they include charts / tables etc
Do you want the answer to be as vague as your question?

bono_head
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Mon Jun 18, 2007 6:54 am

Sv: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by bono_head » Fri Jul 06, 2007 7:28 pm

I thank all of you for your answers. Since it's friday night here I haven't read through everything yet. But from I gather: Thanks for the answers, and so much for a saturday off :-)

bOO

bono_head
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Mon Jun 18, 2007 6:54 am

Sv: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2 PDF Joomla

Post by bono_head » Mon Jul 09, 2007 6:32 am

Yes, it's a big problem for me that I have to present Word-documents on the web. The way it's working now (different system), is that the designers copy and paste word into another system directly.

What I would love to have, is a button in Word, that puts the documents on the web for me.

The PDF looks interesting. Maybe I will have to see what the boss thinks about that.

But if not with PDF:

What should I do with the word -> joomla -> presentable dilemma? That's easy, and hopefully somewhat automatic?

Thanks for all the responses so far!

Bhead
Last edited by bono_head on Mon Jul 09, 2007 8:09 am, edited 1 time in total.

EDCJoomla
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jun 07, 2008 3:55 pm

Re: Big problem!. Content in Joomla, Wrapper, Word 2 HTML 2

Post by EDCJoomla » Thu Feb 10, 2011 8:51 pm

Simple solution available.

Download the Edocs plug-in for Joomla at extensions.joomla.org and then you can embed a document in any content article by adding the following super simple code:

{edocs}path/folder/document.extension,width,height{/edocs}


It works with Word, PDFs & PowerPoint and because it is embedded in an article it will maintain the look of the template.

(The paths are absolute so if you get stuck you can can contact me here-> hawaiiincorporated.com)

Good Luck!


Locked

Return to “General Questions - 1.0.x”