Printing External HTML and Using External CSS
-
We are using your Print-O-Matic plugin and it is great! I have some suggestions on what it can print and how. I would like to print an external html or image through a url in the shortcode. Just so you understand, here are two examples for what we would use it for:
1. We have a crossword on our website that a piece of software makes for us. From the program we also have exported a print-ready html file. We would like your plugin to link to our html file and show a preview of it through a pop-up, allowing the user to print it.
2. We have an Adobe Illustrator image that we would like to print. We would like to use your plugin to link to our image and show a preview of it through a pop-up, allowing the user to print it.
I have been able to create some of this functionality via JavaScript but would like it to be in this plugin. Here is the code for the first example:
<script type="text/javascript"> function print() { window.open('http://yoursite.com/yourfile.html', 'name', 'width=800, height=1000'); } </script>And then I call it like this:
<a href="javascript:print()">Print Me</a>I am also thinking that the plugin should allow for an external css that has been created separately. Allowing the user to link to it through the shortcode for that specific print. This would allow the user to have multiple prints on their site with different styling for each one rather than one universal css.
Can these ideas be done in the plugin?
The topic ‘Printing External HTML and Using External CSS’ is closed to new replies.