Services Plugins FAQs

Print Pro Question

Happy Sunday All!

Quick question.
I have a popup that displays dynamic data and an option for the user to print.

I understand that a standard piece of printing paper is 2550x3300 pixels. Although if I make the popup that large the user wont be able to conveniently preview the page. So I shrunk the popup by a multiple of 5, making the popup 510x660. When I go to print the element by element ID I want the popup to size back up to the correct dimensions and fill out the page nice. Please see the picture attached.

If anyone has any advice that would be much appreciated :smile:

I know if you go into print settings you can set a custom scale but users shouldnt have to do that. Same with setting margin to none. Could you add these options in the plugin? Automatically open print with pre-determined settings?

Hi, @tmurphy0270!

I’m afraid there is no option to implement this through the plugin. The plugin prints the dimensions of the elements the same as at the starting point. The only way that could be done here is to create two popup elements and show and hide them so the user will see the smaller popup, but the plugin will print the bigger one, but I’m not sure if it is convenient for you. Here is a screenshot of the workflow:

Please give it a try and see whether this way satisfies your needs.

Unfortunately, this is not possible either. The window.print method calls the browser print in support plugin to print the current DOM page, so you can only utilize the Browser’s GUI.

Hope this was useful!
Best, Julia.