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: 5625 Replies: 12
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

EDIT - updated since sometimes prior was not consistent.

There is a workable solution so far on Edge, Chrome, Firefox and Opera. And on Android. Can't test Safari or iPhone.

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 pdf with any pdf you want.

Reply
Edited 04/05/21 10:26 PM
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
Monday, April 5, 2021 at 10:28 PM - Response #11

Almost 7 years flies. Anyway code updated a bit since browsers have changed and google did not act consistently in an iframe. So changed to object and that appears to work better. See post above for revised code.

Reply
Edited 04/05/21 10:29 PM
Tuesday, April 6, 2021 at 1:10 PM - Response #12

Google stuff is weird. Sometimes it works and sometimes it does not. The simple iframe is the most reliable, except for mobile one has to download to see them.

This Page has all four ways of displaying. Sometimes ALL of them work and sometimes they do not. The iframe so far always displays.

More research needed Shocked

iframe code is

Reply
Edited 04/06/21 1:10 PM
New Topic Reply  
Subscription Options: Have all new forum posts sent directly to your email.
Subscription options are available after you log in.