ClassCreator.com | Blockbuster sites, amazing reunions

Share Tips

New Topic Reply Subscription Options  

Display of pdf Files

Forums: Suggestions and Feedback
Created on: 04/10/14 01:26 PM Views: 1791 Replies: 10
Thursday, April 10, 2014 at 1:26 PM

Class Creator displays uploaded picture files. Why do you only display the link to uploaded pdf files? If the file is small, e.g. one page, it should be displayed as well. I can understand large, multiple-page files only being linked to, but a single page pdf should be treated as a single picture is treated.
I know I can convert the pdf to a jpg and upload it as a picture, which I've done, but then links on the pdf file are not clickable.

Reply
Monday, April 14, 2014 at 1:26 PM - Response #1

While our CMS tool does not natively handle PDF documents this way, you can certainly use other tools online to accomplish this. However, I am not certain that you will be able to embed the pdf and keep links that are on the pdf functional. I just tested this via my personal test site using your pdf and it seemed to work (no links) to post the pdf to the page. I used the embed code that I found on this site: http://stackoverflow.com/questions/291813/recommended-way-to-embed-pdf-in-html to embed the pdf to the page and it worked, although there were no working links.


Reply
Monday, April 14, 2014 at 1:52 PM - Response #2

Since my goal is to have working links on the document, which they do on my pdf, I don't see a need to use code to embed the pdf if the links do not work. Converting the pdf to a jpg and uploading the jpg seems like my best option. But I still would like Class Creator to investigate the possibility of allowing a single-page pdf to be embedded into a page in order to keep links functional.

Reply
Monday, April 14, 2014 at 4:10 PM - Response #3

What program are you using to create the PDF? Does that program have a way to generate embed code?


Reply
Monday, April 14, 2014 at 4:20 PM - Response #4

Word creates a .docx file, then in Word, I just save the .docx file as a pdf file. It doesn't give me the option of creating the pdf with embedded code. Would this solve my problem if I could create the pdf with a 3rd-party program which could generate embedded code?

Reply
Monday, April 14, 2014 at 4:30 PM - Response #5

I am wondering if there is such a tool using a version of Adobe Acrobat - though I honestly do not know. I'm not sure that an online PDF generator will work.


Reply
Monday, April 14, 2014 at 5:14 PM - Response #6

Well, I know the links work in the pdf file created from Word. That's why Class Creator needs to just accept that single-page, Word-created pdf file for display on my site! A third-party program should not be needed for this very simple request!

Reply
Monday, April 14, 2014 at 6:41 PM - Response #7

Did you want CC to convert the PDF to a format that is displayed since browsers are responsible for displaying PDF contents? Most current browsers can handle that but some do not.

There is a workable solution though that I've only tested with the top browsers - IE8-11, FF28, Safari, Chrome. This solution was given in the link given by Scott. It is similar (but better) than just using an iframe that I noticed worked great on FBCC that I referred to in a similar topic (but for some reason Safari doesn't like that even though Chrome is very related to Safari code).

This is the code and here's a demo on CC using that code LINK Clickable links and all.

This is the code I used for that demo

Replace the axmag.com pdf with any pdf you want. Works on FB too.Wink

This is a LINK to using just an iframe that doesn't work on Safari.

P.S. If you edit the iframe to an exact size, then you can remove the scroll bars too.

Reply
Edited 04/18/14 11:43 AM
Monday, April 14, 2014 at 6:54 PM - Response #8

Thank you for your reply, Jack Vermeulen. Yes, I want CC to convert the PDF to a format that is displayed since browsers are responsible for displaying PDF contents?
I am not a programmer so I'll have to study this and see if I can make it work for me. I'm not sure it's worth the effort to just have two links functional on my pdf file since the file will be sent to all classmates via email anyway before they join the website. But I'd like to make it work, just because!

Reply
Monday, April 14, 2014 at 7:03 PM - Response #9

I'm all for 'just because'. Laughing

I've always sort of wondered about a PDF solution that I can rely on. Haven't tested on an Android or iPad yet, but that would make it a super nice way to display PDF files. I'll see if I can remember to test and update this topic.

I hope the code example works for you since I think this would be # 1001 on the list of "things to do".

Reply
Monday, April 14, 2014 at 7:27 PM - Response #10

Yes...[i]please[i] test and update the topic, Jack, if you can find a few extra minutes to work this up its way on your 'to-do' list!

Reply
New Topic Reply  
Subscription Options: Have all new forum posts sent directly to your email.
Subscription options are available after you log in.