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
113
S
29
G
48
Posts: 1,882
Reputation: 36,578

Post » Mon Mar 10, 2014 9:17 am

bump
B
113
S
29
G
48
Posts: 1,882
Reputation: 36,578

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
137
S
31
G
87
Posts: 5,554
Reputation: 60,452

Post » Mon Mar 10, 2014 9:57 am

@zenox98 You have skills to make plugin to handle this? :)
B
113
S
29
G
48
Posts: 1,882
Reputation: 36,578

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
137
S
31
G
87
Posts: 5,554
Reputation: 60,452


Return to How do I....?

Who is online

Users browsing this forum: dop2000, kurtbal and 8 guests