How do I open PDF file in c2 game?

Get help using Construct 2

Post » Sun Mar 09, 2014 8:33 pm

its any posibilities to open pdf in app?
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,555

Post » Mon Mar 10, 2014 9:17 am

bump
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,555

Post » Mon Mar 10, 2014 9:27 am

You can use javascript to request a pdf like:
Code: Select all
<a href="javascript:void(0);" onclick="javascipt:window.open('YourPDF.pdf');" class="popup">Clic to open.</a>

but the ability to display the pdf is dependent on whether the user has a plugin available to display the pdf.

It's may be possible to write a plugin to handle PDFs, but that's a long shot.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Mon Mar 10, 2014 9:57 am

@zenox98 You have skills to make plugin to handle this? :)
B
109
S
25
G
43
Posts: 1,883
Reputation: 33,555

Post » Mon Mar 10, 2014 10:08 am

No.

If anyone has the time, then https://github.com/mozilla/pdf.js/ this looks quite interesting.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630


Return to How do I....?

Who is online

Users browsing this forum: NadeemAbbass, plinkie and 9 guests