WebSite X5Help Center

 
Akram Najjar
Akram Najjar
User

Display page from a pdf file  en

Author: Akram Najjar
Visited 858, Followers 1, Shared 0  

Friends: this continues an earlier thread (that I could not add to). It is called Display a Page from a PDF File. Anthony requested me to do something and I did it. It is not working:

1) I create a page in the Sitemap called TEST (here is the link:http://www.karazwlaimoon.com/test.php)

2) I added an HTML Widget

3) I named the file as per Antony's instructions:  www.karazwlaimoon.com/files/testpage.pdf

4) In the Experts tab, I added the file from my PC and named the folder "files".

Here is the html code:

<!-- Documents.PDF File: START -->
<iframe src="www.karazwlaimoon.com/files/testpage.pdf" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:350px;" allowTransparency="true"></iframe>
<!-- Documents.PDF File: END -->

5) I uploaded the pages and got an error on that page: "Ever feel like you're in the wrong place"

6) I checked the file on my host's server and indeed, TESTPAGE.PDF was in the "files" folder.

What am I doing wrong?

I expect that when I open the page "test" I should see the contents of the TESTPAGE.PDF as is.

Thanks

Akram

Posted on the
9 ANSWERS
Andre E
Andre E
Moderator

Akram,

You need to decide what you want.

1 if you want a pdf on your site, then you need to upload the pdf to your internet host, this means people can download it - always-

After uploading you can use the wizard by pointing it to the internet where you have placed it to set it into your webpage.

2 If you want people not to able to download it but just to view a page then you should make a screenshot and use that as a picture.

Let me know what you want and i will help you sort it out.

BR André

Read more
Posted on the from Andre E
Akram Najjar
Akram Najjar
User
Author

Dear Andre

Thanks for your reply. I want to use a PDF file because it is a lot easier to format the original WORD doc than using X5. For example, tables, bullets, placing of images, are difficult to handle as well as copy and paste, etc.

This is what I want:

1) I will prepare a web page in Word and convert it to PDF (I cannot use images as they lose the built in hyperlinks which should be possible via the PDF file).

2) I want a procedure using the PDF Wizard that specifies such a file. If a visitor visits that page, he or she will be able to view the contents of the page as in the PDF file (including the use of hyperlinks). There is no issue with downloading. For example:

http://www.karazwlaimoon.com/test.php

A) I tried to place the file as per Antony's wizard instructions and I got an error: "Ever feel like you're in the wrong place" (See HTML code in the earlier post).

B) I tried your first method by placing the address of the file at my host in the box of the HTML Wizard and that failed. I guess I am using the wrong address. I am happy to upload my file to a specific folder on my host's - - - will that solve the problem?

Maybe if you tell me exactly what to place in that box, it might solve the problem.

BUT you need to tell me first if my requirement above is possible or not.

Many thanks and I appreciate your patience.

Akram

Read more
Posted on the from Akram Najjar
Akram Najjar
Akram Najjar
User
Author

Dear Andre

Can you please address the above issue? It is a bit urgent.

Thanks

Akram

Read more
Posted on the from Akram Najjar
Andre E
Andre E
Moderator

Akram,

Sorry, it's a very busy time, a lot of private things need to be done, normally I'm a bit faster responding here. ...

Try this code in your html wizard, it looks like the http in you adress was lost.

Let me know how it works out this way.

<!-- Documents.PDF File: START -->
<iframe src="http://www.karazwlaimoon.com/files/testpage.pdf" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:350px;" allowTransparency="true"></iframe>
<!-- Documents.PDF File: END -->

Don't get me wrong but I will give you my thoughts on this, ignore it if you still want to do it with word and pdf offcource.....

Adding your info for your website directly in x5 makes it more usefull and also faster. I always use x5 and have made meny different sites with all kind off content. and some also with pdf but only if there was no better solution.....

Now, your making software -acrobat pdf-within software -x5-  this slows down and changes on viewing correctly are going down (people have different versions off acrobat for 1 example. Also the view on handhelds, wich are more and more used, is also in this way more likly to have difficulty's showing correctly or easy.

I can help you out offcource if you have problems entering bullets and thinks like that. x5 has extended capabilitys to handle these things....

And if not you can use coding as well.

So test correctly with users / handheld and so an to see if it servers your and your customers needs...and then make your choice.

Goodluck !

Read more
Posted on the from Andre E
Akram Najjar
Akram Najjar
User
Author

Dear Andre

I tried your new code. It resulted in downloading the PDF and not showing it.

OK: I agree about speed and performance and will resort to regular pages.

BUT I need to get this right because "infrequently", I need to display a PDF file (already published/formatted articles, etc.). I would not worry about performance then.


Can you let me know if we can chat sometime on SKYPE so as to solve this problem?

Thanks for your patience.

Akram

Read more
Posted on the from Akram Najjar
Akram Najjar
Akram Najjar
User
Author

Finally, I hope that IncoMedia can use a good RTF editor so that we can easily use bullets, copy and paste tables from Excel, etc.

I did raise a problem about Bullet points not being indented properly. I did not receive a response.


All the best

Akram

Read more
Posted on the from Akram Najjar
Andre E
Andre E
Moderator

Yes we could, bu I tested this, I set the code in a html object and the pdf was shown.

I set a test page online to see if you have the same view as I have. my site looks like the attachement if I view it from preview or from internet.

and does not start to download, it starts with a kind of download but this is to make it visible inside the page. Do you heve the same view?

(You need to wait until the pdf is (down)loaded into the page)

http://andreweb.nl/x5_test/pdf-view.html

Read more
Posted on the from Andre E
Andre E
Andre E
Moderator

What is the problem with bullets ? The standard bullet works, do you want something extra's? Like what?

Read more
Posted on the from Andre E
Akram Najjar
Akram Najjar
User
Author

Andre

Many thanks. I will try the PDF story again.

The bullets? I wanted indent with bullets. You've answered it. I hope this can be fixed in future versions.

Thanks again.

Akram

Read more
Posted on the from Akram Najjar