twitter bootstrap - Boostrap minimum scale with rotativa PDF -


i have problem when using rotativa, bootstrap page scales minimum when printed. there way can set viewport size view, wont scale bootstrap minimum pdf generation?

controller implementation

[httpget] public actionresult downloadviewpdf() {     var vm = new viewmodel();     return new rotativa.viewaspdf("summarypdf", vm) { filename = "testviewaspdf.pdf", pagesize = size.a4 }; } 

and general view implementation

<div class="row">     <div class="col-sm-6">         <div class="form-group">             <span class="label">email</span>             <span class="form-control-static">test@email.com</span>         </div>     </div>     <div class="col-sm-6">         <div class="form-group">             <div class="required-enabled">                 <span class="label">phone</span>                 <span class="form-control-static">(804) 222-1111</span>             </div>         </div>     </div> </div> 

i've tried few things, example using pagesize, pageheight, pagewidth settings of rotativa. nothings seems prevent scaling. i've tried using customswitches, couldnt find setting provided result wanted.

i've tried setting static viewport size in html meta tag, , encapsulating view in div static width. none of these things seem prevent pdf being scaled minimum possible bootstrap display.

i use "--viewport-size" switch

new viewaspdf("edit", model) { pageorientation = orientation.landscape, customswitches = "--viewport-size 1000x1000" }; 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -