Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

set orientation using react-to-print

 /*Set the page orientation using react-to-print library */
 @media print{
    @page {
      size: landscape; /* by default, size: portrait *?
    }
  }
  
/* link https://www.npmjs.com/package/react-to-print */
 
PREVIOUS NEXT
Tagged: #set #orientation
ADD COMMENT
Topic
Name
3+3 =