How do I open a pdf in construct?

Get help using Construct 2

Post » Tue Jul 25, 2017 10:57 am

Hi, How to open a pdf file in Constract?
For example, click on a sprite and then open a pdf file that we identified beforehand.
B
3
Posts: 16
Reputation: 207

Post » Tue Jul 25, 2017 1:22 pm

?????
B
3
Posts: 16
Reputation: 207

Post » Tue Jul 25, 2017 4:49 pm

??,,,,
B
3
Posts: 16
Reputation: 207

Post » Wed Jul 26, 2017 4:11 am

Please help me!
B
3
Posts: 16
Reputation: 207

Post » Wed Jul 26, 2017 5:05 am

Maybe use the browser object to load the pdf in the same way as a webpage with the go to URL action? I don't recall what it's called, but you should find it in the list. It will either cause the off to download or maybe in the case of chrome it may let you view it there.

Another way would be to use a pdf js library. It's hard because of all the hoops you have to jump through to get it to display in a c2 game. Probably nigh impossible if that didn't make sense.

The final option, although you should check here first, is to see if a pdf plugin exists already that you can use. There in a topic in the addons section that lists all third party plugin's. I'm too lazy to check myself.
B
94
S
33
G
118
Posts: 5,393
Reputation: 75,847

Post » Wed Jul 26, 2017 10:14 am

So how can I find plugins?
Please search . I really need it.
B
3
Posts: 16
Reputation: 207

Post » Wed Jul 26, 2017 11:19 am

Hiddendanger wrote:So how can I find plugins?
Please search . I really need it.


List of addons:https://www.scirra.com/forum/c2-plugins-and-behaviors-list_t65170

I've searched and didn't find any addons. The only thing that came close was using Pode's iframe plugin to read the pdf (search for pode iframe and pdf).

The only other thing I can think of is look online for a PDF javascript API and have some one ( yourself or otherwise ) use it to create a plugin.

BTW I find searching much easier if you use Google with the 'site:' qualifier.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,548
Reputation: 60,440


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests