Picture of Manuel Gutierrez
PDF viewer
by Manuel Gutierrez - Friday, 7 July 2017, 9:28 PM
 

hi everyone,

i'm being working whit the authoring tool a few week ago, and i don't find a component that let me view a PDF file, so i want to know if someone made a component like that, else can someone help me whit the development of the component (i read th wiki page developer's guide: component and i try to made it, but i get stuck whit the js that call de view of the component, and also try to edit a core component and upload to the authoring tool and it work at the moment of editing a page but when i want to preview, the page just loading then i see the console from the browser an put this error: Mycomponent component not found. Is it installed and included?).

sorry about my english is not my  language.

well i hope someone can help me.

Picture of Matt Leathes
Re: PDF viewer
by Matt Leathes - Monday, 10 July 2017, 9:30 AM
 

Hi Manuel

Typically when people want the user to be able to view a PDF file they just link to it or use the resources extension.

If you are building a component it's best to do so using the framework. Get it working with the framework first THEN upload to the authoring tool. It's a lot easier to debug problems with the framework.