How do I add a print file button?

Get help using Construct 2

Post » Tue Jun 16, 2015 6:59 pm

Does anyone how I can allow visitors to my website print a file from a direct URL? I'm trying to set it up where kids can print out a coloring page. I looked into the browser plugin and searched the forums, but no luck so far.
B
14
S
7
G
3
Posts: 145
Reputation: 3,035

Post » Tue Jun 16, 2015 7:24 pm

try
Button on clicked....Browser Execute JacaScript...Window print();
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Tue Jun 16, 2015 9:24 pm

korbaach wrote:try
Button on clicked....Browser Execute JacaScript...Window print();


Thanks, korbaach. That only prints the current window? I'd like to print a PDF from a direct link to the file, if possible.
B
14
S
7
G
3
Posts: 145
Reputation: 3,035

Post » Wed Jun 17, 2015 6:28 am

interesting issue
B
111
S
28
G
48
Posts: 1,882
Reputation: 36,426

Post » Wed Jun 17, 2015 6:43 am

You'd probably need a plugin for that, mate.
ImageImage
B
49
S
15
G
2
Posts: 270
Reputation: 6,649

Post » Wed Jun 17, 2015 7:38 pm

@KTML5

Probably. I searched before posting, but I wasn't able to find a plugin for it. I'm hoping someone here can help me. :)
B
14
S
7
G
3
Posts: 145
Reputation: 3,035

Post » Wed Jun 17, 2015 11:03 pm

Message: DaniellMesquita can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Here's a plugin that generates an PDF for your choosen, by the famous Pode: plugin-pdf-creator_t69355
I've just searched on Google for "Construct 2 PDF plugin". Please, speak to Google in most robotic language possible.
Good luck for your game, it sounds modern, smart and creative!
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
26
S
8
G
4
Posts: 336
Reputation: 4,050

Post » Wed Jun 17, 2015 11:05 pm

Here the link, sorry: antiblocklinks|https://www.scirra.com/forum/plugin-pdf-creator_t69355
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
26
S
8
G
4
Posts: 336
Reputation: 4,050

Post » Thu Jun 18, 2015 8:42 pm

@DaniellMesquita

Thanks for the link! The plugin doesn't seem to work anymore though. I tested out the demo and all it seems to create is a blank PDF.
B
14
S
7
G
3
Posts: 145
Reputation: 3,035


Return to How do I....?

Who is online

Users browsing this forum: koops and 6 guests