View a PDF in a window or frame

Posted by lefty1984 on 09-Oct-2014 14:34

Hi there, Does anyone know how to view a PDF in a window or frame. The only thing I can find about it is on OEHIVE with pdf include but not in a frame. greatz Rick

All Replies

Posted by Thomas Mercer-Hursh on 09-Oct-2014 16:23

PDFInclude is for making PDFs, not viewing them.

Posted by rayherring on 09-Oct-2014 16:49

Are we talking in a webpage? If so, you can use pdf.js which is what powers Firefox's PDF viewer.

Otherwise you just set the mime type as application/pdf and let the PDF reader that the user has installed do the actual displaying of it (Chrome has one builtin, Firefox has one builtin, IE will use Adobe or whatever other reader is installed).

If we are talking some other type of application instead of in a webpage, not sure.

Posted by lefty1984 on 10-Oct-2014 04:26

I want to view the PDF in an application window

Posted by jaison.antoniazzi on 10-Oct-2014 07:08

Greetings,

just drop Adobe Acrobat activex in your form and use the "src" attribute to load your PDF.

Hope you enjoy.

Best regards,

Jaison

Posted by lefty1984 on 10-Oct-2014 08:24

Jaison,

Do you have some sample code?

Rick

Posted by jaison.antoniazzi on 10-Oct-2014 09:44

Done :D

get it at http://1drv.ms/1vbA1XU

Jaison`s PDF Reader :D

Best regards

Posted by lefty1984 on 12-Oct-2014 14:05

Jaison,

Thanks for your code, but i cant use it because i dont have the OCX file. Cant find to download, im using Acrobat reader XI. There are only .DLL files in C:\Program Files (x86)\Common Files\Adobe\Acrobat\ActiveX and some .NLD (country)files.

Do you have a solution for that :)

Best regards Rick

This thread is closed