cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rbilinski
New Member

inserting pdf file, not link, within page

How do I get a pdf to actually print onto a page rather  than just providing a link? Is there a limit on the size of a pdf file that will prevent it from showing the file as opposed to just a link?

0 Kudos
2 Replies
Chris_Hofer
Community Coach
Community Coach

Hi @rbilinski ...

It sounds like you are wanting a file to display for your students right away in a page within your course rather than them clicking on a link to download it.  If this is the case, please check out the following: How do I set the auto-open for inline preview for files using the Rich Content Editor as an instruct....

I hope this will be of help to you.  Sing out if you have any other questions about this...thanks!

0 Kudos
lopezjamie
Community Participant

Hello there!

I am not certain if this is what you want, but I read your question to ask if you can have a PDF (or other embedded file) auto-load in a page without a link?

If this is the case, I am using some HTML to do so. Here's the string:

<p style="font-size: 0px;">
<a class="auto_open instructure_file_link instructure_scribd_file"></a>
</p>

Copy the HTML in red above over the HTML between the red brackets in the screen shot below (the default string Canvas brings in when you embed a file through the course link):

2021-03-07_21-58-06.png

So it ends up looking like this:

2021-03-07_22-03-56.png

As the HTML shows, you are basically setting the link font size to "0", making it invisible. In order for the file to open (since there isn't a link anymore, or it's invisible) you see the auto-open feature.

As above, you can use this for a PDF or a PowerPoint.

Hope this helps!

 

Jamie 🙂

0 Kudos