how did not zoom content on printing when browser zoom?


how did not zoom content on printing when browser zoom? on zoom browser printing(use iframe) should not changed i try:

document.body.style.transformOrigin = 'top left'; document.body.style.transform = 'scale(' + scale + ')';

but it's not correctly when page very long


This could help to disable zooming overall.

<meta content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' name='viewport'>


I use next code:

const updateSizePrintPage = () => { let scale = 1 / window.devicePixelRatio; document.getElementById('print-page').style.transform = 'scale(' + scale + ')'; document.getElementById('print-page').style.transformOrigin = 'top left'; }; window.addEventListener('resize', updateSizePrintPage )

and it works for me.


  • How to allow zooming of UIWebView (tried everything)
  • Prevent scrolling outside map area on google map
  • How to correct mouse event in Highcharts
  • OpenLayers: destroyed features reappear after zooming in or out
  • Implicit property animations do not work with CAReplicatorLayer?
  • Change the width of the JQM panels
  • What's a fast (non-loop) way to apply a dict to a ndarray (meaning use elements as keys and rep
  • WPF version of .ScaleControl?
  • blade.php method outputting it's result to the form
  • Multicolored edittext hint
  • Redux Form - Not able to type anything in input
  • D3 get axis values on zoom event
  • How can I sort a a table with VBA with given text condition?
  • Content-Length header not returned from Pylons response
  • Play WS (2.2.1): post/put large request
  • Listbox within Listbox and scrolling trouble in Windows Phone 7 Silverlight
  • Disable Enter in editText android
  • Change multiple background-images with jQuery
  • Algorithm for a smudge tool?
  • How to access EntityManager inside Entity class in EJB3
  • All Classes Conforming to Protocol Inherit Default Implementation
  • Array.prototype.includes - not transformed with babel
  • jQuery show() function is not executed in Safari if submit handler returns true
  • Can Jackson SerializationFeature be overridden per field or class?
  • javascript inside java/jsp code
  • How to check if every primary key value is being referenced as foreign key in another table
  • WinForms: two way TextBox problem
  • Fill an image in a square container while keeping aspect ratio
  • vba code to select only visible cells in specific column except heading
  • htaccess rewriting URLs with multiple forward slashes
  • Display Images one by one with next and previous functionality
  • Web-crawler for facebook in python
  • How to disable jQuery.jplayer autoplay?
  • A cron job substitute?
  • Android Studio and gradle
  • python regex in pyparsing
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • UserPrincipal.Current returns apppool on IIS
  • java string with new operator and a literal